EmbeddedDynamicEditorForm.xaml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. BorderBrush="DarkGreen"
  55. Background="LimeGreen"
  56. Foreground="White"
  57. FontWeight="Bold"/>
  58. <Button
  59. x:Name="CancelButton"
  60. Content="Cancel"
  61. Grid.Row="1"
  62. Grid.Column="2"
  63. Margin="0,5,5,5"
  64. Click="CancelButton_Click"
  65. BorderBrush="Firebrick"
  66. Background="Red"
  67. Foreground="White"
  68. FontWeight="Bold"/>
  69. </Grid>
  70. </UserControl>