CPDFDrawModeUI.xaml 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <UserControl x:Class="Compdfkit_Tools.PDFControlUI.CPDFDrawModeUI"
  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:common="clr-namespace:Compdfkit_Tools.Common"
  7. mc:Ignorable="d"
  8. d:DesignHeight="30" d:DesignWidth="210">
  9. <UserControl.Resources>
  10. <ResourceDictionary>
  11. <ResourceDictionary.MergedDictionaries>
  12. <ResourceDictionary Source="../../../Asset/Styles/ButtonStyle.xaml"></ResourceDictionary>
  13. <ResourceDictionary Source="../../../Asset/Styles/ToggleButtonStyle.xaml"></ResourceDictionary>
  14. </ResourceDictionary.MergedDictionaries>
  15. <common:CommonResourceConverter x:Key="CommonResourceConverter" />
  16. </ResourceDictionary>
  17. </UserControl.Resources>
  18. <Grid>
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="auto"></RowDefinition>
  21. <RowDefinition Height="auto"></RowDefinition>
  22. </Grid.RowDefinitions>
  23. <TextBlock Foreground="#43474D" FontSize="14" LineHeight="16" Margin="0,0,0,18"
  24. Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Title_Themes}"></TextBlock>
  25. <StackPanel Grid.Row="1" Orientation="Horizontal">
  26. <Button BorderThickness="0" Background="Transparent" Style="{StaticResource RoundButtonStyle}" Click="DrawModeNormal_Click">
  27. <Button.Content>
  28. <Ellipse Name="NormalTheme" Fill="White" Width="24" Height="24" StrokeThickness="1" Stroke="#E2E3E6"></Ellipse>
  29. </Button.Content>
  30. </Button>
  31. <Button BorderThickness="0" Background="Transparent" Margin="12,0,0,0" Style="{StaticResource RoundButtonStyle}" Click="DrawModeSoft_Click">
  32. <Button.Content>
  33. <Ellipse Name="SoftTheme" Fill="#EEE8D8" Width="24" Height="24" StrokeThickness="1" Stroke="#E2E3E6"></Ellipse>
  34. </Button.Content>
  35. </Button>
  36. <Button BorderThickness="0" Background="Transparent" Margin="12,0,0,0" Style="{StaticResource RoundButtonStyle}" Click="DrawModeDark_Click">
  37. <Button.Content>
  38. <Ellipse Name="DarkTheme" Fill="Black" Width="24" Height="24" StrokeThickness="1" Stroke="#E2E3E6"></Ellipse>
  39. </Button.Content>
  40. </Button>
  41. <Button BorderThickness="0" Background="Transparent" Margin="12,0,0,0" Style="{StaticResource RoundButtonStyle}" Click="DrawModeGreen_Click">
  42. <Button.Content>
  43. <Ellipse Name="GreenTheme" Fill="#99CFA1" Width="24" Height="24" StrokeThickness="1" Stroke="#E2E3E6"></Ellipse>
  44. </Button.Content>
  45. </Button>
  46. <Button BorderThickness="0" Background="Transparent" Margin="12,0,0,0" Style="{StaticResource RoundButtonStyle}" Click="DrawModeOrange_Click">
  47. <Button.Content>
  48. <Ellipse Name="OrangeTheme" Fill="#FFE390" Width="24" Height="24" StrokeThickness="1" Stroke="#E2E3E6"></Ellipse>
  49. </Button.Content>
  50. </Button>
  51. <Button BorderThickness="0" Background="Transparent" Margin="12,0,0,0" Style="{StaticResource RoundButtonStyle}" Click="DrawModeLightBlue_Click">
  52. <Button.Content>
  53. <Ellipse Name="LightBlueTheme" Fill="#C1E6FF" Width="24" Height="24" StrokeThickness="1" Stroke="#E2E3E6"></Ellipse>
  54. </Button.Content>
  55. </Button>
  56. </StackPanel>
  57. </Grid>
  58. </UserControl>