|
@@ -0,0 +1,49 @@
|
|
|
+<Styles xmlns="https://github.com/avaloniaui"
|
|
|
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
+ <Style Selector="CheckBox.small">
|
|
|
+ <Setter Property="Template">
|
|
|
+ <ControlTemplate>
|
|
|
+ <Grid x:Name="RootGrid" ColumnDefinitions="20,*">
|
|
|
+ <Border x:Name="PART_Border"
|
|
|
+ Grid.ColumnSpan="2"
|
|
|
+ Background="{TemplateBinding Background}"
|
|
|
+ BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
+ CornerRadius="{TemplateBinding CornerRadius}" />
|
|
|
+
|
|
|
+ <Grid VerticalAlignment="Top" Height="32">
|
|
|
+ <Border x:Name="NormalRectangle"
|
|
|
+ BorderBrush="{DynamicResource CheckBoxCheckBackgroundStrokeUnchecked}"
|
|
|
+ Background="{DynamicResource CheckBoxCheckBackgroundFillUnchecked}"
|
|
|
+ BorderThickness="{DynamicResource CheckBoxBorderThemeThickness}"
|
|
|
+ CornerRadius="{TemplateBinding CornerRadius}"
|
|
|
+ UseLayoutRounding="False"
|
|
|
+ Height="{TemplateBinding Height}"
|
|
|
+ Width="{TemplateBinding Height}" />
|
|
|
+
|
|
|
+ <Viewbox UseLayoutRounding="False">
|
|
|
+ <Panel>
|
|
|
+ <Panel Height="16" Width="16" />
|
|
|
+ <Path x:Name="CheckGlyph"
|
|
|
+ Opacity="0"
|
|
|
+ Fill="{DynamicResource CheckBoxCheckGlyphForegroundUnchecked}"
|
|
|
+ Stretch="Uniform"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ FlowDirection="LeftToRight" />
|
|
|
+ </Panel>
|
|
|
+ </Viewbox>
|
|
|
+ </Grid>
|
|
|
+ <ContentPresenter x:Name="PART_ContentPresenter"
|
|
|
+ ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
+ Content="{TemplateBinding Content}"
|
|
|
+ Margin="{TemplateBinding Padding}"
|
|
|
+ RecognizesAccessKey="True"
|
|
|
+ HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
+ VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
+ TextWrapping="Wrap"
|
|
|
+ Grid.Column="1" />
|
|
|
+ </Grid>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+</Styles>
|