Styles1.axaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <Styles xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  3. <Design.PreviewWith>
  4. <Border Padding="20">
  5. <!-- Add Controls for Previewer Here -->
  6. </Border>
  7. </Design.PreviewWith>
  8. <Style Selector="Button">
  9. <Setter Property="Background" Value="#007ACC"/>
  10. <Setter Property="Foreground" Value="White"/>
  11. <Setter Property="BorderBrush" Value="#005B99"/>
  12. <Setter Property="BorderThickness" Value="1"/>
  13. <Setter Property="CornerRadius" Value="5"/>
  14. <Setter Property="Padding" Value="10,5"/>
  15. <Setter Property="FontSize" Value="16"/>
  16. <Setter Property="FontWeight" Value="Bold"/>
  17. <Setter Property="Margin" Value="5"/>
  18. <Setter Property="HorizontalAlignment" Value="Center"/>
  19. <Setter Property="VerticalAlignment" Value="Center"/>
  20. </Style>
  21. <Style Selector="TextBlock">
  22. <Setter Property="FontSize" Value="16"/>
  23. <Setter Property="Foreground" Value="#333"/>
  24. <Setter Property="Margin" Value="5"/>
  25. </Style>
  26. <Style Selector="DatePicker">
  27. <Setter Property="BorderBrush" Value="#007ACC"/>
  28. <Setter Property="BorderThickness" Value="1"/>
  29. <Setter Property="CornerRadius" Value="5"/>
  30. <Setter Property="Padding" Value="5"/>
  31. <Setter Property="FontSize" Value="16"/>
  32. </Style>
  33. <Style Selector="RadioButton">
  34. <Setter Property="Foreground" Value="#333"/>
  35. <Setter Property="FontSize" Value="16"/>
  36. <Setter Property="Margin" Value="5"/>
  37. </Style>
  38. <Style Selector="Image">
  39. <Setter Property="Width" Value="200"/>
  40. <Setter Property="Height" Value="200"/>
  41. <Setter Property="Margin" Value="10"/>
  42. <Setter Property="HorizontalAlignment" Value="Center"/>
  43. <Setter Property="VerticalAlignment" Value="Center"/>
  44. </Style>
  45. <Style Selector="StackPanel">
  46. <Setter Property="Margin" Value="10"/>
  47. <Setter Property="HorizontalAlignment" Value="Center"/>
  48. <Setter Property="VerticalAlignment" Value="Center"/>
  49. </Style>
  50. </Styles>