SettingsDialog.xaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <Window x:Class="PDFViewer.SettingsDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:PDFViewer"
  7. mc:Ignorable="d"
  8. Title="Settings" Height="613" Width="418"
  9. ResizeMode="NoResize"
  10. Window.Loaded="SettingsDialog_Loaded">
  11. <Window.Resources>
  12. <ResourceDictionary>
  13. <ResourceDictionary.MergedDictionaries>
  14. <ResourceDictionary Source="pack://application:,,,/Compdfkit_Tools;component/Asset/Styles/ComboBoxStyle.xaml"></ResourceDictionary>
  15. </ResourceDictionary.MergedDictionaries>
  16. <DropShadowEffect x:Key="HoverThumbEffect" BlurRadius="5" ShadowDepth="0" Opacity="0.5" Color="RoyalBlue"/>
  17. <SolidColorBrush x:Key="SecundaryBackgroundColor" Color="#ffffff"></SolidColorBrush>
  18. <SolidColorBrush x:Key="PrimaryBlueColor" Color="#1772b4"></SolidColorBrush>
  19. <SolidColorBrush x:Key="PrimaryGrayColor" Color="#606060"></SolidColorBrush>
  20. <SolidColorBrush x:Key="SecundaryBlueColor" Color="#2983bb"></SolidColorBrush>
  21. <SolidColorBrush x:Key="SecundaryGrayColor" Color="#cecece"></SolidColorBrush>
  22. <SolidColorBrush x:Key="TertiaryBlueColor" Color="#c2d1fc"></SolidColorBrush>
  23. <Style x:Key="SliderSwitchToggleButtonStyle" TargetType="ToggleButton">
  24. <Setter Property="Background" Value="{StaticResource SecundaryGrayColor}" />
  25. <Setter Property="BorderBrush" Value="{StaticResource PrimaryGrayColor }" />
  26. <Setter Property="Height" Value="20" />
  27. <Setter Property="Width" Value="35" />
  28. <Setter Property="MaxHeight" Value="20" />
  29. <Setter Property="MaxWidth" Value="35" />
  30. <Setter Property="Template">
  31. <Setter.Value>
  32. <ControlTemplate TargetType="{x:Type ToggleButton}">
  33. <Grid>
  34. <Border x:Name="Border"
  35. Background="{TemplateBinding Background}"
  36. CornerRadius="7"
  37. Height="14"
  38. Width="35"
  39. VerticalAlignment="Center"
  40. HorizontalAlignment="Center">
  41. <Border.Effect>
  42. <DropShadowEffect ShadowDepth="0.5" Opacity="0.3" />
  43. </Border.Effect>
  44. </Border>
  45. <Ellipse x:Name="Ellipse"
  46. Fill="{DynamicResource SecundaryBackgroundColor}"
  47. Height="20"
  48. Width="20"
  49. Stroke="{TemplateBinding BorderBrush}"
  50. StrokeThickness="1"
  51. HorizontalAlignment="Left">
  52. <Ellipse.Effect>
  53. <DropShadowEffect ShadowDepth="0.5" Opacity="0.3" />
  54. </Ellipse.Effect>
  55. </Ellipse>
  56. </Grid>
  57. <ControlTemplate.Triggers>
  58. <Trigger Property="IsChecked" Value="True">
  59. <Setter TargetName="Ellipse" Property="Stroke" Value="{DynamicResource PrimaryBlueColor}" />
  60. <Setter TargetName="Border" Property="Background" Value="{DynamicResource TertiaryBlueColor}" />
  61. <Setter TargetName="Ellipse" Property="Margin" Value="15 0 0 0" />
  62. </Trigger>
  63. <Trigger Property="IsMouseOver" Value="True">
  64. <Setter TargetName="Ellipse" Property="Stroke" Value="{DynamicResource PrimaryBlueColor}" />
  65. <Setter Property="Effect" Value="{StaticResource HoverThumbEffect}"></Setter>
  66. </Trigger>
  67. </ControlTemplate.Triggers>
  68. </ControlTemplate>
  69. </Setter.Value>
  70. </Setter>
  71. </Style>
  72. <Style x:Key="UnderlinedButtonStyle" TargetType="Button">
  73. <EventSetter Event="Click" Handler="EventSetter_ClickHandler"/>
  74. <Setter Property="Background" Value="Transparent"/>
  75. <Setter Property="Foreground" Value="#1460F3"/>
  76. <Setter Property="BorderBrush" Value="Transparent"/>
  77. <Setter Property="FontFamily" Value="Segoe UI"></Setter>
  78. <Setter Property="Template">
  79. <Setter.Value>
  80. <ControlTemplate TargetType="Button">
  81. <Grid>
  82. <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="4"/>
  83. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  84. <Rectangle Fill="#1460F3" Height="1" VerticalAlignment="Bottom"/>
  85. </Grid>
  86. <ControlTemplate.Triggers>
  87. <Trigger Property="IsMouseOver" Value="True">
  88. <Setter Property="Cursor" Value="Hand" />
  89. </Trigger>
  90. </ControlTemplate.Triggers>
  91. </ControlTemplate>
  92. </Setter.Value>
  93. </Setter>
  94. </Style>
  95. </ResourceDictionary>
  96. </Window.Resources>
  97. <Grid Margin="24,0,24,0">
  98. <Grid.RowDefinitions>
  99. <RowDefinition Height="106"></RowDefinition>
  100. <RowDefinition Height="100"></RowDefinition>
  101. <RowDefinition Height="35"></RowDefinition>
  102. <RowDefinition Height="45"/>
  103. <RowDefinition Height="180"></RowDefinition>
  104. <RowDefinition Height="84"></RowDefinition>
  105. </Grid.RowDefinitions>
  106. <StackPanel Margin="10,10,0,0">
  107. <Grid Margin="0,10,0,8" Height="32">
  108. <TextBlock Text="Document Author" FontSize="14" FontWeight="DemiBold" FontFamily="Segoe UI" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBlock>
  109. <TextBox x:Name="AuthorTxb" Padding="5,0,5,0" TextChanged="AuthorTxb_TextChanged" HorizontalAlignment="Right" VerticalContentAlignment="Center" Width="130">
  110. </TextBox>
  111. </Grid>
  112. <Grid Height="32">
  113. <TextBlock Text="Language" FontSize="14" FontWeight="DemiBold" FontFamily="Segoe UI" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBlock>
  114. <ComboBox x:Name="LanguageCmb" SelectionChanged="LanguageCmb_SelectionChanged" Style="{StaticResource ComboBoxStyle1}" HorizontalAlignment="Right" Width="130">
  115. <ComboBoxItem></ComboBoxItem>
  116. <ComboBoxItem>English</ComboBoxItem>
  117. <ComboBoxItem>简体中文</ComboBoxItem>
  118. </ComboBox>
  119. </Grid>
  120. </StackPanel>
  121. <Border Grid.Row="1" BorderThickness="1" BorderBrush="#1A000000" Margin="0,0,0,10">
  122. <StackPanel Margin="10">
  123. <Grid Margin="0,0,0,8" Height="32">
  124. <TextBlock Text="Highlight Link area" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBlock>
  125. <ToggleButton x:Name="HighlightLinkTog" Click="HighlightLinkTog_Click" Style="{StaticResource SliderSwitchToggleButtonStyle}" Height="32" HorizontalAlignment="Right"></ToggleButton>
  126. </Grid>
  127. <Grid Margin="0,0,0,8" Height="32">
  128. <TextBlock Text="Highlight Form area" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBlock>
  129. <ToggleButton x:Name="HighlightFormTog" Click="HighlightFormTog_Click" Style="{StaticResource SliderSwitchToggleButtonStyle}" Height="32" HorizontalAlignment="Right"></ToggleButton>
  130. </Grid>
  131. </StackPanel>
  132. </Border>
  133. <TextBlock Text="Global setting" Background="White" Grid.Row="1" Height="20" Width="90" FontSize="14" HorizontalAlignment="Left" VerticalAlignment="Top" FontWeight="DemiBold" FontFamily="Segoe UI" Margin="10,-10,0,0"></TextBlock>
  134. <Border BorderBrush="#1A000000" BorderThickness="1" Grid.Row="2" Grid.RowSpan="2" Margin="0,10,0,10">
  135. <StackPanel Margin="10">
  136. <Grid Margin="0,0,0,8" Height="32">
  137. <TextBlock Text="Version" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBlock>
  138. <TextBlock HorizontalAlignment="Right" VerticalAlignment="Center" Text="V1.11.0"></TextBlock>
  139. </Grid>
  140. </StackPanel>
  141. </Border>
  142. <TextBlock Text="SDK Information" Grid.Row="2" Background="#ffffff" Height="20" Width="110" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="14" FontWeight="DemiBold" FontFamily="Segoe UI" Margin="10,0,0,0"></TextBlock>
  143. <Border BorderBrush="#1A000000" BorderThickness="1" Grid.Row="4" Margin="0,10,0,10">
  144. <StackPanel Margin="10">
  145. <Grid Margin="0,0,0,8" Height="20">
  146. <TextBlock Text="Website" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBlock>
  147. <Button Style="{StaticResource UnderlinedButtonStyle}" HorizontalAlignment="Right" Tag="https://www.compdf.com/" Content="https://www.compdf.com/"></Button>
  148. </Grid>
  149. <Grid Margin="0,0,0,8" Height="20">
  150. <TextBlock Text="About ComPDFKit" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBlock>
  151. <Button Style="{StaticResource UnderlinedButtonStyle}" Tag="https://www.compdf.com/company/about" Content="https://www.compdf.com/company/about" HorizontalAlignment="Right"></Button>
  152. </Grid>
  153. <Grid Margin="0,0,0,8" Height="20">
  154. <TextBlock Text="Contact Sales" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBlock>
  155. <Button Style="{StaticResource UnderlinedButtonStyle}" HorizontalAlignment="Right" Tag="https://www.compdf.com/contact-sales" Content="https://www.compdf.com/contact-sales"></Button>
  156. </Grid>
  157. <Grid Margin="0,0,0,8" Height="20">
  158. <TextBlock Text="Email Address" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBlock>
  159. <Button Style="{StaticResource UnderlinedButtonStyle}" HorizontalAlignment="Right" Tag="" Content="support@compdf.com"></Button>
  160. </Grid>
  161. <Grid Margin="0,0,0,8" Height="20">
  162. <TextBlock Text="Technical Support" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBlock>
  163. <Button Style="{StaticResource UnderlinedButtonStyle}" HorizontalAlignment="Right" Tag="https://www.compdf.com/support" Content="https://www.compdf.com/support"></Button>
  164. </Grid>
  165. </StackPanel>
  166. </Border>
  167. <TextBlock Text="Company Information" FontSize="14" Grid.Row="4" Background="#ffffff" Height="20" Width="140" HorizontalAlignment="Left" VerticalAlignment="Top" FontWeight="DemiBold" FontFamily="Segoe UI" Margin="10,0,0,8"></TextBlock>
  168. <Grid Grid.Row="5" Margin="0,0,0,40">
  169. <Grid.RowDefinitions>
  170. <RowDefinition Height="auto"></RowDefinition>
  171. <RowDefinition></RowDefinition>
  172. </Grid.RowDefinitions>
  173. <TextBlock Text="@ 2014-2023 PDF Technologies, Inc. All Rights Reserved." HorizontalAlignment="Center" Foreground="#999999" FontFamily="Segoe UI"></TextBlock>
  174. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Bottom" Grid.Row="2" Orientation="Horizontal">
  175. <Button Style="{StaticResource UnderlinedButtonStyle}" Tag="https://www.compdf.com/privacy-policy/" Content="Privacy Policy"></Button>
  176. <Rectangle Width="1" Height="15" Fill="#1A000000" Margin="10,0,10,0"></Rectangle>
  177. <Button Style="{StaticResource UnderlinedButtonStyle}" Tag="https://www.compdf.com/terms-of-service" Content="Terms of Service"></Button>
  178. </StackPanel>
  179. </Grid>
  180. </Grid>
  181. </Window>