App.xaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <prism:PrismApplication x:Class="LocalhostMES.App"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:prism="http://prismlibrary.com/"
  5. xmlns:local="clr-namespace:LocalhostMES.Views">
  6. <Application.Resources>
  7. <!-- 转换器 -->
  8. <local:ResultColorConverter x:Key="ResultColorConverter" />
  9. <Style TargetType="Button">
  10. <Setter Property="Background"
  11. Value="#007ACC" />
  12. <Setter Property="Foreground"
  13. Value="White" />
  14. <Setter Property="BorderThickness"
  15. Value="0" />
  16. <Setter Property="Padding"
  17. Value="10,5" />
  18. <Setter Property="Cursor"
  19. Value="Hand" />
  20. <Style.Triggers>
  21. <Trigger Property="IsMouseOver"
  22. Value="True">
  23. <Setter Property="Background"
  24. Value="#005A9E" />
  25. </Trigger>
  26. <Trigger Property="IsEnabled"
  27. Value="False">
  28. <Setter Property="Background"
  29. Value="#CCCCCC" />
  30. </Trigger>
  31. </Style.Triggers>
  32. </Style>
  33. <Style TargetType="TextBox">
  34. <Setter Property="BorderThickness"
  35. Value="1" />
  36. <Setter Property="BorderBrush"
  37. Value="#CCCCCC" />
  38. <Setter Property="Padding"
  39. Value="5" />
  40. </Style>
  41. <Style TargetType="DataGrid">
  42. <Setter Property="BorderThickness"
  43. Value="1" />
  44. <Setter Property="BorderBrush"
  45. Value="#CCCCCC" />
  46. <Setter Property="RowBackground"
  47. Value="White" />
  48. <Setter Property="AlternatingRowBackground"
  49. Value="#F5F5F5" />
  50. </Style>
  51. </Application.Resources>
  52. </prism:PrismApplication>