终端一体化运控平台
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

45 wiersze
1.7 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="NewButtonStyle" TargetType="local:IcoButton">
  32. <Setter Property="FontFamily" Value="../Fonts/#iconfont" />
  33. <Setter Property="FontSize" Value="14" />
  34. <Setter Property="Background" Value="Transparent" />
  35. <Setter Property="BorderBrush" Value="#ff19b7ec" />
  36. <Setter Property="BorderThickness" Value="2" />
  37. <Setter Property="EnterBackground" Value="#2219b7ec" />
  38. </Style>
  39. </ResourceDictionary>