TraditionLayout.xaml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <UserControl x:Class="Muchinfo.MTPClient.UI.Views.TraditionLayout"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:resources="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
  7. xmlns:views="clr-namespace:Muchinfo.MTPClient.UI.Views"
  8. xmlns:views1="clr-namespace:Muchinfo.MTPClient.Account.Views;assembly=Client.Account"
  9. xmlns:views2="clr-namespace:Muchinfo.MTPClient.Trade.Views;assembly=Client.Trade"
  10. d:DesignHeight="300"
  11. d:DesignWidth="300"
  12. mc:Ignorable="d">
  13. <UserControl.Resources>
  14. <BooleanToVisibilityConverter x:Key="ToVisibilityConverter" />
  15. </UserControl.Resources>
  16. <Grid x:Name="TraditionLayoutGrid" Background="{DynamicResource TreeBackground}">
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="1" />
  19. <RowDefinition Height="Auto" />
  20. <RowDefinition Height="1" />
  21. <RowDefinition Height="3*" MinHeight="300" />
  22. <RowDefinition />
  23. </Grid.RowDefinitions>
  24. <Separator Grid.Row="0"
  25. BorderBrush="{DynamicResource AccountInfoTopBorderBrush}"
  26. Style="{DynamicResource ThinSeparatorStyle}" />
  27. <Border Grid.Row="1"
  28. Grid.ColumnSpan="4"
  29. BorderBrush="{DynamicResource CommonBorderBrush}"
  30. BorderThickness="0,1,0,0">
  31. <views1:TradeHeaderView />
  32. </Border>
  33. <Separator Grid.Row="2"
  34. BorderBrush="{DynamicResource AccountInfoTopBorderBrush2}"
  35. Style="{DynamicResource ThinSeparatorStyle}" />
  36. <views:MainContent Grid.Row="3" Margin="0,0,0,1" />
  37. <GridSplitter Grid.Row="3"
  38. Height="1"
  39. HorizontalAlignment="Stretch"
  40. VerticalAlignment="Bottom"
  41. Background="{DynamicResource InnerBorderBrush}"
  42. Cursor="SizeNS"
  43. Focusable="False"
  44. PreviewStyle="{DynamicResource MainGridSplitterPreviewStyle}"
  45. ResizeBehavior="CurrentAndNext"
  46. ResizeDirection="Rows"
  47. ShowsPreview="True" />
  48. <!-- Cursor="{DynamicResource Cursor_Splitter_NS}" /> -->
  49. <Grid Grid.Row="4"
  50. VerticalAlignment="Stretch"
  51. Visibility="{Binding Home.IsTreeVbs,
  52. Source={StaticResource Locator},
  53. Converter={StaticResource ToVisibilityConverter}}">
  54. <Grid.RowDefinitions>
  55. <RowDefinition Height="*" />
  56. </Grid.RowDefinitions>
  57. <Grid.ColumnDefinitions>
  58. <ColumnDefinition Width="Auto" />
  59. <ColumnDefinition Width="Auto" />
  60. <ColumnDefinition Width="*" />
  61. </Grid.ColumnDefinitions>
  62. <views:SystemMenuTree x:Name="SystemMenuTree"
  63. Grid.Row="1"
  64. Grid.Column="0" />
  65. <ScrollViewer Grid.Row="1"
  66. Grid.Column="1"
  67. MinWidth="330"
  68. VerticalScrollBarVisibility="Auto">
  69. <Grid x:Name="OrderFrame"
  70. Margin="0,0, 0,10"
  71. VerticalAlignment="Top">
  72. <Grid.RowDefinitions>
  73. <RowDefinition />
  74. <RowDefinition />
  75. </Grid.RowDefinitions>
  76. <views2:OrderContent Margin="10,0,0,0"
  77. DataContext="{Binding TradeViewModel}"
  78. TraditionCommissionsHeight="320" />
  79. </Grid>
  80. </ScrollViewer>
  81. <GridSplitter Grid.Row="1"
  82. Grid.Column="1"
  83. Width="1"
  84. HorizontalAlignment="Right"
  85. VerticalAlignment="Stretch"
  86. Background="{DynamicResource InnerBorderBrush}"
  87. Cursor="SizeWE"
  88. Focusable="False"
  89. Grid.ZIndex="10"
  90. PreviewStyle="{DynamicResource MainGridSplitterPreviewStyle}"
  91. ResizeBehavior="CurrentAndNext"
  92. ResizeDirection="Rows"
  93. ShowsPreview="True" />
  94. <ContentControl Grid.Row="1"
  95. Grid.Column="2"
  96. VerticalAlignment="Stretch"
  97. Content="{Binding QueryView}" />
  98. </Grid>
  99. </Grid>
  100. </UserControl>