EmbeddedDynamicEditorForm.xaml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. OnCreateEditorControl="Editor_OnCreateEditorControl"/>
  43. <StackPanel
  44. Grid.Row="1"
  45. Grid.Column="0"
  46. HorizontalAlignment="Stretch"
  47. Orientation="Horizontal"
  48. Margin="0,5,0,0"
  49. Height="30"
  50. x:Name="Buttons"/>
  51. <Button
  52. x:Name="OKButton"
  53. Content="OK"
  54. Grid.Row="1"
  55. Grid.Column="1"
  56. Margin="5,5,0,0"
  57. BorderThickness="0.75"
  58. Click="OKButton_Click"/>
  59. <Button
  60. x:Name="CancelButton"
  61. Content="Cancel"
  62. Grid.Row="1"
  63. Grid.Column="2"
  64. Margin="5,5,0,0"
  65. Click="CancelButton_Click"/>
  66. </Grid>
  67. </UserControl>