Skip to content

Commit 1ed9bb1

Browse files
Fixed ToolTip Fluent Style and Resources (#10863)
* Fixed ToolTip Fluent Style and Resources * Reupdated the Fluent system theme file --------- Co-authored-by: Dipesh Kumar <[email protected]>
1 parent dcf162f commit 1ed9bb1

File tree

8 files changed

+64
-61
lines changed

8 files changed

+64
-61
lines changed

src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/Dark.xaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,9 +855,13 @@
855855
<SolidColorBrush x:Key="ToggleSwitchKnobFillOnDisabled" Color="{StaticResource TextOnAccentFillColorDisabled}" />
856856

857857
<!-- ToolTip -->
858-
<SolidColorBrush x:Key="ToolTipBackground" Color="{StaticResource AcrylicBackgroundFillColorDefault}" />
858+
<SolidColorBrush x:Key="ToolTipBackgroundBrush" Color="{StaticResource AcrylicBackgroundFillColorDefault}" />
859859
<SolidColorBrush x:Key="ToolTipBorderBrush" Color="{StaticResource SurfaceStrokeColorFlyout}" />
860-
<SolidColorBrush x:Key="ToolTipForeground" Color="{StaticResource TextFillColorPrimary}" />
860+
<SolidColorBrush x:Key="ToolTipForegroundBrush" Color="{StaticResource TextFillColorPrimary}" />
861+
862+
<!-- Deprecated TextControl Brushes -->
863+
<SolidColorBrush x:Key="ToolTipBackground" Color="{StaticResource AcrylicBackgroundFillColorDefault}" />
864+
<SolidColorBrush x:Key="ToolTipForeground" Color="{StaticResource TextFillColorPrimary}" />
861865

862866
<!-- ToolBar -->
863867
<!-- TODO -->

src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/HC.xaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,9 +661,13 @@
661661
<SolidColorBrush x:Key="ToggleSwitchKnobFillOnDisabled" Color="{StaticResource SystemColorGrayTextColor}" />
662662

663663
<!-- ToolTip -->
664-
<SolidColorBrush x:Key="ToolTipBackground" Color="{StaticResource SystemColorWindowColor}" />
664+
<SolidColorBrush x:Key="ToolTipBackgroundBrush" Color="{StaticResource SystemColorWindowColor}" />
665665
<SolidColorBrush x:Key="ToolTipBorderBrush" Color="{StaticResource SystemColorWindowTextColor}" />
666-
<SolidColorBrush x:Key="ToolTipForeground" Color="{StaticResource SystemColorWindowTextColor}" />
666+
<SolidColorBrush x:Key="ToolTipForegroundBrush" Color="{StaticResource SystemColorWindowTextColor}" />
667+
668+
<!-- Deprecated TextControl Brushes -->
669+
<SolidColorBrush x:Key="ToolTipForeground" Color="{StaticResource SystemColorWindowTextColor}" />
670+
<SolidColorBrush x:Key="ToolTipBackground" Color="{StaticResource SystemColorWindowColor}" />
667671

668672
<!-- ToolBar -->
669673
<!-- TODO -->

src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/Light.xaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,9 +864,13 @@
864864
<SolidColorBrush x:Key="ToggleSwitchKnobFillOnDisabled" Color="{StaticResource TextOnAccentFillColorDisabled}" />
865865

866866
<!-- ToolTip -->
867-
<SolidColorBrush x:Key="ToolTipBackground" Color="{StaticResource AcrylicBackgroundFillColorDefault}" />
867+
<SolidColorBrush x:Key="ToolTipBackgroundBrush" Color="{StaticResource AcrylicBackgroundFillColorDefault}" />
868868
<SolidColorBrush x:Key="ToolTipBorderBrush" Color="{StaticResource SurfaceStrokeColorFlyout}" />
869-
<SolidColorBrush x:Key="ToolTipForeground" Color="{StaticResource TextFillColorPrimary}" />
869+
<SolidColorBrush x:Key="ToolTipForegroundBrush" Color="{StaticResource TextFillColorPrimary}" />
870+
871+
<!-- Deprecated TextControl Brushes -->
872+
<SolidColorBrush x:Key="ToolTipForeground" Color="{StaticResource TextFillColorPrimary}" />
873+
<SolidColorBrush x:Key="ToolTipBackground" Color="{StaticResource AcrylicBackgroundFillColorDefault}" />
870874

871875
<!-- ToolBar -->
872876
<!-- TODO -->

src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/ToolTip.xaml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,26 @@
1414
<Thickness x:Key="ToolTipBorderThemeThickness">1</Thickness>
1515

1616
<Style x:Key="DefaultToolTipStyle" TargetType="{x:Type ToolTip}">
17-
<Setter Property="MaxWidth" Value="{StaticResource ToolTipMaxWidth}" />
18-
<Setter Property="Height" Value="Auto" />
19-
<Setter Property="Width" Value="Auto" />
20-
<Setter Property="TextElement.FontSize" Value="12" />
21-
<Setter Property="TextBlock.TextAlignment" Value="Justify" />
22-
<Setter Property="TextElement.Foreground" Value="{DynamicResource ToolTipForeground}" />
23-
<Setter Property="Foreground" Value="{DynamicResource ToolTipForeground}" />
17+
<Setter Property="Foreground" Value="{DynamicResource ToolTipForegroundBrush}" />
2418
<Setter Property="FontFamily" Value="{DynamicResource {x:Static SystemFonts.StatusFontFamilyKey}}"/>
2519
<Setter Property="FontSize" Value="{DynamicResource {x:Static SystemFonts.StatusFontSizeKey}}"/>
2620
<Setter Property="FontStyle" Value="{DynamicResource {x:Static SystemFonts.StatusFontStyleKey}}"/>
27-
<Setter Property="Background" Value="{DynamicResource ToolTipBackground}" />
21+
<Setter Property="FontWeight" Value="{DynamicResource {x:Static SystemFonts.StatusFontWeightKey}}"/>
22+
<Setter Property="Background" Value="{DynamicResource ToolTipBackgroundBrush}" />
2823
<Setter Property="BorderBrush" Value="{DynamicResource ToolTipBorderBrush}" />
2924
<Setter Property="BorderThickness" Value="{DynamicResource ToolTipBorderThemeThickness}"/>
3025
<Setter Property="Padding" Value="{StaticResource ToolTipBorderPadding}" />
26+
<Setter Property="MaxWidth" Value="{StaticResource ToolTipMaxWidth}" />
3127
<Setter Property="HorizontalContentAlignment" Value="Left"/>
32-
<Setter Property="VerticalContentAlignment" Value="Top"/>
28+
<Setter Property="VerticalContentAlignment" Value="Center"/>
29+
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled" />
3330
<Setter Property="SnapsToDevicePixels" Value="True" />
3431
<Setter Property="OverridesDefaultStyle" Value="True" />
3532
<Setter Property="Template">
3633
<Setter.Value>
3734
<ControlTemplate TargetType="ToolTip">
3835
<Border
3936
Name="Border"
40-
Width="{TemplateBinding Width}"
41-
Height="{TemplateBinding Height}"
42-
MaxWidth="{TemplateBinding MaxWidth}"
4337
Background="{TemplateBinding Background}"
4438
BorderBrush="{TemplateBinding BorderBrush}"
4539
BorderThickness="{TemplateBinding BorderThickness}"

src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Dark.xaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -806,8 +806,11 @@
806806
<SolidColorBrush x:Key="ToggleSwitchKnobFillOnPressed" Color="{StaticResource TextOnAccentFillColorPrimary}" />
807807
<SolidColorBrush x:Key="ToggleSwitchKnobFillOnDisabled" Color="{StaticResource TextOnAccentFillColorDisabled}" />
808808
<!-- ToolTip -->
809-
<SolidColorBrush x:Key="ToolTipBackground" Color="{StaticResource AcrylicBackgroundFillColorDefault}" />
809+
<SolidColorBrush x:Key="ToolTipBackgroundBrush" Color="{StaticResource AcrylicBackgroundFillColorDefault}" />
810810
<SolidColorBrush x:Key="ToolTipBorderBrush" Color="{StaticResource SurfaceStrokeColorFlyout}" />
811+
<SolidColorBrush x:Key="ToolTipForegroundBrush" Color="{StaticResource TextFillColorPrimary}" />
812+
<!-- Deprecated TextControl Brushes -->
813+
<SolidColorBrush x:Key="ToolTipBackground" Color="{StaticResource AcrylicBackgroundFillColorDefault}" />
811814
<SolidColorBrush x:Key="ToolTipForeground" Color="{StaticResource TextFillColorPrimary}" />
812815
<!-- ToolBar -->
813816
<!-- TODO -->
@@ -5257,28 +5260,25 @@
52575260
<sys:Double x:Key="ToolTipMaxWidth">320</sys:Double>
52585261
<Thickness x:Key="ToolTipBorderThemeThickness">1</Thickness>
52595262
<Style x:Key="DefaultToolTipStyle" TargetType="{x:Type ToolTip}">
5260-
<Setter Property="MaxWidth" Value="{StaticResource ToolTipMaxWidth}" />
5261-
<Setter Property="Height" Value="Auto" />
5262-
<Setter Property="Width" Value="Auto" />
5263-
<Setter Property="TextElement.FontSize" Value="12" />
5264-
<Setter Property="TextBlock.TextAlignment" Value="Justify" />
5265-
<Setter Property="TextElement.Foreground" Value="{DynamicResource ToolTipForeground}" />
5266-
<Setter Property="Foreground" Value="{DynamicResource ToolTipForeground}" />
5263+
<Setter Property="Foreground" Value="{DynamicResource ToolTipForegroundBrush}" />
52675264
<Setter Property="FontFamily" Value="{DynamicResource {x:Static SystemFonts.StatusFontFamilyKey}}" />
52685265
<Setter Property="FontSize" Value="{DynamicResource {x:Static SystemFonts.StatusFontSizeKey}}" />
52695266
<Setter Property="FontStyle" Value="{DynamicResource {x:Static SystemFonts.StatusFontStyleKey}}" />
5270-
<Setter Property="Background" Value="{DynamicResource ToolTipBackground}" />
5267+
<Setter Property="FontWeight" Value="{DynamicResource {x:Static SystemFonts.StatusFontWeightKey}}" />
5268+
<Setter Property="Background" Value="{DynamicResource ToolTipBackgroundBrush}" />
52715269
<Setter Property="BorderBrush" Value="{DynamicResource ToolTipBorderBrush}" />
52725270
<Setter Property="BorderThickness" Value="{DynamicResource ToolTipBorderThemeThickness}" />
52735271
<Setter Property="Padding" Value="{StaticResource ToolTipBorderPadding}" />
5272+
<Setter Property="MaxWidth" Value="{StaticResource ToolTipMaxWidth}" />
52745273
<Setter Property="HorizontalContentAlignment" Value="Left" />
5275-
<Setter Property="VerticalContentAlignment" Value="Top" />
5274+
<Setter Property="VerticalContentAlignment" Value="Center" />
5275+
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled" />
52765276
<Setter Property="SnapsToDevicePixels" Value="True" />
52775277
<Setter Property="OverridesDefaultStyle" Value="True" />
52785278
<Setter Property="Template">
52795279
<Setter.Value>
52805280
<ControlTemplate TargetType="ToolTip">
5281-
<Border Name="Border" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" MaxWidth="{TemplateBinding MaxWidth}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4" SnapsToDevicePixels="True">
5281+
<Border Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4" SnapsToDevicePixels="True">
52825282
<Border.Effect>
52835283
<DropShadowEffect BlurRadius="30" Direction="0" Opacity="0.4" ShadowDepth="0" Color="#202020" />
52845284
</Border.Effect>

src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.HC.xaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -636,9 +636,12 @@
636636
<SolidColorBrush x:Key="ToggleSwitchKnobFillOnPressed" Color="{StaticResource SystemColorWindowTextColor}" />
637637
<SolidColorBrush x:Key="ToggleSwitchKnobFillOnDisabled" Color="{StaticResource SystemColorGrayTextColor}" />
638638
<!-- ToolTip -->
639-
<SolidColorBrush x:Key="ToolTipBackground" Color="{StaticResource SystemColorWindowColor}" />
639+
<SolidColorBrush x:Key="ToolTipBackgroundBrush" Color="{StaticResource SystemColorWindowColor}" />
640640
<SolidColorBrush x:Key="ToolTipBorderBrush" Color="{StaticResource SystemColorWindowTextColor}" />
641+
<SolidColorBrush x:Key="ToolTipForegroundBrush" Color="{StaticResource SystemColorWindowTextColor}" />
642+
<!-- Deprecated TextControl Brushes -->
641643
<SolidColorBrush x:Key="ToolTipForeground" Color="{StaticResource SystemColorWindowTextColor}" />
644+
<SolidColorBrush x:Key="ToolTipBackground" Color="{StaticResource SystemColorWindowColor}" />
642645
<!-- ToolBar -->
643646
<!-- TODO -->
644647
<!-- TreeGrid -->
@@ -5170,28 +5173,25 @@
51705173
<sys:Double x:Key="ToolTipMaxWidth">320</sys:Double>
51715174
<Thickness x:Key="ToolTipBorderThemeThickness">1</Thickness>
51725175
<Style x:Key="DefaultToolTipStyle" TargetType="{x:Type ToolTip}">
5173-
<Setter Property="MaxWidth" Value="{StaticResource ToolTipMaxWidth}" />
5174-
<Setter Property="Height" Value="Auto" />
5175-
<Setter Property="Width" Value="Auto" />
5176-
<Setter Property="TextElement.FontSize" Value="12" />
5177-
<Setter Property="TextBlock.TextAlignment" Value="Justify" />
5178-
<Setter Property="TextElement.Foreground" Value="{DynamicResource ToolTipForeground}" />
5179-
<Setter Property="Foreground" Value="{DynamicResource ToolTipForeground}" />
5176+
<Setter Property="Foreground" Value="{DynamicResource ToolTipForegroundBrush}" />
51805177
<Setter Property="FontFamily" Value="{DynamicResource {x:Static SystemFonts.StatusFontFamilyKey}}" />
51815178
<Setter Property="FontSize" Value="{DynamicResource {x:Static SystemFonts.StatusFontSizeKey}}" />
51825179
<Setter Property="FontStyle" Value="{DynamicResource {x:Static SystemFonts.StatusFontStyleKey}}" />
5183-
<Setter Property="Background" Value="{DynamicResource ToolTipBackground}" />
5180+
<Setter Property="FontWeight" Value="{DynamicResource {x:Static SystemFonts.StatusFontWeightKey}}" />
5181+
<Setter Property="Background" Value="{DynamicResource ToolTipBackgroundBrush}" />
51845182
<Setter Property="BorderBrush" Value="{DynamicResource ToolTipBorderBrush}" />
51855183
<Setter Property="BorderThickness" Value="{DynamicResource ToolTipBorderThemeThickness}" />
51865184
<Setter Property="Padding" Value="{StaticResource ToolTipBorderPadding}" />
5185+
<Setter Property="MaxWidth" Value="{StaticResource ToolTipMaxWidth}" />
51875186
<Setter Property="HorizontalContentAlignment" Value="Left" />
5188-
<Setter Property="VerticalContentAlignment" Value="Top" />
5187+
<Setter Property="VerticalContentAlignment" Value="Center" />
5188+
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled" />
51895189
<Setter Property="SnapsToDevicePixels" Value="True" />
51905190
<Setter Property="OverridesDefaultStyle" Value="True" />
51915191
<Setter Property="Template">
51925192
<Setter.Value>
51935193
<ControlTemplate TargetType="ToolTip">
5194-
<Border Name="Border" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" MaxWidth="{TemplateBinding MaxWidth}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4" SnapsToDevicePixels="True">
5194+
<Border Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4" SnapsToDevicePixels="True">
51955195
<Border.Effect>
51965196
<DropShadowEffect BlurRadius="30" Direction="0" Opacity="0.4" ShadowDepth="0" Color="#202020" />
51975197
</Border.Effect>

src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Light.xaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -815,9 +815,12 @@
815815
<SolidColorBrush x:Key="ToggleSwitchKnobFillOnPressed" Color="{StaticResource TextOnAccentFillColorPrimary}" />
816816
<SolidColorBrush x:Key="ToggleSwitchKnobFillOnDisabled" Color="{StaticResource TextOnAccentFillColorDisabled}" />
817817
<!-- ToolTip -->
818-
<SolidColorBrush x:Key="ToolTipBackground" Color="{StaticResource AcrylicBackgroundFillColorDefault}" />
818+
<SolidColorBrush x:Key="ToolTipBackgroundBrush" Color="{StaticResource AcrylicBackgroundFillColorDefault}" />
819819
<SolidColorBrush x:Key="ToolTipBorderBrush" Color="{StaticResource SurfaceStrokeColorFlyout}" />
820+
<SolidColorBrush x:Key="ToolTipForegroundBrush" Color="{StaticResource TextFillColorPrimary}" />
821+
<!-- Deprecated TextControl Brushes -->
820822
<SolidColorBrush x:Key="ToolTipForeground" Color="{StaticResource TextFillColorPrimary}" />
823+
<SolidColorBrush x:Key="ToolTipBackground" Color="{StaticResource AcrylicBackgroundFillColorDefault}" />
821824
<!-- ToolBar -->
822825
<!-- TODO -->
823826
<!-- TreeGrid -->
@@ -5266,28 +5269,25 @@
52665269
<sys:Double x:Key="ToolTipMaxWidth">320</sys:Double>
52675270
<Thickness x:Key="ToolTipBorderThemeThickness">1</Thickness>
52685271
<Style x:Key="DefaultToolTipStyle" TargetType="{x:Type ToolTip}">
5269-
<Setter Property="MaxWidth" Value="{StaticResource ToolTipMaxWidth}" />
5270-
<Setter Property="Height" Value="Auto" />
5271-
<Setter Property="Width" Value="Auto" />
5272-
<Setter Property="TextElement.FontSize" Value="12" />
5273-
<Setter Property="TextBlock.TextAlignment" Value="Justify" />
5274-
<Setter Property="TextElement.Foreground" Value="{DynamicResource ToolTipForeground}" />
5275-
<Setter Property="Foreground" Value="{DynamicResource ToolTipForeground}" />
5272+
<Setter Property="Foreground" Value="{DynamicResource ToolTipForegroundBrush}" />
52765273
<Setter Property="FontFamily" Value="{DynamicResource {x:Static SystemFonts.StatusFontFamilyKey}}" />
52775274
<Setter Property="FontSize" Value="{DynamicResource {x:Static SystemFonts.StatusFontSizeKey}}" />
52785275
<Setter Property="FontStyle" Value="{DynamicResource {x:Static SystemFonts.StatusFontStyleKey}}" />
5279-
<Setter Property="Background" Value="{DynamicResource ToolTipBackground}" />
5276+
<Setter Property="FontWeight" Value="{DynamicResource {x:Static SystemFonts.StatusFontWeightKey}}" />
5277+
<Setter Property="Background" Value="{DynamicResource ToolTipBackgroundBrush}" />
52805278
<Setter Property="BorderBrush" Value="{DynamicResource ToolTipBorderBrush}" />
52815279
<Setter Property="BorderThickness" Value="{DynamicResource ToolTipBorderThemeThickness}" />
52825280
<Setter Property="Padding" Value="{StaticResource ToolTipBorderPadding}" />
5281+
<Setter Property="MaxWidth" Value="{StaticResource ToolTipMaxWidth}" />
52835282
<Setter Property="HorizontalContentAlignment" Value="Left" />
5284-
<Setter Property="VerticalContentAlignment" Value="Top" />
5283+
<Setter Property="VerticalContentAlignment" Value="Center" />
5284+
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled" />
52855285
<Setter Property="SnapsToDevicePixels" Value="True" />
52865286
<Setter Property="OverridesDefaultStyle" Value="True" />
52875287
<Setter Property="Template">
52885288
<Setter.Value>
52895289
<ControlTemplate TargetType="ToolTip">
5290-
<Border Name="Border" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" MaxWidth="{TemplateBinding MaxWidth}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4" SnapsToDevicePixels="True">
5290+
<Border Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4" SnapsToDevicePixels="True">
52915291
<Border.Effect>
52925292
<DropShadowEffect BlurRadius="30" Direction="0" Opacity="0.4" ShadowDepth="0" Color="#202020" />
52935293
</Border.Effect>

src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.xaml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4519,28 +4519,25 @@
45194519
<sys:Double x:Key="ToolTipMaxWidth">320</sys:Double>
45204520
<Thickness x:Key="ToolTipBorderThemeThickness">1</Thickness>
45214521
<Style x:Key="DefaultToolTipStyle" TargetType="{x:Type ToolTip}">
4522-
<Setter Property="MaxWidth" Value="{StaticResource ToolTipMaxWidth}" />
4523-
<Setter Property="Height" Value="Auto" />
4524-
<Setter Property="Width" Value="Auto" />
4525-
<Setter Property="TextElement.FontSize" Value="12" />
4526-
<Setter Property="TextBlock.TextAlignment" Value="Justify" />
4527-
<Setter Property="TextElement.Foreground" Value="{DynamicResource ToolTipForeground}" />
4528-
<Setter Property="Foreground" Value="{DynamicResource ToolTipForeground}" />
4522+
<Setter Property="Foreground" Value="{DynamicResource ToolTipForegroundBrush}" />
45294523
<Setter Property="FontFamily" Value="{DynamicResource {x:Static SystemFonts.StatusFontFamilyKey}}" />
45304524
<Setter Property="FontSize" Value="{DynamicResource {x:Static SystemFonts.StatusFontSizeKey}}" />
45314525
<Setter Property="FontStyle" Value="{DynamicResource {x:Static SystemFonts.StatusFontStyleKey}}" />
4532-
<Setter Property="Background" Value="{DynamicResource ToolTipBackground}" />
4526+
<Setter Property="FontWeight" Value="{DynamicResource {x:Static SystemFonts.StatusFontWeightKey}}" />
4527+
<Setter Property="Background" Value="{DynamicResource ToolTipBackgroundBrush}" />
45334528
<Setter Property="BorderBrush" Value="{DynamicResource ToolTipBorderBrush}" />
45344529
<Setter Property="BorderThickness" Value="{DynamicResource ToolTipBorderThemeThickness}" />
45354530
<Setter Property="Padding" Value="{StaticResource ToolTipBorderPadding}" />
4531+
<Setter Property="MaxWidth" Value="{StaticResource ToolTipMaxWidth}" />
45364532
<Setter Property="HorizontalContentAlignment" Value="Left" />
4537-
<Setter Property="VerticalContentAlignment" Value="Top" />
4533+
<Setter Property="VerticalContentAlignment" Value="Center" />
4534+
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled" />
45384535
<Setter Property="SnapsToDevicePixels" Value="True" />
45394536
<Setter Property="OverridesDefaultStyle" Value="True" />
45404537
<Setter Property="Template">
45414538
<Setter.Value>
45424539
<ControlTemplate TargetType="ToolTip">
4543-
<Border Name="Border" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" MaxWidth="{TemplateBinding MaxWidth}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4" SnapsToDevicePixels="True">
4540+
<Border Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4" SnapsToDevicePixels="True">
45444541
<Border.Effect>
45454542
<DropShadowEffect BlurRadius="30" Direction="0" Opacity="0.4" ShadowDepth="0" Color="#202020" />
45464543
</Border.Effect>

0 commit comments

Comments
 (0)