TextEditToolContent.xaml 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <UserControl
  2. x:Class="PDF_Office.Views.Tools.TextEditToolContent"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:customControl="clr-namespace:PDF_Office.CustomControl"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:PDF_Office.Views.Tools"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:prism="http://prismlibrary.com/"
  10. Height="40"
  11. d:DesignHeight="450"
  12. d:DesignWidth="800"
  13. prism:ViewModelLocator.AutoWireViewModel="True"
  14. mc:Ignorable="d">
  15. <Grid>
  16. <Border BorderBrush="{StaticResource color.sys.layout.divider}" BorderThickness="0,1,0,1">
  17. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
  18. <customControl:CustomIconToggleBtn IsChecked="{Binding IsTextEdit}"
  19. x:Name="BtnAddText"
  20. Height="28"
  21. Padding="4,0"
  22. Command="{Binding AddContentCommand}"
  23. CommandParameter="{Binding ElementName=BtnAddText}"
  24. ContentStringFormat="156"
  25. Foreground="Black"
  26. Style="{StaticResource SubToolbarTgb}"
  27. Tag="Text">
  28. <StackPanel Orientation="Horizontal">
  29. <Path
  30. Width="20"
  31. Height="20"
  32. Data="M2 3C2 2.44772 2.44772 2 3 2H9H11H17C17.5523 2 18 2.44772 18 3V7H16V4H11L11 16H13V18H11H9H7V16H9L9 4H4V7H2V3Z"
  33. Fill="{StaticResource color.icon.base.brand}" />
  34. <TextBlock
  35. Margin="4,0,0,0"
  36. VerticalAlignment="Center"
  37. FontFamily="Segoe UI"
  38. FontSize="12"
  39. Foreground="{StaticResource color.icon.base.brand}"
  40. Text="Add Text" />
  41. </StackPanel>
  42. </customControl:CustomIconToggleBtn>
  43. <customControl:CustomIconToggleBtn IsChecked="{Binding IsImgEdit}"
  44. x:Name="BtnAddImage"
  45. Height="28"
  46. Margin="8,0"
  47. Padding="4,0"
  48. Command="{Binding AddContentCommand}"
  49. CommandParameter="{Binding ElementName=BtnAddImage}"
  50. ContentStringFormat="156"
  51. Foreground="{StaticResource color.icon.base.brand}"
  52. Style="{StaticResource SubToolbarTgb}"
  53. Tag="Image">
  54. <StackPanel Orientation="Horizontal">
  55. <Grid Width="20" Height="20">
  56. <Path Data="M17.5 4H2.5C2.22386 4 2 4.22386 2 4.5V15.5C2 15.7761 2.22386 16 2.5 16H17.5C17.7761 16 18 15.7761 18 15.5V4.5C18 4.22386 17.7761 4 17.5 4ZM2.5 2C1.11929 2 0 3.11929 0 4.5V15.5C0 16.8807 1.11929 18 2.5 18H17.5C18.8807 18 20 16.8807 20 15.5V4.5C20 3.11929 18.8807 2 17.5 2H2.5Z" Fill="{StaticResource color.icon.base.brand}" />
  57. <Path Data="M14.5 9C15.3284 9 16 8.32843 16 7.5C16 6.67157 15.3284 6 14.5 6C13.6716 6 13 6.67157 13 7.5C13 8.32843 13.6716 9 14.5 9ZM7.33654 8.21171L4.09402 13.1639C3.86307 13.5131 4.08478 14.0104 4.46354 13.9998H15.5399C15.9186 13.9998 16.1403 13.4919 15.9001 13.1427L13.5999 9.75662C13.4151 9.49208 13.0641 9.4815 12.8793 9.74604L10.9393 11.4232L8.07558 8.20113C7.88158 7.92601 7.5213 7.93659 7.33654 8.21171Z" Fill="{StaticResource color.icon.base.neutral.norm.lv2}" />
  58. </Grid>
  59. <TextBlock
  60. Margin="4,0,0,0"
  61. FontFamily="Segoe UI"
  62. FontSize="12"
  63. VerticalAlignment="Center"
  64. Text="Add Image" />
  65. </StackPanel>
  66. </customControl:CustomIconToggleBtn>
  67. </StackPanel>
  68. </Border>
  69. </Grid>
  70. </UserControl>