|
@@ -6,8 +6,7 @@
|
|
xmlns:local="clr-namespace:ComPDFKit.Controls.Comparison"
|
|
xmlns:local="clr-namespace:ComPDFKit.Controls.Comparison"
|
|
xmlns:common="clr-namespace:ComPDFKit.Controls.Common"
|
|
xmlns:common="clr-namespace:ComPDFKit.Controls.Common"
|
|
xmlns:controls="clr-namespace:WpfToolkit.Controls;assembly=VirtualizingWrapPanel"
|
|
xmlns:controls="clr-namespace:WpfToolkit.Controls;assembly=VirtualizingWrapPanel"
|
|
- xmlns:pdfControl="clr-namespace:ComPDFKit.Controls.PDFControl"
|
|
|
|
- mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="1200">
|
|
|
|
|
|
+ xmlns:pdfControl="clr-namespace:ComPDFKit.Controls.PDFControl" mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="1200">
|
|
<UserControl.Resources>
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
@@ -18,6 +17,7 @@
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
<common:CommonResourceConverter x:Key="CommonResourceConverter"></common:CommonResourceConverter>
|
|
<common:CommonResourceConverter x:Key="CommonResourceConverter"></common:CommonResourceConverter>
|
|
<common:BoolToVisibleConverter x:Key="BoolToVisibleConverter"></common:BoolToVisibleConverter>
|
|
<common:BoolToVisibleConverter x:Key="BoolToVisibleConverter"></common:BoolToVisibleConverter>
|
|
|
|
+ <common:TextLengthToBoolConverter x:Key="TextLengthToBoolConverter"/>
|
|
<local:GroupHeaderConverter x:Key="GroupHeaderConverter" />
|
|
<local:GroupHeaderConverter x:Key="GroupHeaderConverter" />
|
|
</ResourceDictionary>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
</UserControl.Resources>
|
|
@@ -64,7 +64,7 @@
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal" Margin="0,5,12,5">
|
|
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal" Margin="0,5,12,5">
|
|
<CheckBox Content="Scroll Sync" x:Name="SynchronizedScrollingCKBox" BorderThickness="2" BorderBrush="Black" VerticalContentAlignment="Center" FontSize="14" FontFamily="Segoe UI"></CheckBox>
|
|
<CheckBox Content="Scroll Sync" x:Name="SynchronizedScrollingCKBox" BorderThickness="2" BorderBrush="Black" VerticalContentAlignment="Center" FontSize="14" FontFamily="Segoe UI"></CheckBox>
|
|
- <Button Content="Save" Width="112" Height="32" Margin="19,0,8,0"></Button>
|
|
|
|
|
|
+ <Button Content="Save" Width="112" Height="32" Margin="19,0,8,0" Click="SaveBtn_Click"></Button>
|
|
<Button Content="Exit" Width="112" Height="32" Click="CloseBtn_Click"></Button>
|
|
<Button Content="Exit" Width="112" Height="32" Click="CloseBtn_Click"></Button>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</DockPanel>
|
|
</DockPanel>
|
|
@@ -199,13 +199,12 @@
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
<Grid Grid.Row="0">
|
|
<Grid Grid.Row="0">
|
|
- <pdfControl:CPDFScalingControl x:Name="CPDFSaclingControl" Margin="12,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center"></pdfControl:CPDFScalingControl>
|
|
|
|
|
|
+ <pdfControl:CPDFScalingControl x:Name="CPDFSaclingControl" Margin="12,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center"></pdfControl:CPDFScalingControl>
|
|
<TextBlock Text="oldFile.pdf" HorizontalAlignment="Center" VerticalAlignment="Center"></TextBlock>
|
|
<TextBlock Text="oldFile.pdf" HorizontalAlignment="Center" VerticalAlignment="Center"></TextBlock>
|
|
</Grid>
|
|
</Grid>
|
|
<pdfControl:PDFViewControl Grid.Row="1" x:Name="LeftViewer"/>
|
|
<pdfControl:PDFViewControl Grid.Row="1" x:Name="LeftViewer"/>
|
|
</Grid>
|
|
</Grid>
|
|
- <GridSplitter Grid.Column="1" HorizontalAlignment="Stretch"
|
|
|
|
- VerticalAlignment="Stretch" ShowsPreview="True" Background="#ECECEC" Cursor="SizeWE" BorderBrush="#DCDCDC" BorderThickness="0.6">
|
|
|
|
|
|
+ <GridSplitter Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ShowsPreview="True" Background="#ECECEC" Cursor="SizeWE" BorderBrush="#DCDCDC" BorderThickness="0.6">
|
|
</GridSplitter>
|
|
</GridSplitter>
|
|
<Ellipse Grid.Column="1" Width="6" Height="6" Fill="#DCDCDC" Panel.ZIndex="1" HorizontalAlignment="Center" VerticalAlignment="Center" IsHitTestVisible="False"></Ellipse>
|
|
<Ellipse Grid.Column="1" Width="6" Height="6" Fill="#DCDCDC" Panel.ZIndex="1" HorizontalAlignment="Center" VerticalAlignment="Center" IsHitTestVisible="False"></Ellipse>
|
|
<Grid Grid.Column="2">
|
|
<Grid Grid.Column="2">
|
|
@@ -214,12 +213,82 @@
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
<Grid Grid.Row="0">
|
|
<Grid Grid.Row="0">
|
|
- <pdfControl:CPDFScalingControl x:Name="CPDFSaclingControl1" Margin="12,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center"></pdfControl:CPDFScalingControl>
|
|
|
|
|
|
+ <pdfControl:CPDFScalingControl x:Name="CPDFSaclingControl1" Margin="12,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center"></pdfControl:CPDFScalingControl>
|
|
<TextBlock Text="newFile.pdf" HorizontalAlignment="Center" VerticalAlignment="Center"></TextBlock>
|
|
<TextBlock Text="newFile.pdf" HorizontalAlignment="Center" VerticalAlignment="Center"></TextBlock>
|
|
</Grid>
|
|
</Grid>
|
|
<pdfControl:PDFViewControl Grid.Row="1" x:Name="RightViewer"/>
|
|
<pdfControl:PDFViewControl Grid.Row="1" x:Name="RightViewer"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
|
|
+ <Grid Name="SavePopGrid" Background="#20000000" Visibility="Collapsed">
|
|
|
|
+ <Border VerticalAlignment="Center" HorizontalAlignment="Center" CornerRadius="5" Width="432" Height="303" BorderThickness="0.5" BorderBrush="Black" Background="White">
|
|
|
|
+ <Border.Effect>
|
|
|
|
+ <DropShadowEffect ShadowDepth="4" BlurRadius="10" Color="Black" Opacity="0.4"/>
|
|
|
|
+ </Border.Effect>
|
|
|
|
+ <Grid Margin="20,5,20,0">
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
+ <RowDefinition Height="44"></RowDefinition>
|
|
|
|
+ <RowDefinition Height="137"></RowDefinition>
|
|
|
|
+ <RowDefinition Height="48"></RowDefinition>
|
|
|
|
+ <RowDefinition Height="64"></RowDefinition>
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
+ <Grid>
|
|
|
|
+
|
|
|
|
+ <TextBlock Margin="0,10,0,0" FontSize="14" FontFamily="Segoe UI" Height="20" Name="SaveText">Save</TextBlock>
|
|
|
|
+ <Button Click="CancelBtn_Click" HorizontalAlignment="Right" Background="White" Width="16" Height="16" BorderThickness="0">
|
|
|
|
+ <Path Fill="Black">
|
|
|
|
+ <Path.Data>
|
|
|
|
+ M5.69231 5L9.5 1.19231L8.80769 0.5L5 4.30769L1.19231 0.5L0.5 1.19231L4.30769 5L0.5 8.80769L1.19231 9.5L5 5.69231L8.80769 9.5L9.5 8.80769L5.69231 5Z
|
|
|
|
+ </Path.Data>
|
|
|
|
+ </Path>
|
|
|
|
+ </Button>
|
|
|
|
+ </Grid>
|
|
|
|
+ <GroupBox Grid.Row="1" Header="Save as" Name="SaceAsGroup">
|
|
|
|
+ <StackPanel Margin="8,24,0,0">
|
|
|
|
+ <StackPanel Margin="0,0,0,0" Orientation="Horizontal">
|
|
|
|
+ <RadioButton GroupName="SavePopGroup" Name="OldCheckBox" VerticalAlignment="Center" IsChecked="True" Content="Old"></RadioButton>
|
|
|
|
+ </StackPanel>
|
|
|
|
+ <StackPanel Margin="0,16,0,0" Orientation="Horizontal">
|
|
|
|
+ <RadioButton GroupName="SavePopGroup" Name="NewCheckBox" VerticalAlignment="Center" Content="New"></RadioButton>
|
|
|
|
+ </StackPanel>
|
|
|
|
+ <StackPanel Margin="0,16,0,0" Orientation="Horizontal">
|
|
|
|
+ <RadioButton GroupName="SavePopGroup" Name="CombineCheckBox" VerticalAlignment="Center" Content="Combine"></RadioButton>
|
|
|
|
+ </StackPanel>
|
|
|
|
+ </StackPanel>
|
|
|
|
+ </GroupBox>
|
|
|
|
+ <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="5,16,0,0">
|
|
|
|
+ <TextBlock x:Name="TxbFilePath" VerticalAlignment="Center" Text="File Location" MaxWidth="75" Height="20" TextTrimming="WordEllipsis" ToolTip="{Binding ElementName=TxbFilePath,Path=Text}"/>
|
|
|
|
+ <TextBox x:Name="CmbFilePath" Width="193" Height="32" Margin="10,0" IsReadOnly="True" Padding="8,5,0,0"/>
|
|
|
|
+ <Button Width="100" Name="BrowseFilePath" Content="Browse..." Height="32" HorizontalAlignment="Right" BorderThickness="1" Click="BrowseFilePathButton_Click"></Button>
|
|
|
|
+ </StackPanel>
|
|
|
|
+ <StackPanel Orientation="Horizontal" Grid.Row="3" HorizontalAlignment="Right" Margin="0,20,2,0">
|
|
|
|
+ <Button Width="112" Height="32" Padding="0,2,0,2" Background="#E1E1E1" BorderBrush="#FA477EDE" BorderThickness="1" Click="ConfirmSaveBtn_Click" IsEnabled="{Binding ElementName=CmbFilePath,Path=Text,Converter={StaticResource TextLengthToBoolConverter}}" x:Name="ConfirmSaveBtn">Save</Button>
|
|
|
|
+ <Button Width="112" Height="32" Padding="0,2,0,2" Margin="10,0,0,0" Background="#E1E1E1" BorderBrush="#33000000" BorderThickness="1" Click="CancelBtn_Click" Name="BtnCancel">Cancel</Button>
|
|
|
|
+
|
|
|
|
+ </StackPanel>
|
|
|
|
+ </Grid>
|
|
|
|
+ </Border>
|
|
|
|
+ </Grid>
|
|
|
|
+ <Grid Name="CloseConfirmGrid" Background="#20000000" Visibility="Collapsed">
|
|
|
|
+ <Border VerticalAlignment="Center" HorizontalAlignment="Center" CornerRadius="5" Width="320" Height="168" BorderThickness="0.5" BorderBrush="Black" Background="#FCFDFF">
|
|
|
|
+ <Border.Effect>
|
|
|
|
+ <DropShadowEffect ShadowDepth="4" BlurRadius="10" Color="Black" Opacity="0.4"/>
|
|
|
|
+ </Border.Effect>
|
|
|
|
+ <Grid>
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
+ <RowDefinition Height="auto"></RowDefinition>
|
|
|
|
+ <RowDefinition Height="*"></RowDefinition>
|
|
|
|
+ <RowDefinition Height="auto"></RowDefinition>
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
+ <TextBlock FontSize="14" FontWeight="Bold" Margin="24,16,24,0" HorizontalAlignment="Left" FontFamily="Segoe UI" TextWrapping="WrapWithOverflow">Attention</TextBlock>
|
|
|
|
+ <TextBlock Grid.Row="1" FontSize="14" Margin="24,16,24,0" HorizontalAlignment="Left" FontFamily="Segoe UI" TextWrapping="WrapWithOverflow"
|
|
|
|
+ Text="Please confirm that you have saved the comparison results file"></TextBlock>
|
|
|
|
+ <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="24,24,24,20">
|
|
|
|
+ <Button Width="130" Padding="0,2,0,2" Background="#E1E1E1" BorderBrush="#33000000" BorderThickness="1" Click="CancelCloseBtn_Click" Name="BtnCancle1">Cancel</Button>
|
|
|
|
+ <Button Width="130" Padding="0,2,0,2" Margin="10,0,0,0" Height="32" Click="ConfirmExitBtn_Click" Foreground="White" Background="#1460F3" BorderThickness="1" Name="BtnSave2">Confirm</Button>
|
|
|
|
+ </StackPanel>
|
|
|
|
+ </Grid>
|
|
|
|
+ </Border>
|
|
|
|
+ </Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl>
|
|
</UserControl>
|