Skip to content

Commit 7b57fac

Browse files
committed
Update ToolTipStyles.xaml
1 parent d0b74dd commit 7b57fac

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Source/NETworkManager/Resources/Styles/ToolTipStyles.xaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
22
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3-
<Style x:Key="DefaultToolTip" TargetType="{x:Type ToolTip}"
3+
<Style x:Key="DefaultToolTip" TargetType="{x:Type TypeName=ToolTip}"
44
BasedOn="{StaticResource ResourceKey=MahApps.Styles.ToolTip}">
55
<Setter Property="FontSize" Value="14" />
66
<Setter Property="BorderBrush" Value="{DynamicResource ResourceKey=MahApps.Brushes.Gray8}" />
77
<Setter Property="Foreground" Value="{DynamicResource ResourceKey=MahApps.Brushes.Text}" />
88
<Setter Property="Background" Value="{DynamicResource ResourceKey=MahApps.Brushes.Window.Background}" />
99
</Style>
1010

11-
<Style TargetType="{x:Type ToolTip}" BasedOn="{StaticResource ResourceKey=DefaultToolTip}" />
11+
<Style TargetType="{x:Type TypeName=ToolTip}" BasedOn="{StaticResource ResourceKey=DefaultToolTip}" />
1212

13-
<Style x:Key="HelpToolTip" TargetType="{x:Type ToolTip}" BasedOn="{StaticResource DefaultToolTip}">
13+
<Style x:Key="HelpToolTip" TargetType="{x:Type TypeName=ToolTip}" BasedOn="{StaticResource ResourceKey=DefaultToolTip}">
1414
<Setter Property="Template">
1515
<Setter.Value>
16-
<ControlTemplate TargetType="{x:Type ToolTip}">
17-
<Border x:Name="Root" Background="{TemplateBinding Background}" MaxWidth="400"
18-
BorderBrush="{TemplateBinding BorderBrush}"
19-
BorderThickness="{TemplateBinding BorderThickness}" Opacity="0"
20-
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Padding="5">
16+
<ControlTemplate TargetType="{x:Type TypeName=ToolTip}">
17+
<Border x:Name="Root" Background="{TemplateBinding Property=Background}" MaxWidth="400"
18+
BorderBrush="{TemplateBinding Property=BorderBrush}"
19+
BorderThickness="{TemplateBinding Property=BorderThickness}" Opacity="0"
20+
SnapsToDevicePixels="{TemplateBinding Property=SnapsToDevicePixels}" Padding="5">
2121
<Border.Resources>
2222
<Storyboard x:Key="Visible State" />
2323
<Storyboard x:Key="Normal State" />
2424
</Border.Resources>
25-
<TextBlock Text="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}"
26-
Style="{StaticResource WrapTextBlock}" VerticalAlignment="Center" />
25+
<TextBlock Text="{TemplateBinding Property=Content}" Foreground="{TemplateBinding Property=Foreground}"
26+
Style="{StaticResource ResourceKey=WrapTextBlock}" VerticalAlignment="Center" />
2727
<VisualStateManager.VisualStateGroups>
2828
<VisualStateGroup x:Name="OpenStates">
2929
<VisualStateGroup.Transitions>
@@ -53,7 +53,7 @@
5353
</Setter>
5454
</Style>
5555

56-
<Style x:Key="WarnToolTip" TargetType="{x:Type ToolTip}" BasedOn="{StaticResource HelpToolTip}" />
56+
<Style x:Key="WarnToolTip" TargetType="{x:Type TypeName=ToolTip}" BasedOn="{StaticResource ResourceKey=HelpToolTip}" />
5757

58-
<Style x:Key="ErrorToolTip" TargetType="{x:Type ToolTip}" BasedOn="{StaticResource HelpToolTip}" />
58+
<Style x:Key="ErrorToolTip" TargetType="{x:Type TypeName=ToolTip}" BasedOn="{StaticResource ResourceKey=HelpToolTip}" />
5959
</ResourceDictionary>

0 commit comments

Comments
 (0)