NumberEdit.xaml 1.6 KB

1234567891011121314151617181920212223242526272829
  1. <wpf:ThemableWindow x:Class="InABox.WPF.NumberEdit"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  7. xmlns:wpf="clr-namespace:InABox.Wpf"
  8. mc:Ignorable="d"
  9. Title="NumberEdit" Height="200" Width="300">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="*" />
  13. <RowDefinition Height="40" />
  14. </Grid.RowDefinitions>
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition Width="Auto" />
  17. <ColumnDefinition Width="*" />
  18. <ColumnDefinition Width="80" />
  19. <ColumnDefinition Width="80" />
  20. </Grid.ColumnDefinitions>
  21. <Label x:Name="Label" Grid.Row="0" Grid.Column="0" Margin="10" HorizontalAlignment="Left"
  22. HorizontalContentAlignment="Left" VerticalAlignment="Stretch" VerticalContentAlignment="Center"
  23. Content="Enter Value" />
  24. <xctk:IntegerUpDown x:Name="Editor" Grid.Row="0" Grid.Column="1" Margin="20" Grid.ColumnSpan="3"
  25. HorizontalAlignment="Stretch" VerticalAlignment="Center" Value="0" TextAlignment="Center" />
  26. <Button x:Name="OK" Grid.Row="1" Grid.Column="2" Margin="5" Content="OK" Click="OK_Click" />
  27. <Button x:Name="Cancel" Grid.Row="1" Grid.Column="3" Margin="5" Content="Cancel" Click="Cancel_Click" />
  28. </Grid>
  29. </wpf:ThemableWindow>