Custom ToolTip template for some elements
问题 I want to set custom tooltip style, but ONLY for certains type of controls. I have one custom control that set a tooltip with color depends on what kind of message is binding. If set style for "Tooltip", ALL tooltips show with no border, but i was looking to set only for my custom control. <Style x:Key="{x:Type ToolTip}" TargetType="ToolTip"> <Setter Property="OverridesDefaultStyle" Value="true" /> <Setter Property="HasDropShadow" Value="True" /> <Setter Property="Template"> <Setter.Value>