Files
Shrlalgo.RvKits/WPFluent/Controls/Page/Page.xaml
ShrlAlgo 4d35cadb56 更新
2025-07-11 09:20:23 +08:00

33 lines
1.5 KiB
XML

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<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" />
<!-- 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}"
HorizontalAlignment="Stretch"
TextElement.Foreground="{TemplateBinding Control.Foreground}"
VerticalAlignment="Stretch" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style BasedOn="{StaticResource DefaultPageStyle}" TargetType="{x:Type Page}" />
</ResourceDictionary>