StylesForCalc.axaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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="StackPanel.calcOptionSP">
  9. <Setter Property="Orientation" Value="Vertical"/>
  10. <Setter Property="HorizontalAlignment" Value="Center"/>
  11. <Setter Property="Margin" Value="15"/>
  12. </Style>
  13. <Style Selector="StackPanel.cellsForCalcSP">
  14. <Setter Property="Orientation" Value="Horizontal"/>
  15. <Setter Property="HorizontalAlignment" Value="Center"/>
  16. <Setter Property="VerticalAlignment" Value="Center"/>
  17. <Setter Property="Margin" Value="15"/>
  18. </Style>
  19. <Style Selector="TextBox.cellsForCalcTB">
  20. <Setter Property="Width" Value="30"/>
  21. <Setter Property="Height" Value="40"/>
  22. <Setter Property="Margin" Value="5 0 5 0"/>
  23. <Setter Property="BorderBrush" Value="#32CD32"/>
  24. <Setter Property="Background" Value="#F5F5F5"/>
  25. </Style>
  26. <Style Selector="ComboBox.calcCB">
  27. <Setter Property="BorderBrush" Value="#32CD32"/>
  28. <Setter Property="Background" Value="#F5F5F5"/>
  29. </Style>
  30. <Style Selector="TextBlock.calcSymTB">
  31. <Setter Property="VerticalAlignment" Value="Center"/>
  32. <Setter Property="HorizontalAlignment" Value="Center"/>
  33. </Style>
  34. <Style Selector="Button.calcBut">
  35. <Setter Property="Background" Value="#32CD32"/>
  36. <Setter Property="Foreground" Value="White"/>
  37. </Style>
  38. </Styles>