| 1 | <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | xmlns:local="clr-namespace:UI.Controls.List" |
| 4 | xmlns:base="clr-namespace:UI.Controls.Base" |
| 5 | xmlns:sys="clr-namespace:System;assembly=mscorlib"> |
| 6 | <Style TargetType="{x:Type local:BaseList}"> |
| 7 | <Setter Property="SnapsToDevicePixels" |
| 8 | Value="true" /> |
| 9 | <Setter Property="UseLayoutRounding" Value="True"/> |
| 10 | |
| 11 | |
| 12 | <Setter Property="Height" Value="auto"/> |
| 13 | <Setter Property="Background" Value="Transparent"/> |
| 14 | <Setter Property="Template"> |
| 15 | <Setter.Value> |
| 16 | <ControlTemplate TargetType="{x:Type local:BaseList}"> |
| 17 | <Border Background="{TemplateBinding Background}" x:Name="Border"> |
| 18 | |
| 19 | <Grid> |
| 20 | <ScrollViewer x:Name="ScrollViewer" VerticalScrollBarVisibility="Hidden"> |
| 21 | <StackPanel x:Name="Container"> |
| 22 | |
| 23 | </StackPanel> |
| 24 | </ScrollViewer> |
| 25 | </Grid> |
| 26 | |
| 27 | </Border> |
| 28 | <ControlTemplate.Triggers> |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | </ControlTemplate.Triggers> |
| 36 | </ControlTemplate> |
| 37 | </Setter.Value> |
| 38 | </Setter> |
| 39 | </Style> |
| 40 | </ResourceDictionary> |