终端一体化运控平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

49 行
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" Background="{TemplateBinding Background}">
  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>