Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
ApplicationMenu2010 - ButtonTool: How to add ToolTip with Binding
posted

Hi everybody,

I try to add a Tooltip to a ButtonTool, therefore I use the ButtonTool.Style:

<ig:ButtonTool.Style>

 

 

 

 

 

 

 

 

<Style TargetType="ig:ButtonToolControl">

 

 

 

 

<Setter Property="ToolTipService.ToolTip" Value="{Binding Path=[ToolTip_Menu_Exit],

 

 

 

Source={StaticResource SchedulerResources}, FallbackValue='Exit', TargetNullValue='Null'}" />

 

 

 

 

</Style>

 

 

 

 

</ig:ButtonTool.Style>

However, this ends in an exception when the window is initialized. The exception says that a read-only property can not be set. When I use a hard-coded value for the tooltip instead of the Binding it works. I need the binding for localization with .resx files.

Can anybody help? Thanks

Cheers, hp

 

 

 

Parents
No Data
Reply Children
No Data