EmbeddedDynamicEditorForm.xaml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <UserControl x:Class="InABox.DynamicGrid.EmbeddedDynamicEditorForm"
  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:InABox.DynamicGrid"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800">
  9. <Grid x:Name="LayoutGrid">
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition Width="*" />
  12. <ColumnDefinition Width="80" />
  13. <ColumnDefinition Width="80" />
  14. </Grid.ColumnDefinitions>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="*" />
  17. <RowDefinition Height="40" x:Name="ButtonRow"/>
  18. </Grid.RowDefinitions>
  19. <local:DynamicEditorGrid x:Name="Editor"
  20. Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Margin="5,5,5,0"
  21. HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
  22. OnCustomiseColumns="Editor_OnCustomiseColumns"
  23. OnDefineFilter="Editor_OnDefineFilter"
  24. OnEditorCreated="Editor_OnEditorCreated"
  25. OnSelectPage="Editor_OnSelectPage"
  26. OnUnloadPage="Editor_OnUnloadPage"
  27. OnAfterEditorValueChanged="Editor_OnAfterEditorValueChanged"
  28. OnReconfigureEditors="Editor_OnReconfigureEditors"
  29. OnGridCustomiseEditor="Editor_OnGridCustomiseEditor"
  30. OnGetSequence="Editor_OnGetSequence"
  31. OnEditorValueChanged="EditorValueChanged"
  32. OnDefineLookups="Editor_OnDefineLookups"
  33. GetItems="Editor_GetItems"
  34. OnGetEditor="Editor_OnGetEditor"
  35. OnGetPropertyValue="Editor_OnGetPropertyValue"
  36. OnSetPropertyValue="Editor_OnSetPropertyValue"/>
  37. <StackPanel Grid.Row="1" Grid.Column="0" HorizontalAlignment="Stretch" Orientation="Horizontal"
  38. x:Name="Buttons">
  39. <!--<Button x:Name="ShowHelp" Content="Help" HorizontalAlignment="Left" Width="80" Grid.Row="2" Grid.Column="0" Margin="5,5,5,5" Click="ShowHelp_Click"/>-->
  40. </StackPanel>
  41. <Button x:Name="OKButton" Content="OK" Grid.Row="1" Grid.Column="1" Margin="0,5,5,5" Click="OKButton_Click" />
  42. <Button x:Name="CancelButton" Content="Cancel" Grid.Row="1" Grid.Column="2" Margin="0,5,5,5"
  43. Click="CancelButton_Click" />
  44. </Grid>
  45. </UserControl>