DynamicEditFormWindow.xaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <local:DynamicFormWindow x:Class="InABox.DynamicGrid.DynamicFormEditWindow"
  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:local="clr-namespace:InABox.DynamicGrid"
  7. mc:Ignorable="d"
  8. Title="FormDesigner" Height="800" Width="1000" Padding="5"
  9. Closing="DynamicFormWindow_Closing">
  10. <Grid Margin="5">
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition Width="*" />
  13. </Grid.ColumnDefinitions>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="*" />
  16. <RowDefinition Height="Auto" />
  17. </Grid.RowDefinitions>
  18. <Border Grid.Row="0" Grid.Column="0" Margin="5" BorderBrush="Gray" BorderThickness="0.75" Background="Silver">
  19. <ScrollViewer>
  20. <local:DynamicFormDesignGrid x:Name="Preview" />
  21. </ScrollViewer>
  22. </Border>
  23. <DockPanel Grid.Row="1">
  24. <Button x:Name="CompleteForm" Content="Complete Form" Width="100" Height="35" Margin="5" Click="CompleteForm_Click" DockPanel.Dock="Right" />
  25. <Button x:Name="SaveForm" Content="Save Form" Width="80" Height="35" Margin="5" Click="SaveForm_Click" DockPanel.Dock="Right" />
  26. <Button x:Name="CloseForm" Content="Close" Width="80" Height="35" Margin="5" Click="Cancel_Click" DockPanel.Dock="Left"/>
  27. <Label x:Name="CompletedDate" DockPanel.Dock="Left"
  28. HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
  29. <!--CheckBox x:Name="Complete" IsThreeState="False" Margin="5" DockPanel.Dock="Left"
  30. VerticalContentAlignment="Center" Content="Complete?" Visibility="Collapsed"/-->
  31. </DockPanel>
  32. </Grid>
  33. </local:DynamicFormWindow>