SupplierBillEditLayout.xaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <dynamicGrid:DynamicEditorGridLayout
  2. x:Class="PRSDesktop.SupplierBillEditLayout"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:PRSDesktop"
  8. xmlns:dynamicGrid="clr-namespace:InABox.DynamicGrid;assembly=InABox.Wpf"
  9. xmlns:sf="http://schemas.syncfusion.com/wpf"
  10. mc:Ignorable="d"
  11. d:DesignHeight="450" d:DesignWidth="800">
  12. <Grid DataContext="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type local:SupplierBillEditLayout}}}">
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="Auto"/>
  15. <RowDefinition Height="Auto"/>
  16. <RowDefinition Height="*"/>
  17. </Grid.RowDefinitions>
  18. <dynamicGrid:DynamicTabControl
  19. x:Name="Editors"
  20. Grid.Row="0"
  21. SelectionChanged="Editors_SelectionChanged"
  22. SeparatorMargin="4"/>
  23. <sf:SfGridSplitter
  24. Grid.Row="1"
  25. Height="4"
  26. HorizontalAlignment="Stretch"
  27. Background="Transparent"
  28. ResizeBehavior="PreviousAndNext"
  29. Template="{StaticResource HorizontalSplitter}"
  30. PreviewStyle="{StaticResource HorizontalSplitterPreview}"/>
  31. <dynamicGrid:DynamicTabControl
  32. x:Name="OtherPages"
  33. Grid.Row="2"
  34. Margin="0,0,0,0"
  35. SelectionChanged="Editors_SelectionChanged"
  36. TabStripPlacement="Bottom">
  37. <dynamicGrid:DynamicTabControl.RightPanel>
  38. <Border BorderThickness="0" HorizontalAlignment="Stretch" SizeChanged="DocumentWidthChanged">
  39. <ContentControl
  40. x:Name="DocumentControl"/>
  41. </Border>
  42. </dynamicGrid:DynamicTabControl.RightPanel>
  43. </dynamicGrid:DynamicTabControl>
  44. </Grid>
  45. </dynamicGrid:DynamicEditorGridLayout>