I have a tooltip style like below:
<Style TargetType="{x:Type ToolTip}">
<Setter Property="OverridesDefaultStyle" Value="true"/>
<Setter Property="HasDropShadow" Value="True"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ToolTip">
...
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
I have two button with each with the defined tooltip but I want only one of them has my tooltip style.
How can I achieve this?
Add the following to your Tooltip style:
Now, only the button which will specifically ask for the
myTooltipStylewill get it: