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

49 wiersze
2.5 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. <!--#region icoButton-->
  6. <Style TargetType="{x:Type local:IcoButton}">
  7. <Setter Property="Template">
  8. <Setter.Value>
  9. <ControlTemplate TargetType="{x:Type local:IcoButton}">
  10. <Grid Name="PART_gr">
  11. <Border
  12. Name="PART_br"
  13. Background="{TemplateBinding Background}"
  14. BorderBrush="{TemplateBinding BorderBrush}"
  15. BorderThickness="{TemplateBinding BorderThickness}" />
  16. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
  17. <TextBlock
  18. Name="PART_icoText"
  19. Margin="0,0,10,0"
  20. HorizontalAlignment="Right"
  21. VerticalAlignment="Center"
  22. FontFamily="{TemplateBinding FontFamily}"
  23. FontSize="{TemplateBinding FontSize}"
  24. Foreground="{TemplateBinding Foreground}" />
  25. <TextBlock
  26. Name="PART_content"
  27. Grid.Column="1"
  28. HorizontalAlignment="Left"
  29. VerticalAlignment="Center"
  30. FontFamily="{TemplateBinding FontFamily}"
  31. FontSize="{TemplateBinding FontSize}"
  32. Foreground="{TemplateBinding Foreground}" />
  33. </StackPanel>
  34. </Grid>
  35. <!--<ControlTemplate.Triggers>
  36. <Trigger Property="IsEnabled" Value="False">
  37. <Setter TargetName="PART_br" Property="BorderBrush" Value="{TemplateBinding EnableColor}" />
  38. <Setter TargetName="PART_icoText" Property="Foreground" Value="red" />
  39. <Setter TargetName="PART_content" Property="Foreground" Value="red" />
  40. </Trigger>
  41. </ControlTemplate.Triggers>-->
  42. </ControlTemplate>
  43. </Setter.Value>
  44. </Setter>
  45. </Style>
  46. <!--#endregion-->
  47. </ResourceDictionary>