12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <Styles xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <Style Selector="Button.Standard">
- <Setter Property="HorizontalAlignment" Value="Stretch" />
- <Setter Property="VerticalAlignment" Value="Stretch" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Padding" Value="10" />
- <Setter Property="Margin" Value="{DynamicResource PrsControlSpacing}" />
- <Setter Property="BorderBrush" Value="{DynamicResource PrsButtonBorder}" />
- <Setter Property="BorderThickness">
- <Setter.Value>
- <DynamicResource ResourceKey="PrsBorderThickness" />
- </Setter.Value>
- </Setter>
- <Setter Property="Background" Value="{DynamicResource PrsButtonBackground}" />
- <Setter Property="Foreground" Value="{DynamicResource PrsButtonForeground}" />
- <Setter Property="CornerRadius" Value="{DynamicResource PrsCornerRadius}" />
- </Style>
- <!-- Disable Hover Effects on Buttons -->
- <Style Selector="Button.Standard:pointerover /template/ ContentPresenter#PART_ContentPresenter">
- <Setter Property="BorderBrush" Value="{Binding $parent[Button].BorderBrush}" />
- <Setter Property="BorderThickness" Value="{Binding $parent[Button].BorderThickness}" />
- <Setter Property="Background" Value="{Binding $parent[Button].Background}" />
- <Setter Property="Foreground" Value="{Binding $parent[Button].Foreground}" />
- </Style>
- <Style Selector="Button.NoHover:pointerover /template/ ContentPresenter#PART_ContentPresenter">
- <Setter Property="BorderBrush" Value="{Binding $parent[Button].BorderBrush}" />
- <Setter Property="BorderThickness" Value="{Binding $parent[Button].BorderThickness}" />
- <Setter Property="Background" Value="{Binding $parent[Button].Background}" />
- <Setter Property="Foreground" Value="{Binding $parent[Button].Foreground}" />
- </Style>
- <Style Selector="Button.Transparent">
- <Setter Property="HorizontalAlignment" Value="Stretch" />
- <Setter Property="VerticalAlignment" Value="Stretch" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Margin" Value="{DynamicResource PrsControlSpacing}" />
- <Setter Property="Padding" Value="{DynamicResource PrsControlSpacing}" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Foreground" Value="Transparent" />
- </Style>
- </Styles>
|