SettingsDialog.xaml 12 KB

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