Advertisement
Guest User

Will Pittenger

a guest
May 20th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.99 KB | None | 0 0
  1.         <Style
  2.             TargetType="ListBox">
  3.             <Setter
  4.                 Property="Background"
  5.                 Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />
  6.             <Setter
  7.                 Property="Template">
  8.                 <Setter.Value>
  9.                     <ControlTemplate
  10.                         TargetType="Label">
  11.                         <Grid>
  12.                             <Grid.RowDefinitions>
  13.                                 <RowDefinition
  14.                                     Height="Auto" />
  15.                                 <RowDefinition
  16.                                     Height="*" />
  17.                             </Grid.RowDefinitions>
  18.                             <Grid.ColumnDefinitions>
  19.                                 <ColumnDefinition
  20.                                     Width="10" />
  21.                                 <ColumnDefinition
  22.                                     Width="Auto" />
  23.                                 <ColumnDefinition
  24.                                     Width="*" />
  25.                             </Grid.ColumnDefinitions>
  26.                             <Border
  27.                                 Grid.Row="0"
  28.                                 Grid.Column="0"
  29.                                 BorderThickness="1,1,0,0"
  30.                                 CornerRadius="2,0,0,0"
  31.                                 BorderBrush="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}">
  32.                                 <Border.Background>
  33.                                     <LinearGradientBrush
  34.                                         StartPoint="0,0"
  35.                                         EndPoint="0,1">
  36.                                         <LinearGradientBrush.GradientStops>
  37.                                             <GradientStopCollection>
  38.                                                 <GradientStop
  39.                                                     Color="{DynamicResource ControlLightColor}"
  40.                                                     Offset="0.0" />
  41.                                                 <GradientStop
  42.                                                     Color="{DynamicResource ControlMediumColor}"
  43.                                                     Offset="1.0" />
  44.                                             </GradientStopCollection>
  45.                                         </LinearGradientBrush.GradientStops>
  46.                                     </LinearGradientBrush>
  47.                                 </Border.Background>
  48.                             </Border>
  49.                             <Border
  50.                                 Grid.Row="0"
  51.                                 Grid.Column="2"
  52.                                 BorderThickness="0,1,1,0"
  53.                                 CornerRadius="0,2,0,0"
  54.                                 BorderBrush="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}">
  55.                                 <Border.Background>
  56.                                     <LinearGradientBrush
  57.                                         StartPoint="0,0"
  58.                                         EndPoint="0,1">
  59.                                         <LinearGradientBrush.GradientStops>
  60.                                             <GradientStopCollection>
  61.                                                 <GradientStop
  62.                                                     Color="{DynamicResource ControlLightColor}"
  63.                                                     Offset="0.0" />
  64.                                                 <GradientStop
  65.                                                     Color="{DynamicResource ControlMediumColor}"
  66.                                                     Offset="1.0" />
  67.                                             </GradientStopCollection>
  68.                                         </LinearGradientBrush.GradientStops>
  69.                                     </LinearGradientBrush>
  70.                                 </Border.Background>
  71.                             </Border>
  72.                             <ItemsPresenter
  73.                                 Grid.Row="0"
  74.                                 Grid.Column="1" />
  75.                             <Border
  76.                                 Grid.Row="1"
  77.                                 Grid.Column="0"
  78.                                 Grid.ColumnSpan="3"
  79.                                 BorderThickness="1,0,1,1"
  80.                                 CornerRadius="0,0,2,2"
  81.                                 BorderBrush="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}">
  82.                                 <Border.Background>
  83.                                     <LinearGradientBrush
  84.                                         EndPoint="0.5,1"
  85.                                         MappingMode="RelativeToBoundingBox"
  86.                                         StartPoint="0.5,0">
  87.                                         <GradientStop
  88.                                             Color="{DynamicResource ControlLightColor}"
  89.                                             Offset="0" />
  90.                                         <GradientStop
  91.                                             Color="{DynamicResource ControlMediumColor}"
  92.                                             Offset="1" />
  93.                                     </LinearGradientBrush>
  94.                                 </Border.Background>
  95.                             </Border>
  96.                         </Grid>
  97.                     </ControlTemplate>
  98.                 </Setter.Value>
  99.             </Setter>
  100.         </Style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement