NumericUpDown.xaml 1.6 KB

12345678910111213141516171819202122232425262728
  1. <UserControl x:Class="PDF_Office.CustomControl.NumericUpDown"
  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.CustomControl"
  7. mc:Ignorable="d"
  8. d:DesignHeight="40" d:DesignWidth="80">
  9. <Grid>
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition Width="4*"/>
  12. <ColumnDefinition Width="1*"/>
  13. </Grid.ColumnDefinitions>
  14. <TextBox Name="TextBox_Num" Grid.Column="0" Text="1" FontSize="20" TextAlignment="Center" MinWidth="80" MinHeight="20" VerticalContentAlignment="Center" />
  15. <Grid Grid.Column="1">
  16. <Grid.RowDefinitions>
  17. <RowDefinition/>
  18. <RowDefinition/>
  19. </Grid.RowDefinitions>
  20. <Button Name="Button_Add" Grid.Row="0" Click="Button_Add_Click" Background="White">
  21. <Path VerticalAlignment="Center" HorizontalAlignment="Center" Stroke="Black" Data="M0 8L4 1 L8 8" Height="10" Stretch="Fill" Visibility="{Binding CompressLargeStyle}"/>
  22. </Button>
  23. <Button Name="Button_Sub" Grid.Row="1" Click="Button_Sub_Click" Background="White">
  24. <Path VerticalAlignment="Center" HorizontalAlignment="Center" Stroke="Black" Data="M0 8L4 16 L8 8" Height="10" Stretch="Fill" Visibility="{Binding CompressLargeStyle}"/>
  25. </Button>
  26. </Grid>
  27. </Grid>
  28. </UserControl>