Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Style
- TargetType="ListBox">
- <Setter
- Property="Background"
- Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />
- <Setter
- Property="Template">
- <Setter.Value>
- <ControlTemplate
- TargetType="Label">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition
- Height="Auto" />
- <RowDefinition
- Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition
- Width="10" />
- <ColumnDefinition
- Width="Auto" />
- <ColumnDefinition
- Width="*" />
- </Grid.ColumnDefinitions>
- <Border
- Grid.Row="0"
- Grid.Column="0"
- BorderThickness="1,1,0,0"
- CornerRadius="2,0,0,0"
- BorderBrush="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}">
- <Border.Background>
- <LinearGradientBrush
- StartPoint="0,0"
- EndPoint="0,1">
- <LinearGradientBrush.GradientStops>
- <GradientStopCollection>
- <GradientStop
- Color="{DynamicResource ControlLightColor}"
- Offset="0.0" />
- <GradientStop
- Color="{DynamicResource ControlMediumColor}"
- Offset="1.0" />
- </GradientStopCollection>
- </LinearGradientBrush.GradientStops>
- </LinearGradientBrush>
- </Border.Background>
- </Border>
- <Border
- Grid.Row="0"
- Grid.Column="2"
- BorderThickness="0,1,1,0"
- CornerRadius="0,2,0,0"
- BorderBrush="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}">
- <Border.Background>
- <LinearGradientBrush
- StartPoint="0,0"
- EndPoint="0,1">
- <LinearGradientBrush.GradientStops>
- <GradientStopCollection>
- <GradientStop
- Color="{DynamicResource ControlLightColor}"
- Offset="0.0" />
- <GradientStop
- Color="{DynamicResource ControlMediumColor}"
- Offset="1.0" />
- </GradientStopCollection>
- </LinearGradientBrush.GradientStops>
- </LinearGradientBrush>
- </Border.Background>
- </Border>
- <ItemsPresenter
- Grid.Row="0"
- Grid.Column="1" />
- <Border
- Grid.Row="1"
- Grid.Column="0"
- Grid.ColumnSpan="3"
- BorderThickness="1,0,1,1"
- CornerRadius="0,0,2,2"
- BorderBrush="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}">
- <Border.Background>
- <LinearGradientBrush
- EndPoint="0.5,1"
- MappingMode="RelativeToBoundingBox"
- StartPoint="0.5,0">
- <GradientStop
- Color="{DynamicResource ControlLightColor}"
- Offset="0" />
- <GradientStop
- Color="{DynamicResource ControlMediumColor}"
- Offset="1" />
- </LinearGradientBrush>
- </Border.Background>
- </Border>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement