TextEditToolContent.xaml 1.7 KB

123456789101112131415161718192021222324252627
  1. <UserControl x:Class="PDF_Office.Views.Tools.TextEditToolContent"
  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:PDF_Office.Views.Tools"
  7. xmlns:prism="http://prismlibrary.com/"
  8. prism:ViewModelLocator.AutoWireViewModel="True"
  9. xmlns:customControl ="clr-namespace:PDF_Office.CustomControl"
  10. mc:Ignorable="d"
  11. d:DesignHeight="450" d:DesignWidth="800">
  12. <Grid >
  13. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  14. <customControl:CustomIconToggleBtn x:Name="BtnAddText" Tag="Text" Style="{StaticResource ToggleBtnViewModeStyle}" Foreground="Black" ContentStringFormat="156"
  15. Command="{Binding AddContentCommand}" CommandParameter="{Binding ElementName=BtnAddText}"
  16. >
  17. <TextBlock Text="添加文本"/>
  18. </customControl:CustomIconToggleBtn>
  19. <customControl:CustomIconToggleBtn x:Name="BtnAddImage" Tag="Image" Style="{StaticResource ToggleBtnViewModeStyle}" Foreground="Black" ContentStringFormat="156"
  20. Command="{Binding AddContentCommand}" CommandParameter="{Binding ElementName=BtnAddImage}"
  21. >
  22. <TextBlock Text="添加图像"/>
  23. </customControl:CustomIconToggleBtn>
  24. </StackPanel>
  25. </Grid>
  26. </UserControl>