EmbeddedDynamicEditorForm.xaml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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="Auto" x:Name="ButtonRow"/>
  18. </Grid.RowDefinitions>
  19. <local:DynamicEditorGrid
  20. x:Name="Editor"
  21. Grid.Row="0"
  22. Grid.Column="0"
  23. Grid.ColumnSpan="3"
  24. Margin="0"
  25. HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
  26. OnCustomiseColumns="Editor_OnCustomiseColumns"
  27. OnDefineFilter="Editor_OnDefineFilter"
  28. OnEditorCreated="Editor_OnEditorCreated"
  29. OnSelectPage="Editor_OnSelectPage"
  30. OnUnloadPage="Editor_OnUnloadPage"
  31. OnAfterEditorValueChanged="Editor_OnAfterEditorValueChanged"
  32. OnReconfigureEditors="Editor_OnReconfigureEditors"
  33. OnGridCustomiseEditor="Editor_OnGridCustomiseEditor"
  34. OnGetSequence="Editor_OnGetSequence"
  35. OnEditorValueChanged="Editor_OnEditorValueChanged"
  36. OnDefineLookups="Editor_OnDefineLookups"
  37. GetItems="Editor_GetItems"
  38. OnGetEditor="Editor_OnGetEditor"
  39. OnGetPropertyValue="Editor_OnGetPropertyValue"
  40. OnSetPropertyValue="Editor_OnSetPropertyValue"
  41. OnReload="Editor_OnReload"/>
  42. <StackPanel
  43. Grid.Row="1"
  44. Grid.Column="0"
  45. HorizontalAlignment="Stretch"
  46. Orientation="Horizontal"
  47. Margin="0,5,0,0"
  48. Height="30"
  49. x:Name="Buttons"/>
  50. <Button
  51. x:Name="OKButton"
  52. Content="OK"
  53. Grid.Row="1"
  54. Grid.Column="1"
  55. Margin="5,5,0,0"
  56. BorderThickness="0.75"
  57. Click="OKButton_Click"/>
  58. <Button
  59. x:Name="CancelButton"
  60. Content="Cancel"
  61. Grid.Row="1"
  62. Grid.Column="2"
  63. Margin="5,5,0,0"
  64. Click="CancelButton_Click"/>
  65. </Grid>
  66. </UserControl>