CPDFScalingUI.xaml 1.6 KB

123456789101112131415161718192021222324252627
  1. <UserControl x:Class="compdfkit_tools.PDFControlUI.CPDFScalingUI"
  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.PDFControlUI"
  7. xmlns:cpdfcommon="clr-namespace:compdfkit_tools.Common"
  8. mc:Ignorable="d"
  9. d:DesignHeight="30" d:DesignWidth="150">
  10. <Grid Height="30" Width="150" >
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition Width="6*"></ColumnDefinition>
  13. <ColumnDefinition Width="4*"></ColumnDefinition>
  14. </Grid.ColumnDefinitions>
  15. <StackPanel Orientation="Horizontal" Height="30">
  16. <cpdfcommon:DropDownNumberBoxControl x:Name="DropDownNumberBoxControl" Height="30" Width=" 85" Unit="%" Maxium="1600" Minimum="0" Text="{Binding Scale,Mode=TwoWay}"></cpdfcommon:DropDownNumberBoxControl>
  17. </StackPanel>
  18. <StackPanel Grid.Column="1" Orientation="Horizontal">
  19. <Button x:Name="ScaleDecreaseButton" Height="30" Width="30" Click="ScaleDecreaseButton_Click">
  20. <TextBlock Text="-"></TextBlock>
  21. </Button>
  22. <Button x:Name="ScaleIncreaseButton" Height="30" Width="30" Click="ScaleIncreaseButton_Click">
  23. <TextBlock Text="+"></TextBlock>
  24. </Button>
  25. </StackPanel>
  26. </Grid>
  27. </UserControl>