fix: fix flyout default foreground.
This commit is contained in:
parent
e2a121f024
commit
3fe073e405
@ -12,6 +12,7 @@
|
|||||||
<Setter Property="FlyoutPresenter.MaxWidth" Value="{DynamicResource FlyoutMaxWidth}" />
|
<Setter Property="FlyoutPresenter.MaxWidth" Value="{DynamicResource FlyoutMaxWidth}" />
|
||||||
<Setter Property="FlyoutPresenter.MinHeight" Value="{DynamicResource FlyoutMinHeight}" />
|
<Setter Property="FlyoutPresenter.MinHeight" Value="{DynamicResource FlyoutMinHeight}" />
|
||||||
<Setter Property="FlyoutPresenter.MaxHeight" Value="{DynamicResource FlyoutMaxHeight}" />
|
<Setter Property="FlyoutPresenter.MaxHeight" Value="{DynamicResource FlyoutMaxHeight}" />
|
||||||
|
<Setter Property="FlyoutPresenter.Foreground" Value="{DynamicResource FlyoutForeground}" />
|
||||||
<Setter Property="FlyoutPresenter.ClipToBounds" Value="False" />
|
<Setter Property="FlyoutPresenter.ClipToBounds" Value="False" />
|
||||||
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
|
||||||
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
|
||||||
@ -37,7 +38,8 @@
|
|||||||
VerticalContentAlignment="Stretch"
|
VerticalContentAlignment="Stretch"
|
||||||
Content="{TemplateBinding Content}"
|
Content="{TemplateBinding Content}"
|
||||||
ContentTemplate="{TemplateBinding ContentTemplate}"
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
||||||
FontWeight="{TemplateBinding FontWeight}" />
|
FontWeight="{TemplateBinding FontWeight}"
|
||||||
|
TextElement.Foreground="{TemplateBinding Foreground}" />
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
</Border>
|
</Border>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
|
@ -3,10 +3,8 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:sys="clr-namespace:System;assembly=System.Runtime">
|
xmlns:sys="clr-namespace:System;assembly=System.Runtime">
|
||||||
<SolidColorBrush x:Key="FlyoutBackground" Color="White" />
|
<SolidColorBrush x:Key="FlyoutBackground" Color="White" />
|
||||||
<SolidColorBrush
|
<SolidColorBrush x:Key="FlyoutForeground" Color="#1C1F23" />
|
||||||
x:Key="FlyoutBorderBrush"
|
<SolidColorBrush x:Key="FlyoutBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
||||||
Opacity="0.08"
|
|
||||||
Color="#1C1F23" />
|
|
||||||
<FontWeight x:Key="FlyoutFontWeight">400</FontWeight>
|
<FontWeight x:Key="FlyoutFontWeight">400</FontWeight>
|
||||||
<Thickness x:Key="FlyoutBorderThickness">1</Thickness>
|
<Thickness x:Key="FlyoutBorderThickness">1</Thickness>
|
||||||
<BoxShadows x:Key="FlyoutBorderBoxShadow">0 0 8 0 #1A000000</BoxShadows>
|
<BoxShadows x:Key="FlyoutBorderBoxShadow">0 0 8 0 #1A000000</BoxShadows>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user