|
@@ -0,0 +1,268 @@
|
|
|
+<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}">
|
|
|
+ <Grid>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
+ <RowDefinition/>
|
|
|
+
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition MinWidth="0" Width ="4.5*"/>
|
|
|
+ <ColumnDefinition Width="3*" />
|
|
|
+ <ColumnDefinition Width="2*" />
|
|
|
+ <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"/>
|
|
|
+ </Grid>
|
|
|
+ <ItemsPresenter Grid.Row="1" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
|
|
+ </Grid>
|
|
|
+ </ScrollViewer>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+
|
|
|
+ <Style x:Key="FilesListViewItemStyle" TargetType="{x:Type ListViewItem}">
|
|
|
+ <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}" />
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ <Setter Property="Control.VerticalContentAlignment">
|
|
|
+ <Setter.Value>
|
|
|
+ <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="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" />
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ <Setter Property="Control.Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="{x:Type ListViewItem}">
|
|
|
+ <Border BorderThickness="{TemplateBinding Border.BorderThickness}"
|
|
|
+ Padding="{TemplateBinding Control.Padding}"
|
|
|
+ BorderBrush="{TemplateBinding Border.BorderBrush}"
|
|
|
+ Background="{TemplateBinding Panel.Background}"
|
|
|
+ Name="Bd"
|
|
|
+ SnapsToDevicePixels="True">
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <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>
|
|
|
+ <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}" />
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <MultiTrigger>
|
|
|
+ <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" />
|
|
|
+ </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"/>
|
|
|
+ </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"/>
|
|
|
+ </MultiTrigger>
|
|
|
+ <Trigger Property="UIElement.IsEnabled" Value="False">
|
|
|
+ <Setter Property="TextElement.Foreground" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+
|
|
|
+
|
|
|
+ <Style x:Key="FilesGridItemStyle" TargetType="{x:Type ListViewItem}">
|
|
|
+ <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}" />
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ <Setter Property="Control.VerticalContentAlignment">
|
|
|
+ <Setter.Value>
|
|
|
+ <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="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" />
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ <Setter Property="Control.Template">
|
|
|
+
|
|
|
+ <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}"
|
|
|
+ Name="Bd"
|
|
|
+ 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"/>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <MultiTrigger>
|
|
|
+ <MultiTrigger.Conditions>
|
|
|
+ <Condition Property="UIElement.IsMouseOver" Value="True" />
|
|
|
+ <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"/>
|
|
|
+ </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"/>
|
|
|
+ </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"/>
|
|
|
+ </MultiTrigger>
|
|
|
+ <Trigger Property="UIElement.IsEnabled" Value="False">
|
|
|
+ <Setter Property="TextElement.Foreground" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
|
+ </Trigger>
|
|
|
+
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+
|
|
|
+ <Style x:Key="FilesGridViewStyle" 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}">
|
|
|
+ <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
|
|
+ </ScrollViewer>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+</ResourceDictionary>
|