|
@@ -0,0 +1,88 @@
|
|
|
+<UserControl x:Class="Compdfkit_Tools.PDFControl.FileGridListWithPageRangeControl"
|
|
|
+ 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:Compdfkit_Tools.PDFControl"
|
|
|
+ mc:Ignorable="d"
|
|
|
+ d:DesignHeight="450" d:DesignWidth="800">
|
|
|
+ <UserControl.Resources>
|
|
|
+ <ResourceDictionary>
|
|
|
+ <Style x:Key="CustomDataGridStyle" TargetType="DataGrid">
|
|
|
+ <Setter Property="BorderBrush" Value="#E6E6E6" />
|
|
|
+ <Setter Property="BorderThickness" Value="1" />
|
|
|
+ <Setter Property="CellStyle">
|
|
|
+ <Setter.Value>
|
|
|
+ <Style TargetType="DataGridCell">
|
|
|
+ <Setter Property="BorderThickness" Value="1" />
|
|
|
+ <Setter Property="BorderBrush" Value="#E6E6E6" />
|
|
|
+ </Style>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+ </ResourceDictionary>
|
|
|
+ </UserControl.Resources>
|
|
|
+ <Grid Margin="10,0,0,0">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="50"></RowDefinition>
|
|
|
+ <RowDefinition Height="*"></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+
|
|
|
+ <DockPanel Grid.Row="0" Grid.Column="0">
|
|
|
+ <Button x:Name="AddFilesBtn" Content="Add Files" Height="32" Width="112" FontFamily="Segoe UI" FontSize="14" Padding="28,6,27,6" HorizontalAlignment="Left" Click="AddFilesBtn_Click"></Button>
|
|
|
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
|
|
|
+ <TextBlock Text="Total " FontFamily="Segoe UI" FontSize="14"></TextBlock>
|
|
|
+ <TextBlock FontFamily="Segoe UI" FontSize="14" Text="{Binding FileNumText}" ></TextBlock>
|
|
|
+ <TextBlock Text=" Files" FontFamily="Segoe UI" FontSize="14"></TextBlock>
|
|
|
+ </StackPanel>
|
|
|
+ </DockPanel>
|
|
|
+
|
|
|
+ <Border Grid.Row="1" Grid.Column="0" BorderBrush="#CCCCCC" BorderThickness="1">
|
|
|
+ <Grid Margin="10,10,10,0">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="*"></RowDefinition>
|
|
|
+ <RowDefinition Height="50"></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid Grid.Row="0" VerticalAlignment="Stretch">
|
|
|
+ <DataGrid Background="White" BorderBrush="#E6E6E6" x:Name="FileDataGrid" HeadersVisibility="Column"
|
|
|
+ IsReadOnly="True" AutoGenerateColumns="False" FontSize="14" SelectionMode="Extended"
|
|
|
+ ScrollViewer.CanContentScroll="False" HorizontalScrollBarVisibility="Auto">
|
|
|
+ <DataGrid.Columns>
|
|
|
+ <DataGridTextColumn Header="File" Width="*" Binding="{Binding FileName}" />
|
|
|
+ <DataGridTextColumn Header="Size" Width="*" Binding="{Binding Size}" />
|
|
|
+ <DataGridTextColumn Header="Page Range" Width="*" Binding="{Binding PageRange}" />
|
|
|
+ <DataGridTextColumn Header="Location" Width="*" Binding="{Binding Location}" />
|
|
|
+ </DataGrid.Columns>
|
|
|
+ <DataGrid.Resources>
|
|
|
+ <Style TargetType="DataGrid">
|
|
|
+ <Setter Property="HorizontalGridLinesBrush" Value="#E6E6E6" />
|
|
|
+ <Setter Property="VerticalGridLinesBrush" Value="#E6E6E6" />
|
|
|
+ </Style>
|
|
|
+ <Style TargetType="DataGridColumnHeader">
|
|
|
+ <Setter Property="Foreground" Value="#666666" />
|
|
|
+ <Setter Property="FontFamily" Value="Segoe UI" />
|
|
|
+ <Setter Property="FontSize" Value="12" />
|
|
|
+ </Style>
|
|
|
+ <Style TargetType="DataGridCell">
|
|
|
+ <Setter Property="FontFamily" Value="Segoe UI" />
|
|
|
+ <Setter Property="FontSize" Value="12" />
|
|
|
+ <Setter Property="Foreground" Value="#666666" />
|
|
|
+ <Setter Property="BorderThickness" Value="0"></Setter>
|
|
|
+ <Style.Triggers>
|
|
|
+ <Trigger Property="IsSelected" Value="True">
|
|
|
+ <Setter Property="Background" Value="#0078D7" />
|
|
|
+ <Setter Property="Foreground" Value="White" />
|
|
|
+ </Trigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </DataGrid.Resources>
|
|
|
+ </DataGrid>
|
|
|
+ </Grid>
|
|
|
+ <StackPanel Grid.Row="1" Orientation="Horizontal">
|
|
|
+ <Button x:Name="RemoveBtn" FontFamily="Segoe UI" FontSize="14" Content="Remove All" Width="112" Height="32" HorizontalAlignment="Left" Click="RemoveBtn_Click"></Button>
|
|
|
+ <Button x:Name="PageRangeBtn" FontFamily="Segoe UI" FontSize="14" Content="Page Range" Width="112" Height="32" HorizontalAlignment="Left" Margin="20,0,0,0" Click="PageRangeBtn_Click"></Button>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
+ </Grid>
|
|
|
+</UserControl>
|