终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
1.5 KiB

  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  2. <!--#region 按钮样式-->
  3. <Style x:Key="ButtonStyle" TargetType="Button">
  4. <Setter Property="Foreground" Value="#00c2f4" />
  5. <Setter Property="FontSize" Value="18" />
  6. <Setter Property="Margin" Value="10,0" />
  7. <Setter Property="Template">
  8. <Setter.Value>
  9. <ControlTemplate TargetType="Button">
  10. <Border
  11. Name="TitleBarBr"
  12. Background="Transparent"
  13. BorderBrush="#00c2f4"
  14. BorderThickness="2"
  15. CornerRadius="10">
  16. <ContentPresenter
  17. Margin="{TemplateBinding Margin}"
  18. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  19. VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  20. </Border>
  21. <ControlTemplate.Triggers>
  22. <Trigger Property="IsMouseOver" Value="true">
  23. <Setter TargetName="TitleBarBr" Property="Background" Value="#3300c2f4" />
  24. </Trigger>
  25. </ControlTemplate.Triggers>
  26. </ControlTemplate>
  27. </Setter.Value>
  28. </Setter>
  29. </Style>
  30. <!--#endregion-->
  31. </ResourceDictionary>