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:
Comments
Post a Comment