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

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -