123456789101112131415161718192021222324252627282930313233343536373839 |
- <Styles xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <Style Selector="TextBox">
- <Setter Property="BorderBrush" Value="{DynamicResource PrsTileBorder}" />
- <Setter Property="BorderThickness">
- <Setter.Value>
- <DynamicResource ResourceKey="PrsBorderThickness" />
- </Setter.Value>
- </Setter>
- <Setter Property="Background" Value="{DynamicResource PrsTileBackground}" />
- <Setter Property="Foreground" Value="{DynamicResource PrsTileForeground}" />
- <Setter Property="CornerRadius" Value="{DynamicResource PrsCornerRadius}" />
- <Setter Property="Margin" Value="{DynamicResource PrsControlSpacing}"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- </Style>
-
- <Style Selector="TextBox /template/ ContentPresenter#PART_ContentPresenter">
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Background" Value="{DynamicResource PrsTileBackground}" />
- <Setter Property="Foreground" Value="{DynamicResource PrsTileForeground}" />
- </Style>
-
- <Style Selector="TextBox:pointerover /template/ ContentPresenter#PART_ContentPresenter">
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Background" Value="{DynamicResource PrsTileBackground}" />
- <Setter Property="Foreground" Value="{DynamicResource PrsTileForeground}" />
- </Style>
-
- <Style Selector="TextBox /template/ Border#PART_BorderElement">
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Background" Value="{DynamicResource PrsTileBackground}" />
- </Style>
-
- <Style Selector="TextBox:focus /template/ Border#PART_BorderElement">
- <Setter Property="BorderBrush" Value="{TemplateBinding BorderBrush}" />
- <Setter Property="BorderThickness" Value="{TemplateBinding BorderThickness}"/>
- <Setter Property="Background" Value="{TemplateBinding Background}" />
- </Style>
- </Styles>
|