|
@@ -1,16 +1,19 @@
|
|
-<UserControl x:Class="PDF_Office.Views.HomePanel.RecentFiles.RecentFilesContent"
|
|
|
|
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
- xmlns:local="clr-namespace:PDF_Office.Views.HomePanel.RecentFiles"
|
|
|
|
- xmlns:customControl ="clr-namespace:PDF_Office.CustomControl"
|
|
|
|
- xmlns:DataConvert ="clr-namespace:PDF_Office.DataConvert"
|
|
|
|
- xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
|
- xmlns:prism ="http://prismlibrary.com/"
|
|
|
|
- prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
|
- mc:Ignorable="d" Loaded="UserControl_Loaded"
|
|
|
|
- d:DesignHeight="450" d:DesignWidth="800">
|
|
|
|
|
|
+<UserControl
|
|
|
|
+ x:Class="PDF_Office.Views.HomePanel.RecentFiles.RecentFilesContent"
|
|
|
|
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
+ xmlns:DataConvert="clr-namespace:PDF_Office.DataConvert"
|
|
|
|
+ xmlns:customControl="clr-namespace:PDF_Office.CustomControl"
|
|
|
|
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
+ xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
|
+ xmlns:local="clr-namespace:PDF_Office.Views.HomePanel.RecentFiles"
|
|
|
|
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
+ xmlns:prism="http://prismlibrary.com/"
|
|
|
|
+ d:DesignHeight="450"
|
|
|
|
+ d:DesignWidth="800"
|
|
|
|
+ prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
|
+ Loaded="UserControl_Loaded"
|
|
|
|
+ mc:Ignorable="d">
|
|
<UserControl.Resources>
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
@@ -24,9 +27,10 @@
|
|
<DataConvert:InvertBoolConvert x:Key="InvertBoolConvert" />
|
|
<DataConvert:InvertBoolConvert x:Key="InvertBoolConvert" />
|
|
|
|
|
|
<DataTemplate x:Key="listviewItem">
|
|
<DataTemplate x:Key="listviewItem">
|
|
- <local:DocItemListViewControl HorizontalAlignment="Stretch"
|
|
|
|
- OpenFileItemHandler ="DocItemListViewControl_OpenFileItemHandler"
|
|
|
|
- DeleteItemHandler="DocItemListViewControl_DeleteItemHandler" />
|
|
|
|
|
|
+ <local:DocItemListViewControl
|
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
|
+ DeleteItemHandler="DocItemListViewControl_DeleteItemHandler"
|
|
|
|
+ OpenFileItemHandler="DocItemListViewControl_OpenFileItemHandler" />
|
|
</DataTemplate>
|
|
</DataTemplate>
|
|
|
|
|
|
<DataTemplate x:Key="gridviewItem">
|
|
<DataTemplate x:Key="gridviewItem">
|
|
@@ -41,18 +45,23 @@
|
|
<WrapPanel />
|
|
<WrapPanel />
|
|
</ItemsPanelTemplate>
|
|
</ItemsPanelTemplate>
|
|
|
|
|
|
- <ContextMenu x:Key="FlyoutMenu" FontSize="14"
|
|
|
|
- Opened="ContextMenu_Opened">
|
|
|
|
|
|
+ <ContextMenu
|
|
|
|
+ x:Key="FlyoutMenu"
|
|
|
|
+ FontSize="14"
|
|
|
|
+ Opened="ContextMenu_Opened">
|
|
<ContextMenu.ItemContainerStyle>
|
|
<ContextMenu.ItemContainerStyle>
|
|
<Style TargetType="MenuItem">
|
|
<Style TargetType="MenuItem">
|
|
<Setter Property="Padding" Value="0,7,0,7" />
|
|
<Setter Property="Padding" Value="0,7,0,7" />
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
</Style>
|
|
</Style>
|
|
</ContextMenu.ItemContainerStyle>
|
|
</ContextMenu.ItemContainerStyle>
|
|
- <MenuItem Name="FilePathMenuItem" Header="打开文件路径" IsEnabled="True" Click="FilePathMenuItem_Click">
|
|
|
|
|
|
+ <MenuItem
|
|
|
|
+ Name="FilePathMenuItem"
|
|
|
|
+ Click="FilePathMenuItem_Click"
|
|
|
|
+ Header="打开文件路径"
|
|
|
|
+ IsEnabled="True">
|
|
<MenuItem.Icon>
|
|
<MenuItem.Icon>
|
|
- <Path Fill="Black"
|
|
|
|
- Data="M5.24031 1.5H0.5V14.5H15.5V4H7.24031L5.24031 1.5ZM1.5 13.5V2.5H4.75969L6.75969 5H14.5V13.5H1.5ZM4 7.5H12V6.5H4V7.5Z">
|
|
|
|
|
|
+ <Path Data="M5.24031 1.5H0.5V14.5H15.5V4H7.24031L5.24031 1.5ZM1.5 13.5V2.5H4.75969L6.75969 5H14.5V13.5H1.5ZM4 7.5H12V6.5H4V7.5Z" Fill="Black">
|
|
<Path.RenderTransform>
|
|
<Path.RenderTransform>
|
|
<TranslateTransform X="3.0000" Y="0" />
|
|
<TranslateTransform X="3.0000" Y="0" />
|
|
</Path.RenderTransform>
|
|
</Path.RenderTransform>
|
|
@@ -60,9 +69,13 @@
|
|
</MenuItem.Icon>
|
|
</MenuItem.Icon>
|
|
</MenuItem>
|
|
</MenuItem>
|
|
|
|
|
|
- <MenuItem Name="DeleteMenuItem" Header="从最近列表删除" IsEnabled="True" Click="DeleteMenuItem_Click">
|
|
|
|
|
|
+ <MenuItem
|
|
|
|
+ Name="DeleteMenuItem"
|
|
|
|
+ Click="DeleteMenuItem_Click"
|
|
|
|
+ Header="从最近列表删除"
|
|
|
|
+ IsEnabled="True">
|
|
<MenuItem.Icon>
|
|
<MenuItem.Icon>
|
|
- <Path Fill="Black" Data="M9 0H3V2H0V3H1V14H11V3H12V2H9V0ZM2 13V3H3H4H8H9H10V13H2ZM8 2V1H4V2H8ZM4 12V4H3V12H4ZM6.5 4V12H5.5V4H6.5ZM9 12V4H8V12H9Z">
|
|
|
|
|
|
+ <Path Data="M9 0H3V2H0V3H1V14H11V3H12V2H9V0ZM2 13V3H3H4H8H9H10V13H2ZM8 2V1H4V2H8ZM4 12V4H3V12H4ZM6.5 4V12H5.5V4H6.5ZM9 12V4H8V12H9Z" Fill="Black">
|
|
<Path.RenderTransform>
|
|
<Path.RenderTransform>
|
|
<TranslateTransform X="5.0000" Y="0" />
|
|
<TranslateTransform X="5.0000" Y="0" />
|
|
</Path.RenderTransform>
|
|
</Path.RenderTransform>
|
|
@@ -71,24 +84,25 @@
|
|
</MenuItem>
|
|
</MenuItem>
|
|
</ContextMenu>
|
|
</ContextMenu>
|
|
|
|
|
|
- <Style x:Key="SubFilesListViewItemStyle" BasedOn="{StaticResource FilesListViewItemStyle}" TargetType="{x:Type ListViewItem}">
|
|
|
|
|
|
+ <Style
|
|
|
|
+ x:Key="SubFilesListViewItemStyle"
|
|
|
|
+ BasedOn="{StaticResource FilesListViewItemStyle}"
|
|
|
|
+ TargetType="{x:Type ListViewItem}">
|
|
<Setter Property="ContextMenu" Value="{StaticResource FlyoutMenu}" />
|
|
<Setter Property="ContextMenu" Value="{StaticResource FlyoutMenu}" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="Margin" Value="0,0,0,0" />
|
|
<Setter Property="Margin" Value="0,0,0,0" />
|
|
- <EventSetter Event="PreviewMouseRightButtonDown"
|
|
|
|
- Handler="ListViewItem_PreviewMouseRightButtonDown" />
|
|
|
|
- <EventSetter Event="PreviewMouseDoubleClick"
|
|
|
|
- Handler="RecentFilesList_PreviewMouseDoubleClick">
|
|
|
|
- </EventSetter>
|
|
|
|
|
|
+ <EventSetter Event="PreviewMouseRightButtonDown" Handler="ListViewItem_PreviewMouseRightButtonDown" />
|
|
|
|
+ <EventSetter Event="PreviewMouseDoubleClick" Handler="RecentFilesList_PreviewMouseDoubleClick" />
|
|
</Style>
|
|
</Style>
|
|
|
|
|
|
- <Style x:Key="HomeGridViewItemStyle" BasedOn="{StaticResource FilesGridItemStyle}" TargetType="{x:Type ListViewItem}">
|
|
|
|
|
|
+ <Style
|
|
|
|
+ x:Key="HomeGridViewItemStyle"
|
|
|
|
+ BasedOn="{StaticResource FilesGridItemStyle}"
|
|
|
|
+ TargetType="{x:Type ListViewItem}">
|
|
<Setter Property="ContextMenu" Value="{StaticResource FlyoutMenu}" />
|
|
<Setter Property="ContextMenu" Value="{StaticResource FlyoutMenu}" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
- <EventSetter Event="PreviewMouseRightButtonDown"
|
|
|
|
- Handler="ListViewItem_PreviewMouseRightButtonDown" />
|
|
|
|
- <EventSetter Event="PreviewMouseDoubleClick"
|
|
|
|
- Handler="RecentFilesList_PreviewMouseDoubleClick" />
|
|
|
|
|
|
+ <EventSetter Event="PreviewMouseRightButtonDown" Handler="ListViewItem_PreviewMouseRightButtonDown" />
|
|
|
|
+ <EventSetter Event="PreviewMouseDoubleClick" Handler="RecentFilesList_PreviewMouseDoubleClick" />
|
|
</Style>
|
|
</Style>
|
|
</ResourceDictionary>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
</UserControl.Resources>
|
|
@@ -101,31 +115,74 @@
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
<Grid x:Name="GridRecentFilesTile" Margin="32,38,0,13">
|
|
<Grid x:Name="GridRecentFilesTile" Margin="32,38,0,13">
|
|
- <TextBlock x:Name="TxbRecentlyTile" Text="Recent" HorizontalAlignment="Left" FontWeight="Semibold" FontSize="20" Padding="0,6,0,0" Margin="0,0,0,0" />
|
|
|
|
- <StackPanel x:Name="PnlRightBtns" Grid.Column="0" Grid.ColumnSpan="2" Margin="0,0,0,0" Orientation="Horizontal" HorizontalAlignment="Right">
|
|
|
|
- <Border Background="#EEF2F3" Height="30" CornerRadius="4" Padding="1,0,1,0">
|
|
|
|
|
|
+ <TextBlock
|
|
|
|
+ x:Name="TxbRecentlyTile"
|
|
|
|
+ Margin="0,0,0,0"
|
|
|
|
+ Padding="0,6,0,0"
|
|
|
|
+ HorizontalAlignment="Left"
|
|
|
|
+ FontSize="20"
|
|
|
|
+ FontWeight="Semibold"
|
|
|
|
+ Text="Recent" />
|
|
|
|
+ <StackPanel
|
|
|
|
+ x:Name="PnlRightBtns"
|
|
|
|
+ Grid.Column="0"
|
|
|
|
+ Grid.ColumnSpan="2"
|
|
|
|
+ Margin="0,0,0,0"
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
+ Orientation="Horizontal">
|
|
|
|
+ <Border
|
|
|
|
+ Height="30"
|
|
|
|
+ Padding="1,0,1,0"
|
|
|
|
+ Background="#EEF2F3"
|
|
|
|
+ CornerRadius="4">
|
|
<StackPanel Orientation="Horizontal">
|
|
<StackPanel Orientation="Horizontal">
|
|
- <RadioButton x:Name="BtnListMode" GroupName="Mode" Tag="ListMode" Width="40" Height="28" Foreground="#333333"
|
|
|
|
- HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
|
|
|
|
- IsChecked="{Binding IsListMode,Mode=OneTime}"
|
|
|
|
- Style="{StaticResource ListModeRadioBtnStyle}">
|
|
|
|
- <Grid Margin="-5,0,0,0" HorizontalAlignment="Center">
|
|
|
|
- <Path Data="M3 5L17 5" Stroke="{Binding ElementName=BtnListMode,Path=Foreground}" StrokeThickness="1.5" StrokeStartLineCap="Round" />
|
|
|
|
- <Path Data="M3 10H17" Stroke="{Binding ElementName=BtnListMode,Path=Foreground}" StrokeThickness="1.5" StrokeStartLineCap="Round" />
|
|
|
|
- <Path Data="M3 15H17" Stroke="{Binding ElementName=BtnListMode,Path=Foreground}" StrokeThickness="1.5" StrokeStartLineCap="Round" />
|
|
|
|
|
|
+ <RadioButton
|
|
|
|
+ x:Name="BtnListMode"
|
|
|
|
+ Width="40"
|
|
|
|
+ Height="28"
|
|
|
|
+ HorizontalContentAlignment="Center"
|
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
|
+ Foreground="#333333"
|
|
|
|
+ GroupName="Mode"
|
|
|
|
+ IsChecked="{Binding IsListMode, Mode=OneTime}"
|
|
|
|
+ Style="{StaticResource ListModeRadioBtnStyle}"
|
|
|
|
+ Tag="ListMode">
|
|
|
|
+ <Grid Margin="-5,0,0,0" HorizontalAlignment="Center">
|
|
|
|
+ <Path
|
|
|
|
+ Data="M3 5L17 5"
|
|
|
|
+ Stroke="{Binding ElementName=BtnListMode, Path=Foreground}"
|
|
|
|
+ StrokeStartLineCap="Round"
|
|
|
|
+ StrokeThickness="1.5" />
|
|
|
|
+ <Path
|
|
|
|
+ Data="M3 10H17"
|
|
|
|
+ Stroke="{Binding ElementName=BtnListMode, Path=Foreground}"
|
|
|
|
+ StrokeStartLineCap="Round"
|
|
|
|
+ StrokeThickness="1.5" />
|
|
|
|
+ <Path
|
|
|
|
+ Data="M3 15H17"
|
|
|
|
+ Stroke="{Binding ElementName=BtnListMode, Path=Foreground}"
|
|
|
|
+ StrokeStartLineCap="Round"
|
|
|
|
+ StrokeThickness="1.5" />
|
|
</Grid>
|
|
</Grid>
|
|
<i:Interaction.Triggers>
|
|
<i:Interaction.Triggers>
|
|
<i:EventTrigger EventName="Checked">
|
|
<i:EventTrigger EventName="Checked">
|
|
- <i:InvokeCommandAction Command="{Binding ListModeCheckedCommand}" CommandParameter="{Binding ElementName=BtnListMode,Path =Tag}" />
|
|
|
|
|
|
+ <i:InvokeCommandAction Command="{Binding ListModeCheckedCommand}" CommandParameter="{Binding ElementName=BtnListMode, Path=Tag}" />
|
|
</i:EventTrigger>
|
|
</i:EventTrigger>
|
|
</i:Interaction.Triggers>
|
|
</i:Interaction.Triggers>
|
|
</RadioButton>
|
|
</RadioButton>
|
|
|
|
|
|
- <RadioButton x:Name="BtnGridMode" GroupName="Mode" Tag="GridMode" Width="40" Height="28" Foreground="#6B869C"
|
|
|
|
- HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
|
|
|
|
- IsChecked="{Binding IsListMode,Converter={StaticResource InvertBoolConvert},Mode=OneTime}"
|
|
|
|
- Style="{StaticResource ListModeRadioBtnStyle}">
|
|
|
|
- <Grid Margin="-5,0,0,0" HorizontalAlignment="Center">
|
|
|
|
|
|
+ <RadioButton
|
|
|
|
+ x:Name="BtnGridMode"
|
|
|
|
+ Width="40"
|
|
|
|
+ Height="28"
|
|
|
|
+ HorizontalContentAlignment="Center"
|
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
|
+ Foreground="#6B869C"
|
|
|
|
+ GroupName="Mode"
|
|
|
|
+ IsChecked="{Binding IsListMode, Converter={StaticResource InvertBoolConvert}, Mode=OneTime}"
|
|
|
|
+ Style="{StaticResource ListModeRadioBtnStyle}"
|
|
|
|
+ Tag="GridMode">
|
|
|
|
+ <Grid Margin="-5,0,0,0" HorizontalAlignment="Center">
|
|
<Grid.RowDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
@@ -134,97 +191,197 @@
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
</Grid.ColumnDefinitions>
|
|
- <Rectangle Grid.Row="0" Grid.Column="0" Margin="1" Width="5" Height="5" StrokeThickness="1.5" Stroke="{Binding ElementName=BtnGridMode,Path=Foreground}" StrokeDashCap="Round" />
|
|
|
|
- <Rectangle Grid.Row="0" Grid.Column="1" Margin="1" Width="5" Height="5" StrokeThickness="1.5" Stroke="{Binding ElementName=BtnGridMode,Path=Foreground}" StrokeDashCap="Round" />
|
|
|
|
- <Rectangle Grid.Row="1" Grid.Column="0" Margin="1" Width="5" Height="5" StrokeThickness="1.5" Stroke="{Binding ElementName=BtnGridMode,Path=Foreground}" StrokeDashCap="Round" />
|
|
|
|
- <Rectangle Grid.Row="1" Grid.Column="1" Margin="1" Width="5" Height="5" StrokeThickness="1.5" Stroke="{Binding ElementName=BtnGridMode,Path=Foreground}" StrokeDashCap="Round" />
|
|
|
|
|
|
+ <Rectangle
|
|
|
|
+ Grid.Row="0"
|
|
|
|
+ Grid.Column="0"
|
|
|
|
+ Width="5"
|
|
|
|
+ Height="5"
|
|
|
|
+ Margin="1"
|
|
|
|
+ Stroke="{Binding ElementName=BtnGridMode, Path=Foreground}"
|
|
|
|
+ StrokeDashCap="Round"
|
|
|
|
+ StrokeThickness="1.5" />
|
|
|
|
+ <Rectangle
|
|
|
|
+ Grid.Row="0"
|
|
|
|
+ Grid.Column="1"
|
|
|
|
+ Width="5"
|
|
|
|
+ Height="5"
|
|
|
|
+ Margin="1"
|
|
|
|
+ Stroke="{Binding ElementName=BtnGridMode, Path=Foreground}"
|
|
|
|
+ StrokeDashCap="Round"
|
|
|
|
+ StrokeThickness="1.5" />
|
|
|
|
+ <Rectangle
|
|
|
|
+ Grid.Row="1"
|
|
|
|
+ Grid.Column="0"
|
|
|
|
+ Width="5"
|
|
|
|
+ Height="5"
|
|
|
|
+ Margin="1"
|
|
|
|
+ Stroke="{Binding ElementName=BtnGridMode, Path=Foreground}"
|
|
|
|
+ StrokeDashCap="Round"
|
|
|
|
+ StrokeThickness="1.5" />
|
|
|
|
+ <Rectangle
|
|
|
|
+ Grid.Row="1"
|
|
|
|
+ Grid.Column="1"
|
|
|
|
+ Width="5"
|
|
|
|
+ Height="5"
|
|
|
|
+ Margin="1"
|
|
|
|
+ Stroke="{Binding ElementName=BtnGridMode, Path=Foreground}"
|
|
|
|
+ StrokeDashCap="Round"
|
|
|
|
+ StrokeThickness="1.5" />
|
|
</Grid>
|
|
</Grid>
|
|
<i:Interaction.Triggers>
|
|
<i:Interaction.Triggers>
|
|
<i:EventTrigger EventName="Checked">
|
|
<i:EventTrigger EventName="Checked">
|
|
- <i:InvokeCommandAction Command="{Binding ListModeCheckedCommand}" CommandParameter="{Binding ElementName=BtnGridMode,Path =Tag}" />
|
|
|
|
|
|
+ <i:InvokeCommandAction Command="{Binding ListModeCheckedCommand}" CommandParameter="{Binding ElementName=BtnGridMode, Path=Tag}" />
|
|
</i:EventTrigger>
|
|
</i:EventTrigger>
|
|
</i:Interaction.Triggers>
|
|
</i:Interaction.Triggers>
|
|
</RadioButton>
|
|
</RadioButton>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Border>
|
|
</Border>
|
|
|
|
|
|
- <Separator Margin="1 0 1 0" Width="1" Height="16" BorderBrush="#1A000000" BorderThickness="1" />
|
|
|
|
|
|
+ <Separator
|
|
|
|
+ Width="1"
|
|
|
|
+ Height="16"
|
|
|
|
+ Margin="1,0,1,0"
|
|
|
|
+ BorderBrush="#1A000000"
|
|
|
|
+ BorderThickness="1" />
|
|
|
|
|
|
- <Button x:Name="BtnDelete" Margin="0" Padding="0,0,0,0" MaxHeight="40" Width="28" Height="28" Background="Transparent" BorderThickness="0"
|
|
|
|
- IsEnabled="{Binding IsEmpty,Converter={StaticResource InvertBoolConvert},Mode=OneWay}"
|
|
|
|
- Command="{Binding RemoveFilesFromContainerCommand}" CommandParameter="{Binding ElementName=RecentFilesList,Path=SelectedItems}"
|
|
|
|
- Style="{StaticResource OnlyContentBtn}" Foreground="#6B6F7D">
|
|
|
|
|
|
+ <Button
|
|
|
|
+ x:Name="BtnDelete"
|
|
|
|
+ Width="28"
|
|
|
|
+ Height="28"
|
|
|
|
+ MaxHeight="40"
|
|
|
|
+ Margin="0"
|
|
|
|
+ Padding="0,0,0,0"
|
|
|
|
+ Background="Transparent"
|
|
|
|
+ BorderThickness="0"
|
|
|
|
+ Command="{Binding RemoveFilesFromContainerCommand}"
|
|
|
|
+ CommandParameter="{Binding ElementName=RecentFilesList, Path=SelectedItems}"
|
|
|
|
+ Foreground="#6B6F7D"
|
|
|
|
+ IsEnabled="{Binding IsEmpty, Converter={StaticResource InvertBoolConvert}, Mode=OneWay}"
|
|
|
|
+ Style="{StaticResource OnlyContentBtn}">
|
|
<Grid Width="20" Height="20">
|
|
<Grid Width="20" Height="20">
|
|
- <Path Data="M8 2H12" Stroke="{Binding ElementName=BtnDelete,Path=Foreground}" StrokeThickness="2" StrokeDashCap="Round" />
|
|
|
|
- <Path Data="M5 5V17H15V5" Stroke="{Binding ElementName=BtnDelete,Path=Foreground}" StrokeThickness="2" StrokeDashCap="Round" />
|
|
|
|
- <Path Data="M17 5H3" Stroke="{Binding ElementName=BtnDelete,Path=Foreground}" StrokeThickness="2" StrokeDashCap="Round" />
|
|
|
|
- <Path Data="M10 9V13" Stroke="{Binding ElementName=BtnDelete,Path=Foreground}" StrokeThickness="2" StrokeDashCap="Round" />
|
|
|
|
|
|
+ <Path
|
|
|
|
+ Data="M8 2H12"
|
|
|
|
+ Stroke="{Binding ElementName=BtnDelete, Path=Foreground}"
|
|
|
|
+ StrokeDashCap="Round"
|
|
|
|
+ StrokeThickness="2" />
|
|
|
|
+ <Path
|
|
|
|
+ Data="M5 5V17H15V5"
|
|
|
|
+ Stroke="{Binding ElementName=BtnDelete, Path=Foreground}"
|
|
|
|
+ StrokeDashCap="Round"
|
|
|
|
+ StrokeThickness="2" />
|
|
|
|
+ <Path
|
|
|
|
+ Data="M17 5H3"
|
|
|
|
+ Stroke="{Binding ElementName=BtnDelete, Path=Foreground}"
|
|
|
|
+ StrokeDashCap="Round"
|
|
|
|
+ StrokeThickness="2" />
|
|
|
|
+ <Path
|
|
|
|
+ Data="M10 9V13"
|
|
|
|
+ Stroke="{Binding ElementName=BtnDelete, Path=Foreground}"
|
|
|
|
+ StrokeDashCap="Round"
|
|
|
|
+ StrokeThickness="2" />
|
|
</Grid>
|
|
</Grid>
|
|
</Button>
|
|
</Button>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
|
|
|
|
- <Grid Grid.Row="2" Visibility="{Binding IsEmpty,Converter={StaticResource InvertBoolToVisibleConvert}}">
|
|
|
|
|
|
+ <Grid Grid.Row="2" Visibility="{Binding IsEmpty, Converter={StaticResource InvertBoolToVisibleConvert}}">
|
|
<Grid.ColumnDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="799*" />
|
|
<ColumnDefinition Width="799*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
</Grid.ColumnDefinitions>
|
|
- <Border Visibility="{Binding IsListMode,Converter={StaticResource BoolToVisible}}">
|
|
|
|
- <ListView x:Name="RecentFilesList"
|
|
|
|
- ItemsSource="{Binding RecentFilesGroup}"
|
|
|
|
- Margin="32,0,0,0"
|
|
|
|
- VirtualizingPanel.IsVirtualizing="True"
|
|
|
|
- VirtualizingPanel.CacheLengthUnit="Page"
|
|
|
|
- VirtualizingPanel.CacheLength="1"
|
|
|
|
- VirtualizingPanel.ScrollUnit="Pixel"
|
|
|
|
- ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
|
|
|
- ScrollViewer.VerticalScrollBarVisibility="Auto"
|
|
|
|
- Background="Transparent" BorderThickness="0"
|
|
|
|
- Padding="0,0,0,0" MinHeight="216" MinWidth="380"
|
|
|
|
- SelectionMode="Multiple"
|
|
|
|
- ItemContainerStyle="{StaticResource SubFilesListViewItemStyle}"
|
|
|
|
- Style="{StaticResource FilesListViewStyle}"
|
|
|
|
- ItemTemplate="{StaticResource listviewItem}"
|
|
|
|
- ItemsPanel="{StaticResource listPanel}" Grid.ColumnSpan="2">
|
|
|
|
- </ListView>
|
|
|
|
|
|
+ <Border Visibility="{Binding IsListMode, Converter={StaticResource BoolToVisible}}">
|
|
|
|
+ <ListView
|
|
|
|
+ x:Name="RecentFilesList"
|
|
|
|
+ Grid.ColumnSpan="2"
|
|
|
|
+ MinWidth="380"
|
|
|
|
+ MinHeight="216"
|
|
|
|
+ Margin="32,0,0,0"
|
|
|
|
+ Padding="0,0,0,0"
|
|
|
|
+ Background="Transparent"
|
|
|
|
+ BorderThickness="0"
|
|
|
|
+ ItemContainerStyle="{StaticResource SubFilesListViewItemStyle}"
|
|
|
|
+ ItemTemplate="{StaticResource listviewItem}"
|
|
|
|
+ ItemsPanel="{StaticResource listPanel}"
|
|
|
|
+ ItemsSource="{Binding RecentFilesGroup}"
|
|
|
|
+ ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
|
|
|
+ ScrollViewer.VerticalScrollBarVisibility="Auto"
|
|
|
|
+ SelectionMode="Extended"
|
|
|
|
+ Style="{StaticResource FilesListViewStyle}"
|
|
|
|
+ VirtualizingPanel.CacheLength="1"
|
|
|
|
+ VirtualizingPanel.CacheLengthUnit="Page"
|
|
|
|
+ VirtualizingPanel.IsVirtualizing="True"
|
|
|
|
+ VirtualizingPanel.ScrollUnit="Pixel" />
|
|
</Border>
|
|
</Border>
|
|
|
|
|
|
- <ListView x:Name="GridRecentFilesList"
|
|
|
|
- Visibility="{Binding IsListMode,Converter={StaticResource InvertBoolToVisibleConvert}}"
|
|
|
|
- ItemsSource="{Binding RecentFilesGroup}"
|
|
|
|
- Margin="32,0,0,0"
|
|
|
|
- VirtualizingPanel.IsVirtualizing="True"
|
|
|
|
- VirtualizingPanel.CacheLengthUnit="Page"
|
|
|
|
- VirtualizingPanel.CacheLength="1"
|
|
|
|
- VirtualizingPanel.ScrollUnit="Pixel"
|
|
|
|
- ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
|
|
|
- ScrollViewer.VerticalScrollBarVisibility="Auto"
|
|
|
|
- Background="Transparent" BorderThickness="0"
|
|
|
|
- Padding="0,0,0,0" MinHeight="216" MinWidth="380"
|
|
|
|
- SelectionMode="Multiple"
|
|
|
|
- ItemContainerStyle="{StaticResource HomeGridViewItemStyle}"
|
|
|
|
- Style="{StaticResource FilesGridViewStyle}"
|
|
|
|
- ItemTemplate="{StaticResource gridviewItem}"
|
|
|
|
- ItemsPanel="{StaticResource gridPanel}" Grid.ColumnSpan="2">
|
|
|
|
- </ListView>
|
|
|
|
|
|
+ <ListView
|
|
|
|
+ x:Name="GridRecentFilesList"
|
|
|
|
+ Grid.ColumnSpan="2"
|
|
|
|
+ MinWidth="380"
|
|
|
|
+ MinHeight="216"
|
|
|
|
+ Margin="32,0,0,0"
|
|
|
|
+ Padding="0,0,0,0"
|
|
|
|
+ Background="Transparent"
|
|
|
|
+ BorderThickness="0"
|
|
|
|
+ ItemContainerStyle="{StaticResource HomeGridViewItemStyle}"
|
|
|
|
+ ItemTemplate="{StaticResource gridviewItem}"
|
|
|
|
+ ItemsPanel="{StaticResource gridPanel}"
|
|
|
|
+ ItemsSource="{Binding RecentFilesGroup}"
|
|
|
|
+ ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
|
|
|
+ ScrollViewer.VerticalScrollBarVisibility="Auto"
|
|
|
|
+ SelectionMode="Extended"
|
|
|
|
+ Style="{StaticResource FilesGridViewStyle}"
|
|
|
|
+ VirtualizingPanel.CacheLength="1"
|
|
|
|
+ VirtualizingPanel.CacheLengthUnit="Page"
|
|
|
|
+ VirtualizingPanel.IsVirtualizing="True"
|
|
|
|
+ VirtualizingPanel.ScrollUnit="Pixel"
|
|
|
|
+ Visibility="{Binding IsListMode, Converter={StaticResource InvertBoolToVisibleConvert}}" />
|
|
</Grid>
|
|
</Grid>
|
|
|
|
|
|
- <StackPanel x:Name="BlankContentPanel" Grid.Row="1" Grid.RowSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
|
|
- Visibility="{Binding IsEmpty,Converter={StaticResource BoolToVisible}}">
|
|
|
|
|
|
+ <StackPanel
|
|
|
|
+ x:Name="BlankContentPanel"
|
|
|
|
+ Grid.Row="1"
|
|
|
|
+ Grid.RowSpan="2"
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Visibility="{Binding IsEmpty, Converter={StaticResource BoolToVisible}}">
|
|
|
|
|
|
|
|
|
|
- <Button x:Name="BtnAddFiles" MaxHeight="128" Width="128" Height="128" Background="Transparent" BorderThickness="0"
|
|
|
|
-
|
|
|
|
- Command="{Binding OpenFilesCommand}"
|
|
|
|
- Style="{StaticResource OnlyContentBtn}" Foreground="#6B6F7D">
|
|
|
|
|
|
+ <Button
|
|
|
|
+ x:Name="BtnAddFiles"
|
|
|
|
+ Width="128"
|
|
|
|
+ Height="128"
|
|
|
|
+ MaxHeight="128"
|
|
|
|
+ Background="Transparent"
|
|
|
|
+ BorderThickness="0"
|
|
|
|
+ Command="{Binding OpenFilesCommand}"
|
|
|
|
+ Foreground="#6B6F7D"
|
|
|
|
+ Style="{StaticResource OnlyContentBtn}">
|
|
<Grid Width="128" Height="128">
|
|
<Grid Width="128" Height="128">
|
|
- <Image Source="../../../Resources/HomeIcon/add.png" Width="128" Height="128" Stretch="Uniform" VerticalAlignment="Center" />
|
|
|
|
|
|
+ <Image
|
|
|
|
+ Width="128"
|
|
|
|
+ Height="128"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Source="../../../Resources/HomeIcon/add.png"
|
|
|
|
+ Stretch="Uniform" />
|
|
</Grid>
|
|
</Grid>
|
|
</Button>
|
|
</Button>
|
|
|
|
|
|
- <TextBlock x:Name="NoFilesText" Text="No documents" TextAlignment="Center" HorizontalAlignment="Center" FontSize="16" LineHeight="22" Foreground="#FF333333" FontFamily="Segoe UI" />
|
|
|
|
- <StackPanel Orientation="Horizontal" Margin="0,12,0,0">
|
|
|
|
- <TextBlock x:Name="clickFileText" Text="Drop documents here or click the '" Foreground="#FF999999" VerticalAlignment="Center" FontSize="14" />
|
|
|
|
|
|
+ <TextBlock
|
|
|
|
+ x:Name="NoFilesText"
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
+ FontFamily="Segoe UI"
|
|
|
|
+ FontSize="16"
|
|
|
|
+ Foreground="#FF333333"
|
|
|
|
+ LineHeight="22"
|
|
|
|
+ Text="No documents"
|
|
|
|
+ TextAlignment="Center" />
|
|
|
|
+ <StackPanel Margin="0,12,0,0" Orientation="Horizontal">
|
|
|
|
+ <TextBlock
|
|
|
|
+ x:Name="clickFileText"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ FontSize="14"
|
|
|
|
+ Foreground="#FF999999"
|
|
|
|
+ Text="Drop documents here or click the '" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|