CPDFFontUI.xaml 1.9 KB

123456789101112131415161718192021222324252627282930
  1. <UserControl x:Class="compdfkit_tools.Common.CPDFFontUI"
  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_tools.Common"
  7. mc:Ignorable="d"
  8. d:DesignHeight="80" d:DesignWidth="300">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition></RowDefinition>
  12. <RowDefinition></RowDefinition>
  13. <RowDefinition></RowDefinition>
  14. </Grid.RowDefinitions>
  15. <ComboBox x:Name="FontFamilyComboBox" SelectionChanged="FontFamilyComboBox_SelectionChanged"> </ComboBox>
  16. <Grid Grid.Row="1">
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition Width="2*"></ColumnDefinition>
  19. <ColumnDefinition></ColumnDefinition>
  20. </Grid.ColumnDefinitions>
  21. <ComboBox x:Name="FontStyleComboBox" SelectionChanged="FontStyleComboBox_SelectionChanged"></ComboBox>
  22. <local:DropDownNumberBoxControl x:Name="FontSizeComboBox" Maxium="100" Minimum="1" Grid.Column="1" Unit="pt" Text="{Binding FontSizeValue,Mode=TwoWay}"></local:DropDownNumberBoxControl>
  23. </Grid>
  24. <StackPanel Orientation="Horizontal" Grid.Row="2">
  25. <RadioButton x:Name="LeftAlignRadioButton" Content="Left" Tag="Left" IsChecked="True" Checked="AlignRadioButton_Checked"></RadioButton>
  26. <RadioButton x:Name="CenterAlignRadioButton" Content="Center" Tag="Center" Checked="AlignRadioButton_Checked"></RadioButton>
  27. <RadioButton x:Name="RightAlignRadioButton" Content="Right" Tag="Right" Checked="AlignRadioButton_Checked"></RadioButton>
  28. </StackPanel>
  29. </Grid>
  30. </UserControl>