1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <Style x:Key="DefaultListBoxItem" TargetType="{x:Type ListBoxItem}">
- <Setter Property="Height" Value="90" />
- <Setter Property="Margin" Value="5" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Foreground" Value="{DynamicResource DefaultForeground}" />
- <Setter Property="Background" Value="{DynamicResource BorderBackground}" />
- <Setter Property="BorderThickness" Value="0" />
- <Style.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <Setter Property="Background" Value="{DynamicResource BorderActiveBackground}" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="{DynamicResource BorderActiveBackground}" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="DefaultNoBorderListBoxItem" TargetType="{x:Type ListBoxItem}">
- <Setter Property="Margin" Value="5" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Foreground" Value="{DynamicResource DefaultForeground}" />
- <Setter Property="BorderThickness" Value="0" />
- <Style.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <Setter Property="Background" Value="{DynamicResource BorderActiveBackground}" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="{DynamicResource BorderActiveBackground}" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style TargetType="ListBox">
- <Setter Property="BorderBrush" Value="#dddddd" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ListBox">
- <Border
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}">
- <ScrollViewer
- Padding="0"
- CanContentScroll="False"
- HorizontalScrollBarVisibility="Disabled"
- VerticalScrollBarVisibility="Auto">
- <ItemsPresenter ClipToBounds="True" />
- </ScrollViewer>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ResourceDictionary>
|