|
@@ -64,8 +64,47 @@
|
|
|
</Style>
|
|
|
|
|
|
<!-- listview Item Style -->
|
|
|
+ <Style TargetType="{x:Type ListViewItem}">
|
|
|
+ <Setter Property="Background" Value="Transparent"/>
|
|
|
+ <Setter Property="Foreground" Value="Black"/>
|
|
|
+ <Setter Property="FontSize" Value="14"/>
|
|
|
+ <Setter Property="TextBlock.TextAlignment" Value="Left"/>
|
|
|
+ <Setter Property="MinHeight" Value="24"/>
|
|
|
+ <Setter Property="MinWidth" Value="50"/>
|
|
|
+ <Setter Property="Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="{x:Type ListViewItem}">
|
|
|
+ <Border x:Name="BG" Background="{TemplateBinding Background}" BorderThickness="0,0,0,1" BorderBrush="Gray" SnapsToDevicePixels="True" Cursor="Hand">
|
|
|
+ <Grid>
|
|
|
+ <Border x:Name="Highlight" BorderBrush="Black" BorderThickness="0" Background="{DynamicResource Listview_BG_Highlight}" Opacity="0"/>
|
|
|
+ <GridViewRowPresenter Content="{TemplateBinding Content}" Columns="{TemplateBinding GridView.ColumnCollection}"/>
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="IsSelected" Value="True">
|
|
|
+ <Setter Property="Opacity" TargetName="Highlight" Value="1"/>
|
|
|
+ <Setter Property="BorderThickness" TargetName="Highlight" Value="1"/>
|
|
|
+ <Setter Property="Foreground" Value="White"/>
|
|
|
+ <Setter Property="Margin" TargetName="Highlight" Value="0,-1"/>
|
|
|
+ </Trigger>
|
|
|
+ <!--<Trigger Property="IsMouseOver" Value="True">
|
|
|
+ <Setter Property="Opacity" TargetName="Highlight" Value="0.8"/>
|
|
|
+ </Trigger>-->
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ <Style.Triggers>
|
|
|
+ <Trigger Property="ListView.AlternationIndex" Value="0">
|
|
|
+ <Setter Property="Background" Value="{DynamicResource Listview_BG_First}"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="ListView.AlternationIndex" Value="1">
|
|
|
+ <Setter Property="Background" Value="{DynamicResource Listview_BG_Second}"/>
|
|
|
+ </Trigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
|
|
|
- <Style TargetType="{x:Type ListViewItem}">
|
|
|
+ <Style x:Key="ListViewItemBase" TargetType="{x:Type ListViewItem}">
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
<Setter Property="Foreground" Value="Black"/>
|
|
|
<Setter Property="FontSize" Value="14"/>
|