VerticalLayout.xaml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <UserControl x:Class="Muchinfo.MTPClient.UI.Views.VerticalLayout"
  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:views="clr-namespace:Muchinfo.MTPClient.UI.Views"
  7. xmlns:views1="clr-namespace:Muchinfo.MTPClient.Account.Views;assembly=Client.Account"
  8. mc:Ignorable="d">
  9. <UserControl.Resources>
  10. <BooleanToVisibilityConverter x:Key="ToVisibilityConverter" />
  11. </UserControl.Resources>
  12. <Grid x:Name="VerticalLayoutGrid" Background="{DynamicResource TreeBackground}">
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="1" />
  15. <RowDefinition Height="Auto" />
  16. <RowDefinition Height="1" />
  17. <RowDefinition Height="3*" MinHeight="300" />
  18. <RowDefinition Height="2*" />
  19. </Grid.RowDefinitions>
  20. <Separator Grid.Row="0"
  21. BorderBrush="{DynamicResource AccountInfoTopBorderBrush}"
  22. Style="{DynamicResource ThinSeparatorStyle}" />
  23. <Border Grid.Row="1" Grid.ColumnSpan="2" BorderBrush="{DynamicResource CommonBorderBrush}"
  24. BorderThickness="0,1,0,0">
  25. <views1:TradeHeaderView />
  26. </Border>
  27. <Separator Grid.Row="2"
  28. BorderBrush="{DynamicResource AccountInfoTopBorderBrush2}"
  29. Style="{DynamicResource ThinSeparatorStyle}" />
  30. <views:MainContent Grid.Row="3" Margin="0,0,0,1" />
  31. <GridSplitter Grid.Row="3"
  32. Height="1"
  33. HorizontalAlignment="Stretch"
  34. Background="{DynamicResource InnerBorderBrush}"
  35. Cursor="SizeNS"
  36. Focusable="False"
  37. VerticalAlignment="Bottom"
  38. ResizeBehavior="CurrentAndNext"
  39. ResizeDirection="Rows"
  40. PreviewStyle="{DynamicResource MainGridSplitterPreviewStyle}"
  41. ShowsPreview="True" />
  42. <!-- Cursor="{DynamicResource Cursor_Splitter_NS}" /> -->
  43. <Grid Grid.Row="4"
  44. VerticalAlignment="Stretch"
  45. Visibility="{Binding Home.IsTreeVbs,
  46. Source={StaticResource Locator},
  47. Converter={StaticResource ToVisibilityConverter}}">
  48. <Grid.ColumnDefinitions>
  49. <ColumnDefinition Width="Auto" />
  50. <ColumnDefinition Width="*" />
  51. </Grid.ColumnDefinitions>
  52. <views:SystemMenuTree x:Name="SystemMenuTree" Grid.Column="0" />
  53. <ContentControl Grid.Column="1" Content="{Binding QueryView}" VerticalAlignment="Stretch"/>
  54. </Grid>
  55. </Grid>
  56. </UserControl>