csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
2.0 KiB
40 lines
2.0 KiB
<Styles xmlns="https://github.com/avaloniaui">
|
|
<Style Selector="RepeatButton">
|
|
<Setter Property="Background"
|
|
Value="{DynamicResource ThemeControlMidBrush}" />
|
|
<Setter Property="BorderBrush"
|
|
Value="{DynamicResource ThemeBorderLowBrush}" />
|
|
<Setter Property="BorderThickness"
|
|
Value="{DynamicResource ThemeBorderThickness}" />
|
|
<Setter Property="Foreground"
|
|
Value="{DynamicResource ThemeForegroundBrush}" />
|
|
<Setter Property="HorizontalContentAlignment"
|
|
Value="Center" />
|
|
<Setter Property="VerticalContentAlignment"
|
|
Value="Center" />
|
|
<Setter Property="Padding"
|
|
Value="4" />
|
|
<Setter Property="Template">
|
|
<ControlTemplate>
|
|
<ContentPresenter Name="PART_ContentPresenter"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
Content="{TemplateBinding Content}"
|
|
Padding="{TemplateBinding Padding}"
|
|
TextBlock.Foreground="{TemplateBinding Foreground}"
|
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
</ControlTemplate>
|
|
</Setter>
|
|
</Style>
|
|
<Style Selector="RepeatButton:pointerover /template/ ContentPresenter">
|
|
<Setter Property="BorderBrush"
|
|
Value="{DynamicResource ThemeBorderMidBrush}" />
|
|
</Style>
|
|
<Style Selector="RepeatButton:disabled">
|
|
<Setter Property="Opacity"
|
|
Value="{DynamicResource ThemeDisabledOpacity}" />
|
|
</Style>
|
|
</Styles>
|
|
|