DoubleBox.axaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <Styles
  2. xmlns="https://github.com/avaloniaui"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:components="clr-namespace:InABox.Avalonia.Components">
  5. <Style Selector="components|DoubleBox">
  6. <Setter Property="BorderBrush" Value="{DynamicResource PrsTileBorder}" />
  7. <Setter Property="BorderThickness">
  8. <Setter.Value>
  9. <DynamicResource ResourceKey="PrsBorderThickness" />
  10. </Setter.Value>
  11. </Setter>
  12. <Setter Property="Background" Value="{DynamicResource PrsTileBackground}" />
  13. <Setter Property="Foreground" Value="{DynamicResource PrsTileForeground}" />
  14. <Setter Property="CornerRadius" Value="{DynamicResource PrsCornerRadius}" />
  15. <Setter Property="Margin" Value="{DynamicResource PrsControlSpacing}"/>
  16. <Setter Property="VerticalContentAlignment" Value="Center"/>
  17. </Style>
  18. <Style Selector="components|DoubleBox /template/ ContentPresenter#PART_ContentPresenter">
  19. <Setter Property="BorderThickness" Value="0" />
  20. <Setter Property="Background" Value="{DynamicResource PrsTileBackground}" />
  21. <Setter Property="Foreground" Value="{DynamicResource PrsTileForeground}" />
  22. </Style>
  23. <Style Selector="components|DoubleBox:pointerover /template/ ContentPresenter#PART_ContentPresenter">
  24. <Setter Property="BorderThickness" Value="0" />
  25. <Setter Property="Background" Value="{DynamicResource PrsTileBackground}" />
  26. <Setter Property="Foreground" Value="{DynamicResource PrsTileForeground}" />
  27. </Style>
  28. <Style Selector="components|DoubleBox /template/ Border#PART_BorderElement">
  29. <Setter Property="BorderThickness" Value="0" />
  30. <Setter Property="Background" Value="{DynamicResource PrsTileBackground}" />
  31. </Style>
  32. <Style Selector="components|DoubleBox:focus /template/ Border#PART_BorderElement">
  33. <Setter Property="BorderBrush" Value="{TemplateBinding BorderBrush}" />
  34. <Setter Property="BorderThickness" Value="{TemplateBinding BorderThickness}"/>
  35. <Setter Property="Background" Value="{TemplateBinding Background}" />
  36. </Style>
  37. </Styles>