Files
ShrlAlgoToolkit/WPFluent/Controls/Page/Page.xaml

33 lines
1.5 KiB
Plaintext
Raw Normal View History

2025-07-11 09:20:23 +08:00
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
2025-07-11 09:20:23 +08:00
<Style TargetType="{x:Type Page}" x:Key="DefaultPageStyle">
<Setter Property="Control.Foreground">
<Setter.Value>
<SolidColorBrush Color="{DynamicResource TextFillColorPrimary}" />
</Setter.Value>
</Setter>
<Setter Property="Background" Value="Transparent" />
2025-07-11 09:20:23 +08:00
<!-- The Display option causes a large aliasing effect -->
<!-- <Setter Property="TextOptions.TextFormattingMode" Value="Ideal" /> -->
<Setter Property="Focusable" Value="False" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="OverridesDefaultStyle" Value="True" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Page}">
<Grid>
<ContentPresenter
Content="{TemplateBinding ContentControl.Content}"
2025-07-11 09:20:23 +08:00
HorizontalAlignment="Stretch"
TextElement.Foreground="{TemplateBinding Control.Foreground}"
VerticalAlignment="Stretch" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style BasedOn="{StaticResource DefaultPageStyle}" TargetType="{x:Type Page}" />
</ResourceDictionary>