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

70 rivejä
3.6 KiB

  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  2. <!--#region GroupBox样式-->
  3. <BorderGapMaskConverter x:Key="BorderGapMaskConverter" />
  4. <Style x:Key="GroupBoxStyle1" TargetType="{x:Type GroupBox}">
  5. <Setter Property="BorderBrush" Value="#D5DFE5" />
  6. <Setter Property="BorderThickness" Value="1" />
  7. <Setter Property="Template">
  8. <Setter.Value>
  9. <ControlTemplate TargetType="{x:Type GroupBox}">
  10. <Grid SnapsToDevicePixels="true">
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition Width="6" />
  13. <ColumnDefinition Width="Auto" />
  14. <ColumnDefinition Width="*" />
  15. <ColumnDefinition Width="6" />
  16. </Grid.ColumnDefinitions>
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="Auto" />
  19. <RowDefinition Height="Auto" />
  20. <RowDefinition Height="*" />
  21. <RowDefinition Height="6" />
  22. </Grid.RowDefinitions>
  23. <Border
  24. Grid.Row="1"
  25. Grid.RowSpan="3"
  26. Grid.Column="0"
  27. Grid.ColumnSpan="4"
  28. Background="{TemplateBinding Background}"
  29. BorderBrush="Transparent"
  30. BorderThickness="{TemplateBinding BorderThickness}"
  31. CornerRadius="0" />
  32. <Border
  33. Name="Header"
  34. Grid.Row="0"
  35. Grid.RowSpan="2"
  36. Grid.Column="1"
  37. Padding="3,1,3,0">
  38. <ContentPresenter
  39. ContentSource="Header"
  40. RecognizesAccessKey="true"
  41. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  42. </Border>
  43. <ContentPresenter
  44. Grid.Row="2"
  45. Grid.Column="1"
  46. Grid.ColumnSpan="2"
  47. Margin="{TemplateBinding Padding}"
  48. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  49. <Border
  50. Grid.Row="1"
  51. Grid.RowSpan="3"
  52. Grid.ColumnSpan="4"
  53. BorderBrush="{TemplateBinding BorderBrush}"
  54. BorderThickness="{TemplateBinding BorderThickness}"
  55. CornerRadius="0">
  56. <Border.OpacityMask>
  57. <MultiBinding Converter="{StaticResource BorderGapMaskConverter}" ConverterParameter="7">
  58. <Binding ElementName="Header" Path="ActualWidth" />
  59. <Binding Path="ActualWidth" RelativeSource="{RelativeSource Self}" />
  60. <Binding Path="ActualHeight" RelativeSource="{RelativeSource Self}" />
  61. </MultiBinding>
  62. </Border.OpacityMask>
  63. </Border>
  64. </Grid>
  65. </ControlTemplate>
  66. </Setter.Value>
  67. </Setter>
  68. </Style>
  69. <!--#endregion-->
  70. </ResourceDictionary>