ComparisonSettingDialog.xaml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <Window x:Class="ComPDFKit.Controls.Comparison.ComparisonSettingDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:ComPDFKit.Controls.Comparison"
  7. xmlns:baseControl="clr-namespace:ComPDFKit.Controls.Common.BaseControl"
  8. xmlns:common="clr-namespace:ComPDFKit.Controls.Common"
  9. mc:Ignorable="d" Title="FileCompareDialogs" Width="687" Height="876" ShowInTaskbar="False" ResizeMode="NoResize" WindowStartupLocation="CenterOwner">
  10. <Window.Resources>
  11. <ResourceDictionary>
  12. <Style TargetType="GroupBox">
  13. <Setter Property="BorderBrush" Value="Gray" />
  14. <Setter Property="Margin" Value="5,5,5,0" />
  15. <Setter Property="FontSize" Value="14" />
  16. <Setter Property="Foreground" Value="Black" />
  17. <Setter Property="HeaderTemplate">
  18. <Setter.Value>
  19. <DataTemplate>
  20. <TextBlock FontWeight="Bold" Text="{Binding}" />
  21. </DataTemplate>
  22. </Setter.Value>
  23. </Setter>
  24. </Style>
  25. <ResourceDictionary.MergedDictionaries>
  26. <ResourceDictionary Source="pack://application:,,,/ComPDFKit.Controls;component/Asset/Styles/ComboBoxStyle.xaml"></ResourceDictionary>
  27. </ResourceDictionary.MergedDictionaries>
  28. </ResourceDictionary>
  29. </Window.Resources>
  30. <Grid>
  31. <!-- <CustomControls:LoadingControl x:Name="LoadingControl" Margin="0,0,0,0" Panel.ZIndex="2" Visibility="Collapsed"/> -->
  32. <Grid Name="FileCompareGrid">
  33. <StackPanel Width="663" Height="876">
  34. <Grid>
  35. <TabControl x:Name="CompareTypeTab" SelectionChanged="CompareTypeTab_SelectionChanged" Width="633.75" Height="485">
  36. <TabItem Name="ContentCompareTab" MouseLeftButtonDown="CompareType_MouseLeftDown" Header="Content Compare" FontSize="14" FontFamily="Segoe UI">
  37. </TabItem>
  38. <TabItem Name="OverlayCompareTab" MouseLeftButtonDown="CompareType_MouseLeftDown" Header="Overlay Compare" FontSize="14" FontFamily="Segoe UI">
  39. </TabItem>
  40. </TabControl>
  41. <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
  42. <Grid HorizontalAlignment="Right" VerticalAlignment="Center" Width="212">
  43. <StackPanel>
  44. <TextBlock Name="OldFileText" HorizontalAlignment="Center" Margin="0,0,0,0" Text="Old File" Width="180" FontSize="14" FontFamily="
  45. Segoe UI" Height="20"></TextBlock>
  46. <StackPanel HorizontalAlignment="Center" Margin="0,8,0,8" Orientation="Horizontal">
  47. <Grid Height="32" HorizontalAlignment="Center">
  48. <ComboBox Name="OldFileComboBox" Width="144" Height="32" HorizontalAlignment="Left" Background="White" BorderBrush="#B4B4B4" BorderThickness="1" Margin="0,0,4,0" SelectionChanged="OldFileComboBox_SelectionChanged" Padding="0,8,4,0">
  49. <ComboBox.ItemContainerStyle>
  50. <Style TargetType="{x:Type ComboBoxItem}">
  51. <Setter Property="Padding" Value="10,4,0,0" />
  52. <Setter Property="Focusable" Value="False"/>
  53. <Setter Property="Height" Value="24"/>
  54. </Style>
  55. </ComboBox.ItemContainerStyle>
  56. </ComboBox>
  57. <TextBlock Text="{Binding ElementName=OldFileComboBox,Path=Text}" Width="123" Height="28" Padding="4,6,0,0" Background="White" Margin="1,0,0,0" HorizontalAlignment="Left" TextTrimming="CharacterEllipsis"></TextBlock>
  58. </Grid>
  59. <Button HorizontalAlignment="Center" Width="32" Height="32" Padding="0,2,0,2" Click="BrowseOldBtn_Click" Background="White" BorderBrush="#B4B4B4" BorderThickness="1">
  60. <Path Data="M5.24031 0.5H0.5V13.5H15.5V3H7.24031L5.24031 0.5ZM1.5 12.5V1.5H4.75969L6.75969 4H14.5V12.5H1.5ZM4 6.5H12V5.5H4V6.5Z" Fill="Black"></Path>
  61. </Button>
  62. </StackPanel>
  63. <Border Width="180" Height="280" Background="#E1E1E1" BorderThickness="1" BorderBrush="Black">
  64. <Border BorderBrush="Black" BorderThickness="0" Width="178" Height="233" Background="White">
  65. <Image Name="OldImageControl" Width="178" Height="233" Stretch="Uniform"></Image>
  66. </Border>
  67. </Border>
  68. <Grid Margin="0,12,0,0">
  69. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Bottom" Orientation="Horizontal">
  70. <Button Name="BtnOldPre" Width="24" Height="24" HorizontalAlignment="Left" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" BorderThickness="0" Click="btnOldPre_Click" FontSize="16" BorderBrush="#44477EDE" Background="#E1E1E1" Tag="PrePage">
  71. <Path Data="M6.29777 12L7 11.2733L1.90446 6L7 0.726727L6.29777 0L0.5 6L6.29777 12Z" Fill="black"/>
  72. </Button>
  73. <TextBox Name="TxtOldPage" Width="45" Height="26" Margin="10,0,5,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" KeyDown="txtOldPage_KeyDown" LostFocus="txtOldPage_LostFocus" />
  74. <TextBlock Name="TxtOldPageCount" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Center" FontFamily="Segoe UI" FontSize="14" Text="/--" />
  75. <TextBlock Margin="5" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding PrintedPageCount}" />
  76. <Button Name="BtnOldNext" Width="24" Height="24" HorizontalAlignment="Left" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" BorderThickness="0" Click="btnOldNext_Click" FontSize="16" BorderBrush="#44477EDE" Background="#E1E1E1" Tag="NextPage">
  77. <Path Data="M1.20223 12L0.5 11.2733L5.59554 6L0.5 0.726727L1.20223 0L7 6L1.20223 12Z" Fill="black"/>
  78. </Button>
  79. </StackPanel>
  80. </Grid>
  81. </StackPanel>
  82. </Grid>
  83. <Button Click="SwapeImage_MouseLeftDown" Name="SwapeImage" Content="VS" Foreground="White" Width="80" Height="24" Margin="30,0,30,0"></Button>
  84. <Grid HorizontalAlignment="Left" VerticalAlignment="Center" Width="212">
  85. <StackPanel>
  86. <TextBlock Name="NewFileText" HorizontalAlignment="Center" Margin="0,0,0,0" Text="New File" Width="180" FontSize="14" FontFamily="Segoe UI" Height="20"></TextBlock>
  87. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,8,0,8">
  88. <Grid Height="32" HorizontalAlignment="Center">
  89. <ComboBox Name="NewFileComboBox" Width="144" Height="32" HorizontalAlignment="Left" Background="White" BorderBrush="#33000000" BorderThickness="1" Margin="0,0,4,0" SelectionChanged="NewFileComboBox_SelectionChanged" Padding="0,8,4,0">
  90. <ComboBox.ItemContainerStyle>
  91. <Style TargetType="{x:Type ComboBoxItem}">
  92. <Setter Property="Padding" Value="10,4,0,0" />
  93. <Setter Property="Focusable" Value="False"/>
  94. <Setter Property="Height" Value="24"/>
  95. </Style>
  96. </ComboBox.ItemContainerStyle>
  97. </ComboBox>
  98. <TextBlock Text="{Binding ElementName=NewFileComboBox,Path=Text}" Width="123" Height="28" Padding="4,6,0,0" Margin="1,0,0,0" Background="White" HorizontalAlignment="Left" TextTrimming="CharacterEllipsis"></TextBlock>
  99. </Grid>
  100. <Button HorizontalAlignment="Center" Width="32" Height="32" Padding="0,2,0,2" Click="BrowseNewBtn_Click" Background="White" BorderBrush="#33000000" BorderThickness="1">
  101. <Path Data="M5.24031 0.5H0.5V13.5H15.5V3H7.24031L5.24031 0.5ZM1.5 12.5V1.5H4.75969L6.75969 4H14.5V12.5H1.5ZM4 6.5H12V5.5H4V6.5Z" Fill="Black"></Path>
  102. </Button>
  103. </StackPanel>
  104. <Grid>
  105. <Border Name="ADDFileBorder" Width="178" Height="278" Background="White" Panel.ZIndex="1" MouseLeftButtonDown="Border_MouseLeftButtonDown" AllowDrop="True" DragOver="ADDFileBorder_DragOver" Drop="ADDFileBorder_Drop">
  106. <StackPanel VerticalAlignment="Center">
  107. <Grid>
  108. <Path Data="M7 16.8269H9V9.8269H16V7.8269H9V0.826904H7V7.8269H0V9.8269H7V16.8269Z" Fill="#A0A2AE" VerticalAlignment="Center" HorizontalAlignment="Center"></Path>
  109. <Border Width="96" Height="96" VerticalAlignment="Center" HorizontalAlignment="Center">
  110. <Rectangle Width="96" Height="96" Stroke="#477EDE" StrokeThickness="1" RadiusX="4" RadiusY="4" Fill="Transparent">
  111. <Rectangle.StrokeDashArray>
  112. <DoubleCollection>4,2</DoubleCollection>
  113. </Rectangle.StrokeDashArray>
  114. </Rectangle>
  115. </Border>
  116. </Grid>
  117. <TextBlock Name="SelectFileText" Text="Select file" MaxWidth="160" TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14" Foreground="#42464D" FontFamily="Segoe UI" Margin="0,16,0,0"></TextBlock>
  118. <TextBlock Name="ClickToAddText" Text="Click to add here" MaxWidth="160" TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="12" Foreground="#666666" FontFamily="Segoe UI" Margin="0,8,0,0"></TextBlock>
  119. </StackPanel>
  120. </Border>
  121. <Border Width="180" Height="280" Background="#E1E1E1" BorderThickness="1" BorderBrush="Black">
  122. <Border BorderBrush="Black" BorderThickness="0" Width="178" Height="233" Background="White">
  123. <Image Name="NewImageControl" Width="178" Height="233" Stretch="Uniform"></Image>
  124. </Border>
  125. </Border>
  126. </Grid>
  127. <Grid Margin="0,12,0,0">
  128. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Bottom" Orientation="Horizontal">
  129. <Button Name="BtnNewPre" Width="24" Height="24" HorizontalAlignment="Left" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" BorderThickness="0" Click="btnNewPre_Click" FontSize="16" BorderBrush="#44477EDE" Background="#E1E1E1" Tag="PrePage">
  130. <Path Data="M6.29777 12L7 11.2733L1.90446 6L7 0.726727L6.29777 0L0.5 6L6.29777 12Z" Fill="black"/>
  131. </Button>
  132. <TextBox Name="TxtNewPage" Width="45" Height="26" Margin="10,0,5,0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" KeyDown="txtNewPage_KeyDown" LostFocus="txtNewPage_LostFocus" />
  133. <TextBlock Name="TxtNewPageCount" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Center" FontFamily="Segoe UI" FontSize="14" Text="/--" />
  134. <TextBlock Margin="5" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding PrintedPageCount}" />
  135. <Button Name="BtnNewNext" Width="24" Height="24" HorizontalAlignment="Left" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" BorderThickness="0" Click="btnNewNext_Click" FontSize="16" BorderBrush="#44477EDE" Background="#E1E1E1" Tag="NextPage">
  136. <Path Data="M1.20223 12L0.5 11.2733L5.59554 6L0.5 0.726727L1.20223 0L7 6L1.20223 12Z" Fill="black"/>
  137. </Button>
  138. </StackPanel>
  139. </Grid>
  140. </StackPanel>
  141. </Grid>
  142. </StackPanel>
  143. </Grid>
  144. <GroupBox x:Name="PageRangeBox" Header="Page Range" Width="630" Height="116">
  145. <StackPanel Margin="8,0,0,0" VerticalAlignment="Center" Orientation="Horizontal">
  146. <TextBlock Name="OldFileText1" Text="Old File" FontSize="14" FontFamily="Segoe UI" Height="20"></TextBlock>
  147. <baseControl:WritableComboBox x:Name="CmbOldPageRange" Width="227" Height="32" Margin="8,0"
  148. HorizontalAlignment="Left" VerticalAlignment="Center"
  149. Background="White" IsCurrentPage="True" SelectedIndex="0"
  150. SelectionChanged="CmbOldPageRange_SelectionChanged" TextChanged="CmbOldPageRange_TextChanged" />
  151. <TextBlock Name="NewFileText1" Text="New File" FontSize="14" FontFamily="Segoe UI" Height="20"></TextBlock>
  152. <baseControl:WritableComboBox x:Name="CmbNewPageRange" Width="227" Height="32" Margin="8,0"
  153. HorizontalAlignment="Left" VerticalAlignment="Center" Background="White"
  154. IsCurrentPage="True" SelectedIndex="0"
  155. SelectionChanged="CmbNewPageRange_SelectionChanged" TextChanged="CmbNewPageRange_TextChanged" />
  156. </StackPanel>
  157. </GroupBox>
  158. <GroupBox Header="Comparison Settings" x:Name="ContentSettingBox" Width="630" Height="171" Visibility="Visible">
  159. <StackPanel Margin="0,20,0,0">
  160. <StackPanel Margin="13,0,0,8" HorizontalAlignment="Left" Orientation="Horizontal">
  161. <TextBlock FontWeight="DemiBold" FontSize="14" FontFamily="Segoe UI" Text="Compare Items"></TextBlock>
  162. <CheckBox Name="TextCheckBox" Content="Text" IsChecked="True" Margin="20,0,12,0" VerticalContentAlignment="Center"></CheckBox>
  163. <CheckBox Name="ImageCheckBox" Content="Image" IsChecked="True" VerticalContentAlignment="Center"></CheckBox>
  164. </StackPanel>
  165. <StackPanel Orientation="Horizontal" Margin="13,12,0,0">
  166. <TextBlock FontWeight="DemiBold" FontSize="14" FontFamily="Segoe UI" Text="Mark Difference"></TextBlock>
  167. <StackPanel Margin="20,0,0,0">
  168. <StackPanel Orientation="Horizontal" Background="White">
  169. <TextBlock Margin="0,0,10,0" VerticalAlignment="Center" FontFamily="Segoe UI" FontSize="14" MinWidth="90" TextTrimming="WordEllipsis"
  170. Height="20" Width="110"
  171. ToolTip="{Binding ElementName=ReplaceColorText,Path=Text}" Name="ReplaceColorText">Deleted Content</TextBlock>
  172. <Rectangle Fill="Red" Margin="12,0,0,0" Name="ReplaceColorRect" MouseLeftButtonDown="ReplaceColorRect_Click" Width="32" Height="16"
  173. StrokeThickness="1" Stroke="#1A000000"></Rectangle>
  174. </StackPanel>
  175. <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
  176. <TextBlock Margin="0,0,10,0" VerticalAlignment="Center" TextTrimming="WordEllipsis" Height="20" Width="110"
  177. ToolTip="{Binding ElementName=InsertColorText,Path=Text}" FontFamily="Segoe UI" FontSize="14" MinWidth="90"
  178. Name="InsertColorText">Replaced Content</TextBlock>
  179. <Rectangle Fill="#FFBB00" Margin="12,0,0,0" Name="InsertColorRect" MouseLeftButtonDown="InsertColorRect_Click" Width="32" Height="16"
  180. StrokeThickness="1" Stroke="#1A000000"></Rectangle>
  181. </StackPanel>
  182. <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
  183. <TextBlock Margin="0,0,10,0" TextTrimming="WordEllipsis" Height="20" Width="110"
  184. ToolTip="{Binding ElementName=DeleteColorText,Path=Text}" VerticalAlignment="Center" FontFamily="Segoe UI"
  185. FontSize="14" MinWidth="90" Name="DeleteColorText">Inserted Content</TextBlock>
  186. <Rectangle Fill="#2D77FA" Margin="12,0,0,0" Name="DeleteColorRect" MouseLeftButtonDown="DeleteColorRect_Click" Width="32" Height="16"
  187. StrokeThickness="1" Stroke="#1A000000"></Rectangle>
  188. </StackPanel>
  189. </StackPanel>
  190. </StackPanel>
  191. </StackPanel>
  192. </GroupBox>
  193. <GroupBox Header="Comparison Settings" x:Name="OverlaySettingBox" Width="630" Height="171" Visibility="Collapsed">
  194. <StackPanel Margin="13,20,0,0">
  195. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
  196. <TextBlock Text="Opacity" FontWeight="DemiBold" FontSize="14" FontFamily="Segoe UI" Width="120" VerticalAlignment="Center"></TextBlock>
  197. <TextBlock Text="Old File" FontSize="14" FontFamily="Segoe UI" VerticalAlignment="Center" Margin="20,0,8,0"></TextBlock>
  198. <common:DropDownNumberBoxControl HorizontalContentAlignment="Stretch" Width="154" Height="32" Unit="%" Minimum="1" Maxium="100" Text="50" x:Name="OldOpacityControl" TextChangedEvent="OldOpacityControl_OnTextInput"/>
  199. <TextBlock Text="New File" FontSize="14" FontFamily="Segoe UI" VerticalAlignment="Center" Margin="20,0,8,0"></TextBlock>
  200. <common:DropDownNumberBoxControl HorizontalContentAlignment="Stretch" Width="154" Height="32" Unit="%" Minimum="1" Maxium="100" Text="50" x:Name="NewOpacityControl" TextChangedEvent="NewOpacityControl_OnTextInput"/>
  201. </StackPanel>
  202. <StackPanel Orientation="Horizontal" Margin="0,12,0,12" Height="32">
  203. <TextBlock Text="Mark Difference" FontWeight="DemiBold" FontSize="14" FontFamily="Segoe UI" Width="120" VerticalAlignment="Center"></TextBlock>
  204. <TextBlock Text="Old File" FontSize="14" FontFamily="Segoe UI" VerticalAlignment="Center" Margin="20,0,8,0"></TextBlock>
  205. <Rectangle Fill="Red" Margin="12,0,0,0" Name="OldColorRect" MouseLeftButtonDown="OldMarkColorRect_Click" Width="32" Height="16"
  206. StrokeThickness="1" Stroke="#1A000000"></Rectangle>
  207. <TextBlock Text="New File" FontSize="14" FontFamily="Segoe UI" VerticalAlignment="Center" Margin="20,0,8,0"></TextBlock>
  208. <Rectangle Fill="#2D77FA" Margin="12,0,0,0" Name="NewColorRect" MouseLeftButtonDown="NewMarkColorRect_Click" Width="32" Height="16"
  209. StrokeThickness="1" Stroke="#1A000000"></Rectangle>
  210. </StackPanel>
  211. <StackPanel Orientation="Horizontal">
  212. <TextBlock Text="Blend Mode" FontWeight="DemiBold" FontSize="14" FontFamily="Segoe UI" Width="120" VerticalAlignment="Center"></TextBlock>
  213. <ComboBox Style="{StaticResource ComboBoxStyle1}" Width="168" Height="32" Margin="20,0,8,0" SelectionChanged="Selector_OnSelectionChanged">
  214. <ComboBoxItem Content="Normal" IsSelected="True"></ComboBoxItem>
  215. <ComboBoxItem Content="Multiply"></ComboBoxItem>
  216. <ComboBoxItem Content="Screen"></ComboBoxItem>
  217. <ComboBoxItem Content="Overlay"></ComboBoxItem>
  218. <ComboBoxItem Content="Darken"></ComboBoxItem>
  219. <ComboBoxItem Content="Lighten"></ComboBoxItem>
  220. <ComboBoxItem Content="ColorDodge"></ComboBoxItem>
  221. <ComboBoxItem Content="ColorBurn"></ComboBoxItem>
  222. <ComboBoxItem Content="HardLight"></ComboBoxItem>
  223. <ComboBoxItem Content="SoftLight"></ComboBoxItem>
  224. <ComboBoxItem Content="Difference"></ComboBoxItem>
  225. <ComboBoxItem Content="Exclusion"></ComboBoxItem>
  226. <ComboBoxItem Content="Hue"></ComboBoxItem>
  227. <ComboBoxItem Content="Saturation"></ComboBoxItem>
  228. <ComboBoxItem Content="Color"></ComboBoxItem>
  229. <ComboBoxItem Content="Luminosity"></ComboBoxItem>
  230. </ComboBox>
  231. </StackPanel>
  232. </StackPanel>
  233. </GroupBox>
  234. </StackPanel>
  235. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal" Margin="18" VerticalAlignment="Bottom">
  236. <Button Width="112" Height="32" FontSize="14" FontFamily="Segoe UI" Click="CancleBtn_Click" Background="#E1E1E1" BorderBrush="#33000000" BorderThickness="1" Content="Cancel" MinWidth="120" Name="BtnCancle"></Button>
  237. <Button Width="112" Height="32" FontSize="14" FontFamily="Segoe UI" Click="CompareDocBtn_Click" Content="Compare" MinWidth="120" Background="#E1E1E1" BorderBrush="#FA477EDE" BorderThickness="1" Margin="10,0,18,0" Name="BtnCompare"></Button>
  238. </StackPanel>
  239. </Grid>
  240. <Grid x:Name="SelectFileBorder" Background="#20000000" Visibility="Collapsed">
  241. <Border VerticalAlignment="Center" HorizontalAlignment="Center" CornerRadius="5" Width="320" Height="168" BorderThickness="0.5" BorderBrush="Black" Background="#FCFDFF">
  242. <Border.Effect>
  243. <DropShadowEffect ShadowDepth="4" BlurRadius="10" Color="Black" Opacity="0.4"/>
  244. </Border.Effect>
  245. <Grid>
  246. <Grid.RowDefinitions>
  247. <RowDefinition Height="auto"></RowDefinition>
  248. <RowDefinition Height="*"></RowDefinition>
  249. <RowDefinition Height="auto"></RowDefinition>
  250. </Grid.RowDefinitions>
  251. <TextBlock FontSize="14" FontWeight="Bold" Margin="24,16,24,0" HorizontalAlignment="Left" FontFamily="Segoe UI" TextWrapping="WrapWithOverflow">Select File</TextBlock>
  252. <TextBlock Grid.Row="1" FontSize="14" Margin="24,16,24,0" HorizontalAlignment="Left" FontFamily="Segoe UI" TextWrapping="WrapWithOverflow"
  253. Text="Please select 2 files to compare"></TextBlock>
  254. <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="24,24,24,20">
  255. <Button Width="130" Padding="0,2,0,2" Background="#E1E1E1" BorderBrush="#33000000" BorderThickness="1" Click="SelectFileCancel_OnClick">Cancel</Button>
  256. <Button Width="130" Padding="0,2,0,2" Margin="10,0,0,0" Height="32" Foreground="White" Background="#1460F3"
  257. BorderThickness="1" Click="SelectFileCancel_OnClick">OK</Button>
  258. </StackPanel>
  259. </Grid>
  260. </Border>
  261. </Grid>
  262. <Grid x:Name="PageRangeBorder" Background="#20000000" Visibility="Collapsed">
  263. <Border VerticalAlignment="Center" HorizontalAlignment="Center" CornerRadius="5" Width="320" Height="168" BorderThickness="0.5" BorderBrush="Black" Background="#FCFDFF">
  264. <Border.Effect>
  265. <DropShadowEffect ShadowDepth="4" BlurRadius="10" Color="Black" Opacity="0.4"/>
  266. </Border.Effect>
  267. <Grid>
  268. <Grid.RowDefinitions>
  269. <RowDefinition Height="auto"></RowDefinition>
  270. <RowDefinition Height="*"></RowDefinition>
  271. <RowDefinition Height="auto"></RowDefinition>
  272. </Grid.RowDefinitions>
  273. <TextBlock FontSize="14" FontWeight="Bold" Margin="24,16,24,0" HorizontalAlignment="Left" FontFamily="Segoe UI" TextWrapping="WrapWithOverflow">Invalid Page Range</TextBlock>
  274. <TextBlock Grid.Row="1" FontSize="14" Margin="24,16,24,0" HorizontalAlignment="Left" FontFamily="Segoe UI" TextWrapping="WrapWithOverflow"
  275. Text="The page range that you selected is invalid. Please select again."></TextBlock>
  276. <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="24,24,24,20">
  277. <Button Width="130" Padding="0,2,0,2" Background="#E1E1E1" BorderBrush="#33000000" BorderThickness="1" Click="PageRangeCancel_OnClick">Cancel</Button>
  278. <Button Width="130" Padding="0,2,0,2" Margin="10,0,0,0" Height="32" Foreground="White" Background="#1460F3"
  279. BorderThickness="1" Click="PageRangeCancel_OnClick">OK</Button>
  280. </StackPanel>
  281. </Grid>
  282. </Border>
  283. </Grid>
  284. </Grid>
  285. </Window>