CPDFTextAlignUI.xaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <UserControl x:Class="ComPDFKit.Controls.Edit.CPDFTextAlignUI"
  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.Edit"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800">
  9. <UserControl.Resources>
  10. <ResourceDictionary>
  11. <ResourceDictionary.MergedDictionaries>
  12. <ResourceDictionary Source="../../../Asset/Styles/ToggleButtonStyle.xaml"></ResourceDictionary>
  13. <ResourceDictionary Source="../../../Asset/Styles/ButtonStyle.xaml"></ResourceDictionary>
  14. </ResourceDictionary.MergedDictionaries>
  15. </ResourceDictionary>
  16. </UserControl.Resources>
  17. <Border BorderBrush="#E2E3E6" BorderThickness="1">
  18. <StackPanel Name="AlignPanel" Orientation="Horizontal">
  19. <ToggleButton Name="AlignLeftBtn" Width="50" Height="30" BorderThickness="0" Tag="AlignLeft" Style="{StaticResource ToggleButtonStyle}" Click="TextAlignBtn_Click"
  20. Background="White">
  21. <ToggleButton.Content>
  22. <Path Name="AlignLeftPath" Fill="Black">
  23. <Path.Data>
  24. M13 4V3H0V4H13ZM16 8V7H0V8H16ZM10 11V12H0V11H10Z
  25. </Path.Data>
  26. </Path>
  27. </ToggleButton.Content>
  28. </ToggleButton>
  29. <Line X1="0" Y1="8" X2="0" Y2="22" Stroke="#E2E3E6" StrokeThickness="1"></Line>
  30. <ToggleButton Name="AlignCenterBtn" Width="50" Height="30" BorderThickness="0" Tag="AlignCenter" Style="{StaticResource ToggleButtonStyle}" Click="TextAlignBtn_Click"
  31. Background="White">
  32. <ToggleButton.Content>
  33. <Path Name="AlignCenterPath" Fill="Black">
  34. <Path.Data>
  35. M16.6665 4V3H0.666504V4H16.6665ZM16.6665 12V11H0.666504V12H16.6665ZM13.6665 7V8H3.6665V7H13.6665Z
  36. </Path.Data>
  37. </Path>
  38. </ToggleButton.Content>
  39. </ToggleButton>
  40. <Line X1="0" Y1="8" X2="0" Y2="22" Stroke="#E2E3E6" StrokeThickness="1"></Line>
  41. <ToggleButton Name="AlignRightBtn" Width="50" Height="30" BorderThickness="0" Tag="AlignRight" Style="{StaticResource ToggleButtonStyle}" Click="TextAlignBtn_Click"
  42. Background="White">
  43. <ToggleButton.Content>
  44. <Path Name="AlignRightPath" Fill="Black">
  45. <Path.Data>
  46. M16.3335 4V3H3.33429V4H16.3335ZM16.3335 8V7H0.334473V8H16.3335ZM16.3335 11V12H6.33411V11H16.3335Z
  47. </Path.Data>
  48. </Path>
  49. </ToggleButton.Content>
  50. </ToggleButton>
  51. </StackPanel>
  52. </Border>
  53. </UserControl>