EmbeddedDynamicEditorForm.xaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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
  20. x:Name="Editor"
  21. Grid.Row="0"
  22. Grid.Column="0"
  23. Grid.ColumnSpan="3"
  24. Margin="5,5,5,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. <StackPanel
  42. Grid.Row="1"
  43. Grid.Column="0"
  44. HorizontalAlignment="Stretch"
  45. Orientation="Horizontal"
  46. x:Name="Buttons"/>
  47. <Button
  48. x:Name="OKButton"
  49. Content="OK"
  50. Grid.Row="1"
  51. Grid.Column="1"
  52. Margin="0,5,5,5"
  53. Click="OKButton_Click"/>
  54. <Button
  55. x:Name="CancelButton"
  56. Content="Cancel"
  57. Grid.Row="1"
  58. Grid.Column="2"
  59. Margin="0,5,5,5"
  60. Click="CancelButton_Click"/>
  61. </Grid>
  62. </UserControl>