| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- <UserControl x:Class="Muchinfo.MTPClient.UI.Views.MainContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:converters="clr-namespace:Muchinfo.MTPClient.Infrastructure.Converters;assembly=Client.Infrastructure"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
- xmlns:views="clr-namespace:Muchinfo.MTPClient.Trade.Views;assembly=Client.Trade"
- xmlns:views1="clr-namespace:Muchinfo.MTPClient.Quotation.Views"
- xmlns:views2="clr-namespace:Muchinfo.MTPClient.Analysis.Views;assembly=Client.Analysis"
- DataContext="{Binding MainContent,
- Source={StaticResource Locator}}"
- d:DesignHeight="300"
- d:DesignWidth="300"
- mc:Ignorable="d">
- <UserControl.Resources>
- <BooleanToVisibilityConverter x:Key="ToVisibilityConverter" />
- <converters:EnumBooleanConvert x:Key="EnumBooleanConvert" />
- <converters:BoolOpposedVisibility x:Key="BoolOpposedVisibilityConverter" />
- </UserControl.Resources>
- <Border>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <!-- 快速下单接口 -->
- <Border Grid.Column="0"
- Grid.ColumnSpan="2"
- BorderThickness="0,0,0,2"
- Visibility="Collapsed">
- <views:QuickOrderBar />
- </Border>
- <Border Grid.Row="1"
- Grid.Column="0"
- Width="22"
- Height="28"
- Margin="0,0"
- VerticalAlignment="Top"
- Visibility="{Binding RadioButtonVisibility,
- Mode=TwoWay}" />
- <StackPanel Grid.Row="1"
- Grid.Column="0"
- Width="22"
- HorizontalAlignment="Left"
- Panel.ZIndex="100"
- Background="Transparent"
- Orientation="Vertical">
- <RadioButton x:Name="QuoteRadioButton"
- Width="19"
- Height="90"
- Panel.ZIndex="10"
- Content="{x:Static resource:Client_Resource.UI2014_Views_Quotation}"
- IsChecked="{Binding TabContetMode,
- Converter={StaticResource EnumBooleanConvert},
- ConverterParameter=0}"
- Style="{DynamicResource NewVerTabStyle}" />
- <RadioButton x:Name="QuoteRadioButton2"
- Width="19"
- Height="90"
- Margin="0,-8,0,0"
- Panel.ZIndex="5"
- Content="{x:Static resource:Client_Resource.UI2014_Views_QuotationSenior}"
- IsChecked="{Binding TabContetMode,
- Converter={StaticResource EnumBooleanConvert},
- ConverterParameter=9}"
- Style="{DynamicResource NewVerTabStyle}"
- Visibility="{Binding IsShowQuoteBoard,
- Converter={StaticResource ToVisibilityConverter}}" />
- <RadioButton x:Name="CandelstickRadioButton"
- Width="19"
- Height="90"
- Margin="0,-8,0,0"
- Panel.ZIndex="4"
- Content="{x:Static resource:Client_Resource.UI2014_Views_KCandleStickCharts}"
- IsChecked="{Binding TabContetMode,
- Converter={StaticResource EnumBooleanConvert},
- ConverterParameter=1}"
- IsEnabled="{Binding IsChartEnable}"
- Style="{DynamicResource NewVerTabStyle}"
- Visibility="{Binding IsShowChart,
- Converter={StaticResource ToVisibilityConverter}}" />
-
- <RadioButton x:Name="GoodsInfoRadioButton"
- Width="19"
- Height="85"
- Margin="0,-8,0,0"
- Panel.ZIndex="3"
- Content="{x:Static resource:Client_Resource.MenuNamesGoodsInfo}"
- IsChecked="{Binding TabContetMode,
- Converter={StaticResource EnumBooleanConvert},
- ConverterParameter=4}"
- Style="{DynamicResource NewVerTabStyle}"
- Visibility="{Binding IsShowGoodsDetailInfo,
- Converter={StaticResource ToVisibilityConverter}}" />
-
- <RadioButton x:Name="ListingBoardButton"
- Width="19"
- Height="85"
- Margin="0,-8,0,0"
- Panel.ZIndex="3"
- Content="{x:Static resource:Client_Resource.ListingMarket_QuotePriceBoard}"
- IsChecked="{Binding TabContetMode,
- Converter={StaticResource EnumBooleanConvert},
- ConverterParameter=5}"
- Style="{DynamicResource NewVerTabStyle}"
- Visibility="{Binding IsShowListingBoard,
- Converter={StaticResource ToVisibilityConverter}}" />
- <!--五档历史-->
- <RadioButton x:Name="HistoryCommissions"
- Width="19"
- Height="85"
- Margin="0,-8,0,0"
- Panel.ZIndex="2"
- Content="报价大厅"
- IsChecked="{Binding TabContetMode,
- Converter={StaticResource EnumBooleanConvert},
- ConverterParameter=6}"
- Style="{DynamicResource NewVerTabStyle}"
- Visibility="{Binding IsVisHistoryCommissionsBtn}"
- />
- </StackPanel>
- <Line Grid.RowSpan="2"
- HorizontalAlignment="Right"
- VerticalAlignment="Stretch"
- Grid.ZIndex="1000"
- Stretch="Fill"
- Stroke="{DynamicResource InnerBorderBrush}"
- StrokeThickness="1"
- X1="0"
- X2="0"
- Y1="0"
- Y2="1" />
- <views1:QuoteListView x:Name="QuoteListView"
- Grid.Row="1"
- Grid.Column="1"
- Visibility="{Binding MainContent.IsVisibilityQuoteBorad,
- Source={StaticResource Locator}}" />
- <ContentControl x:Name="ChartContentControl"
- Grid.Row="1"
- Grid.Column="1"
- Content="{Binding Content}"
- Visibility="{Binding IsVisibilityKline}" />
- <ContentControl Grid.Row="1"
- Grid.Column="1"
- Content="{Binding GoodsInfoContent}"
- Visibility="{Binding IsVisibilityFten}" />
-
- <ContentControl Grid.Row="1"
- Grid.Column="1"
- Content="{Binding HistoryCmContent}"
- Visibility="{Binding IsVisibilityHistoryCommissions}" />
- </Grid>
- </Border>
- </UserControl>
|