终端一体化运控平台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

RecIcoButtonStyle.xaml 1.7 KiB

pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
pirms 2 gadiem
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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>