This question is locked. New answers and comments are not allowed.
Hi,
I extended the RoutedUICommand class, added a ToolTip property to keep tooltip string for the command.
Then I want to use a style like below to bind tooltips on tool buttons, but finally it's getting an error.
<
Setter
Property
=
"ToolTipService.ToolTip"
>
<
Setter.Value
>
<
ToolTip
>
<
ToolTip.ContentTemplate
>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding Command.ToolTip,RelativeSource={RelativeSource AncestorType=telerik:RadButton}}"
/>
</
DataTemplate
>
</
ToolTip.ContentTemplate
>
</
ToolTip
>
</
Setter.Value
>
</
Setter
>