|
@@ -1,34 +1,61 @@
|
|
|
-<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
|
|
<Style x:Key="FilesListViewStyle" TargetType="{x:Type ListView}">
|
|
|
<Setter Property="Template">
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate TargetType="{x:Type ListView}">
|
|
|
- <Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="1" SnapsToDevicePixels="true">
|
|
|
- <ScrollViewer Focusable="false" Padding="{TemplateBinding Padding}">
|
|
|
+ <Border
|
|
|
+ x:Name="Bd"
|
|
|
+ Padding="1"
|
|
|
+ Background="{TemplateBinding Background}"
|
|
|
+ BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
+ SnapsToDevicePixels="true">
|
|
|
+ <ScrollViewer Padding="{TemplateBinding Padding}" Focusable="false">
|
|
|
<Grid>
|
|
|
<Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="Auto"/>
|
|
|
- <RowDefinition/>
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition />
|
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
<Grid>
|
|
|
<Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition MinWidth="0" Width ="4.5*"/>
|
|
|
+ <ColumnDefinition Width="4.5*" MinWidth="0" />
|
|
|
<ColumnDefinition Width="3*" />
|
|
|
<ColumnDefinition Width="2*" />
|
|
|
- <ColumnDefinition Width="100"/>
|
|
|
+ <ColumnDefinition Width="100" />
|
|
|
</Grid.ColumnDefinitions>
|
|
|
- <TextBlock HorizontalAlignment="Left" Margin="12,0,0,6" VerticalAlignment="Center" FontSize="14"/>
|
|
|
- <!--Text="{x:Static homePageUI:HomePage.RencentFiles_Name}"-->
|
|
|
- <TextBlock HorizontalAlignment="Center" Margin="0,0,0,6" TextWrapping="Wrap" TextAlignment="Center" VerticalAlignment="Center" Grid.Column="1" FontSize="14" />
|
|
|
- <!--Text="{x:Static homePageUI:HomePage.RencentFiles_LastOpenedTime}"-->
|
|
|
- <TextBlock HorizontalAlignment="Center" Margin="0,0,0,6" VerticalAlignment="Center" Grid.Column="2" FontSize="14" />
|
|
|
- <!--Text="{x:Static homePageUI:HomePage.RencentFiles_Size}"-->
|
|
|
- <Rectangle Grid.ColumnSpan="4" Margin="12,0,0,0" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" Fill="#26000000" Height="1"/>
|
|
|
+ <TextBlock
|
|
|
+ Margin="12,0,0,6"
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ FontSize="14" />
|
|
|
+ <!-- Text="{x:Static homePageUI:HomePage.RencentFiles_Name}" -->
|
|
|
+ <TextBlock
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="0,0,0,6"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ FontSize="14"
|
|
|
+ TextAlignment="Center"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <!-- Text="{x:Static homePageUI:HomePage.RencentFiles_LastOpenedTime}" -->
|
|
|
+ <TextBlock
|
|
|
+ Grid.Column="2"
|
|
|
+ Margin="0,0,0,6"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ FontSize="14" />
|
|
|
+ <!-- Text="{x:Static homePageUI:HomePage.RencentFiles_Size}" -->
|
|
|
+ <Rectangle
|
|
|
+ Grid.ColumnSpan="4"
|
|
|
+ Height="1"
|
|
|
+ Margin="12,0,0,0"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ VerticalAlignment="Bottom"
|
|
|
+ Fill="#26000000" />
|
|
|
</Grid>
|
|
|
- <ItemsPresenter Grid.Row="1" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
|
|
+ <ItemsPresenter Grid.Row="1" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
|
</Grid>
|
|
|
</ScrollViewer>
|
|
|
</Border>
|
|
@@ -38,39 +65,33 @@
|
|
|
</Style>
|
|
|
|
|
|
<Style x:Key="FilesListViewItemStyle" TargetType="{x:Type ListViewItem}">
|
|
|
- <Setter Property="UIElement.SnapsToDevicePixels"
|
|
|
- Value="True" />
|
|
|
- <Setter Property="Control.Padding"
|
|
|
- Value="4,1" />
|
|
|
+ <Setter Property="UIElement.SnapsToDevicePixels" Value="True" />
|
|
|
+ <Setter Property="Control.Padding" Value="4,1" />
|
|
|
<Setter Property="Control.HorizontalContentAlignment">
|
|
|
<Setter.Value>
|
|
|
- <Binding Path="HorizontalContentAlignment"
|
|
|
- RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=ItemsControl, AncestorLevel=1}" />
|
|
|
+ <Binding Path="HorizontalContentAlignment" RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=ItemsControl, AncestorLevel=1}" />
|
|
|
</Setter.Value>
|
|
|
</Setter>
|
|
|
<Setter Property="Control.VerticalContentAlignment">
|
|
|
<Setter.Value>
|
|
|
- <Binding Path="VerticalContentAlignment"
|
|
|
- RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=ItemsControl, AncestorLevel=1}" />
|
|
|
+ <Binding Path="VerticalContentAlignment" RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=ItemsControl, AncestorLevel=1}" />
|
|
|
</Setter.Value>
|
|
|
</Setter>
|
|
|
- <Setter Property="Panel.Background"
|
|
|
- Value="#00FFFFFF" />
|
|
|
- <Setter Property="Border.BorderBrush"
|
|
|
- Value="#00FFFFFF" />
|
|
|
- <Setter Property="Border.BorderThickness"
|
|
|
- Value="1" />
|
|
|
+ <Setter Property="Panel.Background" Value="#00FFFFFF" />
|
|
|
+ <Setter Property="Border.BorderBrush" Value="#00FFFFFF" />
|
|
|
+ <Setter Property="Border.BorderThickness" Value="1" />
|
|
|
<Setter Property="FrameworkElement.FocusVisualStyle">
|
|
|
<Setter.Value>
|
|
|
<Style TargetType="{x:Type IFrameworkInputElement}">
|
|
|
<Setter Property="Control.Template">
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate>
|
|
|
- <Rectangle Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
|
|
|
- StrokeThickness="1"
|
|
|
- StrokeDashArray="1 2"
|
|
|
- Margin="2"
|
|
|
- SnapsToDevicePixels="True" />
|
|
|
+ <Rectangle
|
|
|
+ Margin="2"
|
|
|
+ SnapsToDevicePixels="True"
|
|
|
+ Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
|
|
|
+ StrokeDashArray="1 2"
|
|
|
+ StrokeThickness="1" />
|
|
|
</ControlTemplate>
|
|
|
</Setter.Value>
|
|
|
</Setter>
|
|
@@ -80,29 +101,50 @@
|
|
|
<Setter Property="Control.Template">
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate TargetType="{x:Type ListViewItem}">
|
|
|
- <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
|
|
|
+ <Border
|
|
|
+ Name="Bd"
|
|
|
Padding="{TemplateBinding Control.Padding}"
|
|
|
- BorderBrush="{TemplateBinding Border.BorderBrush}"
|
|
|
Background="{TemplateBinding Panel.Background}"
|
|
|
- Name="Bd"
|
|
|
+ BorderBrush="{TemplateBinding Border.BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding Border.BorderThickness}"
|
|
|
SnapsToDevicePixels="True">
|
|
|
<Grid>
|
|
|
<Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="Auto"/>
|
|
|
+ <ColumnDefinition Width="Auto" />
|
|
|
<ColumnDefinition />
|
|
|
</Grid.ColumnDefinitions>
|
|
|
- <Grid x:Name="SelectedIcon" Margin="12.5 0 0.5 0" Visibility="Collapsed" HorizontalAlignment="Left" VerticalAlignment="Center">
|
|
|
- <Rectangle x:Name="Selectedrect" Width="20" Height="20" Fill="#FF477EDE" HorizontalAlignment="Right" VerticalAlignment="Top"/>
|
|
|
- <Path x:Name="MultiSelectCheck" Margin="0,1,0,0" Fill="White" Width="15" Height="15" Data="M15.3493 0.596191L16.0564 1.3033L5.44979 11.9099L0.146484 6.6066L0.853591 5.89949L5.45004 10.496L15.3493 0.596191Z"
|
|
|
- VerticalAlignment="Center" HorizontalAlignment="Center"
|
|
|
- />
|
|
|
+ <Grid
|
|
|
+ x:Name="SelectedIcon"
|
|
|
+ Margin="12.5,0,0.5,0"
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Visibility="Collapsed">
|
|
|
+ <Rectangle
|
|
|
+ x:Name="Selectedrect"
|
|
|
+ Width="20"
|
|
|
+ Height="20"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Top"
|
|
|
+ Fill="#FF477EDE" />
|
|
|
+ <Path
|
|
|
+ x:Name="MultiSelectCheck"
|
|
|
+ Width="15"
|
|
|
+ Height="15"
|
|
|
+ Margin="0,1,0,0"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Data="M15.3493 0.596191L16.0564 1.3033L5.44979 11.9099L0.146484 6.6066L0.853591 5.89949L5.45004 10.496L15.3493 0.596191Z"
|
|
|
+ Fill="White" />
|
|
|
</Grid>
|
|
|
- <ContentPresenter Margin="15 0 0 0" Content="{TemplateBinding ContentControl.Content}" Grid.Column="1"
|
|
|
- ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
|
|
|
- ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
|
|
|
- HorizontalAlignment="Stretch"
|
|
|
- VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
|
|
|
- SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
|
|
|
+ <ContentPresenter
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="15,0,0,0"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
|
|
|
+ Content="{TemplateBinding ContentControl.Content}"
|
|
|
+ ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
|
|
|
+ ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
|
|
|
+ SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
|
|
|
</Grid>
|
|
|
|
|
|
</Border>
|
|
@@ -111,29 +153,29 @@
|
|
|
<MultiTrigger.Conditions>
|
|
|
<Condition Property="UIElement.IsMouseOver" Value="True" />
|
|
|
</MultiTrigger.Conditions>
|
|
|
- <Setter Property="Panel.Background" TargetName="Bd" Value="#1A000000" />
|
|
|
- <Setter Property="Border.BorderBrush" TargetName="Bd" Value="#1A000000" />
|
|
|
+ <Setter TargetName="Bd" Property="Panel.Background" Value="#1A000000" />
|
|
|
+ <Setter TargetName="Bd" Property="Border.BorderBrush" Value="#1A000000" />
|
|
|
</MultiTrigger>
|
|
|
<MultiTrigger>
|
|
|
<MultiTrigger.Conditions>
|
|
|
<Condition Property="Selector.IsSelectionActive" Value="False" />
|
|
|
<Condition Property="Selector.IsSelected" Value="True" />
|
|
|
</MultiTrigger.Conditions>
|
|
|
- <Setter Property="Panel.Background" TargetName="Bd" Value="#1A477EDE" />
|
|
|
- <Setter Property="Border.BorderBrush" TargetName="Bd" Value="#1A477EDE" />
|
|
|
- <Setter Property="Grid.Visibility" TargetName="SelectedIcon" Value="Visible"/>
|
|
|
+ <Setter TargetName="Bd" Property="Panel.Background" Value="#1A477EDE" />
|
|
|
+ <Setter TargetName="Bd" Property="Border.BorderBrush" Value="#1A477EDE" />
|
|
|
+ <Setter TargetName="SelectedIcon" Property="Grid.Visibility" Value="Visible" />
|
|
|
</MultiTrigger>
|
|
|
<MultiTrigger>
|
|
|
<MultiTrigger.Conditions>
|
|
|
<Condition Property="Selector.IsSelectionActive" Value="True" />
|
|
|
<Condition Property="Selector.IsSelected" Value="True" />
|
|
|
</MultiTrigger.Conditions>
|
|
|
- <Setter Property="Panel.Background" TargetName="Bd" Value="#1A477EDE" />
|
|
|
- <Setter Property="Border.BorderBrush" TargetName="Bd" Value="#1A477EDE" />
|
|
|
- <Setter Property="Grid.Visibility" TargetName="SelectedIcon" Value="Visible"/>
|
|
|
+ <Setter TargetName="Bd" Property="Panel.Background" Value="#1A477EDE" />
|
|
|
+ <Setter TargetName="Bd" Property="Border.BorderBrush" Value="#1A477EDE" />
|
|
|
+ <Setter TargetName="SelectedIcon" Property="Grid.Visibility" Value="Visible" />
|
|
|
</MultiTrigger>
|
|
|
- <Trigger Property="UIElement.IsEnabled" Value="False">
|
|
|
- <Setter Property="TextElement.Foreground" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
|
+ <Trigger Property="UIElement.IsEnabled" Value="False">
|
|
|
+ <Setter TargetName="Bd" Property="TextElement.Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
|
</Trigger>
|
|
|
</ControlTemplate.Triggers>
|
|
|
</ControlTemplate>
|
|
@@ -143,39 +185,33 @@
|
|
|
|
|
|
|
|
|
<Style x:Key="FilesGridItemStyle" TargetType="{x:Type ListViewItem}">
|
|
|
- <Setter Property="UIElement.SnapsToDevicePixels"
|
|
|
- Value="True" />
|
|
|
- <Setter Property="Control.Padding"
|
|
|
- Value="4,1" />
|
|
|
+ <Setter Property="UIElement.SnapsToDevicePixels" Value="True" />
|
|
|
+ <Setter Property="Control.Padding" Value="4,1" />
|
|
|
<Setter Property="Control.HorizontalContentAlignment">
|
|
|
<Setter.Value>
|
|
|
- <Binding Path="HorizontalContentAlignment"
|
|
|
- RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=ItemsControl, AncestorLevel=1}" />
|
|
|
+ <Binding Path="HorizontalContentAlignment" RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=ItemsControl, AncestorLevel=1}" />
|
|
|
</Setter.Value>
|
|
|
</Setter>
|
|
|
<Setter Property="Control.VerticalContentAlignment">
|
|
|
<Setter.Value>
|
|
|
- <Binding Path="VerticalContentAlignment"
|
|
|
- RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=ItemsControl, AncestorLevel=1}" />
|
|
|
+ <Binding Path="VerticalContentAlignment" RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=ItemsControl, AncestorLevel=1}" />
|
|
|
</Setter.Value>
|
|
|
</Setter>
|
|
|
- <Setter Property="Panel.Background"
|
|
|
- Value="#00FFFFFF" />
|
|
|
- <Setter Property="Border.BorderBrush"
|
|
|
- Value="#00FFFFFF" />
|
|
|
- <Setter Property="Border.BorderThickness"
|
|
|
- Value="2" />
|
|
|
+ <Setter Property="Panel.Background" Value="#00FFFFFF" />
|
|
|
+ <Setter Property="Border.BorderBrush" Value="#00FFFFFF" />
|
|
|
+ <Setter Property="Border.BorderThickness" Value="2" />
|
|
|
<Setter Property="FrameworkElement.FocusVisualStyle">
|
|
|
<Setter.Value>
|
|
|
<Style TargetType="{x:Type IFrameworkInputElement}">
|
|
|
<Setter Property="Control.Template">
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate>
|
|
|
- <Rectangle Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
|
|
|
- StrokeThickness="1"
|
|
|
- StrokeDashArray="1 2"
|
|
|
- Margin="2"
|
|
|
- SnapsToDevicePixels="True" />
|
|
|
+ <Rectangle
|
|
|
+ Margin="2"
|
|
|
+ SnapsToDevicePixels="True"
|
|
|
+ Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
|
|
|
+ StrokeDashArray="1 2"
|
|
|
+ StrokeThickness="1" />
|
|
|
</ControlTemplate>
|
|
|
</Setter.Value>
|
|
|
</Setter>
|
|
@@ -186,24 +222,39 @@
|
|
|
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate TargetType="{x:Type ListViewItem}">
|
|
|
- <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
|
|
|
- Padding="{TemplateBinding Control.Padding}" Margin="0,0,12,24"
|
|
|
- BorderBrush="{TemplateBinding Border.BorderBrush}"
|
|
|
- Background="{TemplateBinding Panel.Background}"
|
|
|
+ <Border
|
|
|
Name="Bd"
|
|
|
+ Margin="0,0,12,24"
|
|
|
+ Padding="{TemplateBinding Control.Padding}"
|
|
|
+ Background="{TemplateBinding Panel.Background}"
|
|
|
+ BorderBrush="{TemplateBinding Border.BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding Border.BorderThickness}"
|
|
|
SnapsToDevicePixels="True">
|
|
|
<Grid>
|
|
|
- <ContentPresenter Content="{TemplateBinding ContentControl.Content}"
|
|
|
- ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
|
|
|
- ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
|
|
|
- HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
|
|
|
- VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
|
|
|
- SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
|
|
|
- <Grid x:Name="SelectedIcon" Visibility="Collapsed" HorizontalAlignment="Right" VerticalAlignment="Top">
|
|
|
- <Image Source="pack://application:,,,/Resources/Image/Home/btn_multiselect.png" Width="20" Height="20" RenderOptions.BitmapScalingMode="HighQuality"/>
|
|
|
- </Grid>
|
|
|
- <Grid x:Name="UnSelectedIcon" Visibility="Collapsed" HorizontalAlignment="Right" VerticalAlignment="Top">
|
|
|
- <Rectangle x:Name="UnSelectedrect" Width="20" Height="20" Fill="#FFE2E3E6" HorizontalAlignment="Right" VerticalAlignment="Top"/>
|
|
|
+ <ContentPresenter
|
|
|
+ HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
|
|
|
+ VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}"
|
|
|
+ Content="{TemplateBinding ContentControl.Content}"
|
|
|
+ ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}"
|
|
|
+ ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
|
|
|
+ SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
|
|
|
+ <Grid
|
|
|
+ x:Name="SelectedIcon"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Top"
|
|
|
+ Visibility="Collapsed" />
|
|
|
+ <Grid
|
|
|
+ x:Name="UnSelectedIcon"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Top"
|
|
|
+ Visibility="Collapsed">
|
|
|
+ <Rectangle
|
|
|
+ x:Name="UnSelectedrect"
|
|
|
+ Width="20"
|
|
|
+ Height="20"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Top"
|
|
|
+ Fill="#FFE2E3E6" />
|
|
|
</Grid>
|
|
|
</Grid>
|
|
|
|
|
@@ -215,32 +266,32 @@
|
|
|
<Condition Property="Selector.IsSelected" Value="False" />
|
|
|
</MultiTrigger.Conditions>
|
|
|
<!--<Setter Property="Panel.Background" TargetName="Bd" Value="#1A000000" />-->
|
|
|
- <Setter Property="Border.BorderBrush" TargetName="Bd" Value="#FF477EDE" />
|
|
|
- <Setter Property="Grid.Visibility" TargetName="UnSelectedIcon" Value="Visible"/>
|
|
|
- <Setter Property="Grid.Visibility" TargetName="SelectedIcon" Value="Collapsed"/>
|
|
|
+ <Setter TargetName="Bd" Property="Border.BorderBrush" Value="#FF477EDE" />
|
|
|
+ <Setter TargetName="UnSelectedIcon" Property="Grid.Visibility" Value="Visible" />
|
|
|
+ <Setter TargetName="SelectedIcon" Property="Grid.Visibility" Value="Collapsed" />
|
|
|
</MultiTrigger>
|
|
|
<MultiTrigger>
|
|
|
<MultiTrigger.Conditions>
|
|
|
<Condition Property="Selector.IsSelectionActive" Value="False" />
|
|
|
<Condition Property="Selector.IsSelected" Value="True" />
|
|
|
</MultiTrigger.Conditions>
|
|
|
- <Setter Property="Panel.Background" TargetName="Bd" Value="#1A477EDE" />
|
|
|
- <Setter Property="Border.BorderBrush" TargetName="Bd" Value="#1A477EDE" />
|
|
|
- <Setter Property="Grid.Visibility" TargetName="SelectedIcon" Value="Visible"/>
|
|
|
- <Setter Property="Grid.Visibility" TargetName="UnSelectedIcon" Value="Collapsed"/>
|
|
|
+ <Setter TargetName="Bd" Property="Panel.Background" Value="#1A477EDE" />
|
|
|
+ <Setter TargetName="Bd" Property="Border.BorderBrush" Value="#1A477EDE" />
|
|
|
+ <Setter TargetName="SelectedIcon" Property="Grid.Visibility" Value="Visible" />
|
|
|
+ <Setter TargetName="UnSelectedIcon" Property="Grid.Visibility" Value="Collapsed" />
|
|
|
</MultiTrigger>
|
|
|
<MultiTrigger>
|
|
|
<MultiTrigger.Conditions>
|
|
|
<Condition Property="Selector.IsSelectionActive" Value="True" />
|
|
|
<Condition Property="Selector.IsSelected" Value="True" />
|
|
|
</MultiTrigger.Conditions>
|
|
|
- <Setter Property="Panel.Background" TargetName="Bd" Value="#1A477EDE" />
|
|
|
- <Setter Property="Border.BorderBrush" TargetName="Bd" Value="#1A477EDE" />
|
|
|
- <Setter Property="Grid.Visibility" TargetName="SelectedIcon" Value="Visible"/>
|
|
|
- <Setter Property="Grid.Visibility" TargetName="UnSelectedIcon" Value="Collapsed"/>
|
|
|
+ <Setter TargetName="Bd" Property="Panel.Background" Value="#1A477EDE" />
|
|
|
+ <Setter TargetName="Bd" Property="Border.BorderBrush" Value="#1A477EDE" />
|
|
|
+ <Setter TargetName="SelectedIcon" Property="Grid.Visibility" Value="Visible" />
|
|
|
+ <Setter TargetName="UnSelectedIcon" Property="Grid.Visibility" Value="Collapsed" />
|
|
|
</MultiTrigger>
|
|
|
- <Trigger Property="UIElement.IsEnabled" Value="False">
|
|
|
- <Setter Property="TextElement.Foreground" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
|
+ <Trigger Property="UIElement.IsEnabled" Value="False">
|
|
|
+ <Setter TargetName="Bd" Property="TextElement.Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
|
</Trigger>
|
|
|
|
|
|
</ControlTemplate.Triggers>
|
|
@@ -253,9 +304,15 @@
|
|
|
<Setter Property="Template">
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate TargetType="{x:Type ListView}">
|
|
|
- <Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="1" SnapsToDevicePixels="true">
|
|
|
- <ScrollViewer Focusable="false" Padding="{TemplateBinding Padding}">
|
|
|
- <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
|
|
+ <Border
|
|
|
+ x:Name="Bd"
|
|
|
+ Padding="1"
|
|
|
+ Background="{TemplateBinding Background}"
|
|
|
+ BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
+ SnapsToDevicePixels="true">
|
|
|
+ <ScrollViewer Padding="{TemplateBinding Padding}" Focusable="false">
|
|
|
+ <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
|
</ScrollViewer>
|
|
|
</Border>
|
|
|
</ControlTemplate>
|