WPF centering a tooltip -


i'm new wpf , follow code explained in

how position tooltip bottom center

to center tooltip. however, received message "the resource centertooltipconverter not resolved." think should including class "centertooltipconverter" in wrong place. how or should include "centertooltipconverter" class?

thanks!

p.s.: sorry poor english.

normally ou put converter , stuff in resources section:

for example if it's usercontrol

<usercontrol.resources>     <converter:centertooltipconverter x:key="centertooltipconverter" /> </usercontrol.resources> 

then post mentioned:

<multibinding converter="{staticresource centertooltipconverter}">     <binding relativesource="{relativesource self}" path="placementtarget.actualwidth"/>     <binding relativesource="{relativesource self}" path="actualwidth"/> </multibinding> 

what missing xmlns-entry:

xmlns:converter="clr-namespace:yournamespace;assembly=yourassembly" 

where yournamespace namespace of class centertooltipconverter

helpful links:

xaml namespaces , namespace mapping wpf xaml

xaml resources


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -