EmbeddedDynamicEditorForm.xaml 2.7 KB

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