终端一体化运控平台
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.
 
 
 

55 regels
2.1 KiB

  1. <ResourceDictionary
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:local="clr-namespace:BPASmartClient.CustomResource.UserControls">
  5. <ControlTemplate x:Key="IcoButtonTemp" TargetType="Button">
  6. <Border
  7. x:Name="br"
  8. Background="Transparent"
  9. BorderBrush="#FF19B7EC"
  10. BorderThickness="2">
  11. <StackPanel
  12. HorizontalAlignment="Center"
  13. VerticalAlignment="Center"
  14. Orientation="Horizontal">
  15. <ContentControl
  16. HorizontalAlignment="Center"
  17. VerticalAlignment="Center"
  18. Content="{TemplateBinding Content}"
  19. Foreground="{TemplateBinding Foreground}" />
  20. </StackPanel>
  21. </Border>
  22. <ControlTemplate.Triggers>
  23. <Trigger Property="IsMouseOver" Value="True">
  24. <Setter TargetName="br" Property="Background" Value="#2219B7EC" />
  25. </Trigger>
  26. <Trigger Property="IsPressed" Value="true">
  27. <Setter TargetName="br" Property="Background" Value="#2219B7EC" />
  28. </Trigger>
  29. </ControlTemplate.Triggers>
  30. </ControlTemplate>
  31. <Style x:Key="IcoButtonStyle" TargetType="local:IcoButton">
  32. <Setter Property="FontFamily" Value="../Fonts/#iconfont" />
  33. <Setter Property="FontSize" Value="14" />
  34. <Setter Property="Background" Value="#2219b7ec" />
  35. <Setter Property="BorderBrush" Value="#ff19b7ec" />
  36. <Setter Property="BorderThickness" Value="2" />
  37. <Setter Property="EnterBackground" Value="#8819b7ec" />
  38. </Style>
  39. <Style x:Key="IcoTitleBarStyle" TargetType="local:IcoButton">
  40. <Setter Property="FontFamily" Value="../Fonts/#iconfont" />
  41. <Setter Property="FontSize" Value="24" />
  42. <Setter Property="Background" Value="Transparent" />
  43. <Setter Property="BorderThickness" Value="0" />
  44. <Setter Property="EnterBackground" Value="#33ffffff" />
  45. </Style>
  46. </ResourceDictionary>