EmbeddedDynamicEditorForm.xaml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 x:Name="Editor"
  20. Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Margin="5,5,5,0"
  21. HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
  22. OnCustomiseColumns="Editor_OnCustomiseColumns"
  23. OnDefineFilter="Editor_OnDefineFilter"
  24. OnEditorCreated="Editor_OnEditorCreated"
  25. OnSelectPage="Editor_OnSelectPage"
  26. OnUnloadPage="Editor_OnUnloadPage"
  27. OnAfterEditorValueChanged="Editor_OnAfterEditorValueChanged"
  28. OnReconfigureEditors="Editor_OnReconfigureEditors"
  29. OnGridCustomiseEditor="Editor_OnGridCustomiseEditor"
  30. OnGetSequence="Editor_OnGetSequence"
  31. OnEditorValueChanged="EditorValueChanged"
  32. OnDefineLookups="Editor_OnDefineLookups"
  33. OnGetDocument="Editor_OnGetDocument" OnFindDocument="Editor_OnFindDocument" OnSaveDocument="Editor_OnSaveDocument"
  34. GetItems="Editor_GetItems"
  35. OnGetEditor="Editor_OnGetEditor"
  36. OnGetPropertyValue="Editor_OnGetPropertyValue"
  37. OnSetPropertyValue="Editor_OnSetPropertyValue"/>
  38. <StackPanel Grid.Row="1" Grid.Column="0" HorizontalAlignment="Stretch" Orientation="Horizontal"
  39. x:Name="Buttons">
  40. <!--<Button x:Name="ShowHelp" Content="Help" HorizontalAlignment="Left" Width="80" Grid.Row="2" Grid.Column="0" Margin="5,5,5,5" Click="ShowHelp_Click"/>-->
  41. </StackPanel>
  42. <Button x:Name="OKButton" Content="OK" Grid.Row="1" Grid.Column="1" Margin="0,5,5,5" Click="OKButton_Click" />
  43. <Button x:Name="CancelButton" Content="Cancel" Grid.Row="1" Grid.Column="2" Margin="0,5,5,5"
  44. Click="CancelButton_Click" />
  45. </Grid>
  46. </UserControl>