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>
<ControlTemplate TargetType="ToolTip">
<ContentPresenter />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Here is my desired look & feel http://i.imgur.com/fG1aCso.png
"Normal tooltip" must show when on mouseover on button, "info tooltip" on over the custom control with blue text, etc
FTI: I try to put the style on the DLL (Where the custom control is defined), but not work. I have the next code on my "assembly.info", so it took the templates from "Themes/Generic.xaml"
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
TargetTypeto your custom control and then set the propertyToolTipin this style? - Herdo