| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <UserControl x:Class="Muchinfo.MTPClient.UI.Views.TraditionLayout"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:resources="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
- xmlns:views="clr-namespace:Muchinfo.MTPClient.UI.Views"
- xmlns:views1="clr-namespace:Muchinfo.MTPClient.Account.Views;assembly=Client.Account"
- xmlns:views2="clr-namespace:Muchinfo.MTPClient.Trade.Views;assembly=Client.Trade"
- d:DesignHeight="300"
- d:DesignWidth="300"
- mc:Ignorable="d">
- <UserControl.Resources>
- <BooleanToVisibilityConverter x:Key="ToVisibilityConverter" />
- </UserControl.Resources>
- <Grid x:Name="TraditionLayoutGrid" Background="{DynamicResource TreeBackground}">
- <Grid.RowDefinitions>
- <RowDefinition Height="1" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="1" />
- <RowDefinition Height="3*" MinHeight="300" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Separator Grid.Row="0"
- BorderBrush="{DynamicResource AccountInfoTopBorderBrush}"
- Style="{DynamicResource ThinSeparatorStyle}" />
- <Border Grid.Row="1"
- Grid.ColumnSpan="4"
- BorderBrush="{DynamicResource CommonBorderBrush}"
- BorderThickness="0,1,0,0">
- <views1:TradeHeaderView />
- </Border>
- <Separator Grid.Row="2"
- BorderBrush="{DynamicResource AccountInfoTopBorderBrush2}"
- Style="{DynamicResource ThinSeparatorStyle}" />
- <views:MainContent Grid.Row="3" Margin="0,0,0,1" />
- <GridSplitter Grid.Row="3"
- Height="1"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Bottom"
- Background="{DynamicResource InnerBorderBrush}"
- Cursor="SizeNS"
- Focusable="False"
- PreviewStyle="{DynamicResource MainGridSplitterPreviewStyle}"
- ResizeBehavior="CurrentAndNext"
- ResizeDirection="Rows"
- ShowsPreview="True" />
- <!-- Cursor="{DynamicResource Cursor_Splitter_NS}" /> -->
- <Grid Grid.Row="4"
- VerticalAlignment="Stretch"
- Visibility="{Binding Home.IsTreeVbs,
- Source={StaticResource Locator},
- Converter={StaticResource ToVisibilityConverter}}">
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <views:SystemMenuTree x:Name="SystemMenuTree"
- Grid.Row="1"
- Grid.Column="0" />
- <ScrollViewer Grid.Row="1"
- Grid.Column="1"
- MinWidth="330"
- VerticalScrollBarVisibility="Auto">
- <Grid x:Name="OrderFrame"
- Margin="0,0, 0,10"
- VerticalAlignment="Top">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <views2:OrderContent Margin="10,0,0,0"
- DataContext="{Binding TradeViewModel}"
- TraditionCommissionsHeight="320" />
- </Grid>
- </ScrollViewer>
- <GridSplitter Grid.Row="1"
- Grid.Column="1"
- Width="1"
- HorizontalAlignment="Right"
- VerticalAlignment="Stretch"
- Background="{DynamicResource InnerBorderBrush}"
- Cursor="SizeWE"
- Focusable="False"
- Grid.ZIndex="10"
- PreviewStyle="{DynamicResource MainGridSplitterPreviewStyle}"
- ResizeBehavior="CurrentAndNext"
- ResizeDirection="Rows"
- ShowsPreview="True" />
- <ContentControl Grid.Row="1"
- Grid.Column="2"
- VerticalAlignment="Stretch"
- Content="{Binding QueryView}" />
- </Grid>
- </Grid>
- </UserControl>
|