DynamicFormDesignLength.xaml 1.8 KB

12345678910111213141516171819202122232425262728293031
  1. <wpf:ThemableWindow x:Class="InABox.DynamicGrid.DynamicFormDesignLength"
  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:syncfusion="http://schemas.syncfusion.com/wpf"
  7. xmlns:wpf="clr-namespace:InABox.Wpf;assembly=InABox.Wpf"
  8. mc:Ignorable="d"
  9. Title="FormDesignerLength" Height="150" Width="300" Padding="5" WindowStartupLocation="CenterScreen">
  10. <Grid>
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition Width="Auto" />
  13. <ColumnDefinition Width="*" />
  14. </Grid.ColumnDefinitions>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="*" />
  17. <RowDefinition Height="*" />
  18. <RowDefinition Height="40" />
  19. </Grid.RowDefinitions>
  20. <Label Grid.Row="0" Grid.Column="0" Content="Type" Margin="5" />
  21. <ComboBox x:Name="Type" Grid.Row="0" Grid.Column="1" Margin="5" SelectedValuePath="Key"
  22. DisplayMemberPath="Value" SelectionChanged="Type_SelectionChanged" />
  23. <Label Grid.Row="1" Grid.Column="0" Content="Value" Margin="5" />
  24. <syncfusion:DoubleTextBox x:Name="Value" Grid.Row="1" Grid.Column="1" Margin="5" VerticalAlignment="Stretch" />
  25. <DockPanel Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3">
  26. <Button DockPanel.Dock="Right" Content="Cancel" Width="80" Margin="5" Click="CancelClick" />
  27. <Button DockPanel.Dock="Right" Content="OK" Width="80" Margin="5" Click="OKClick" />
  28. <Label DockPanel.Dock="Left" />
  29. </DockPanel>
  30. </Grid>
  31. </wpf:ThemableWindow>