MainContent.xaml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <UserControl x:Class="Muchinfo.MTPClient.UI.Views.MainContent"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:converters="clr-namespace:Muchinfo.MTPClient.Infrastructure.Converters;assembly=Client.Infrastructure"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
  8. xmlns:views="clr-namespace:Muchinfo.MTPClient.Trade.Views;assembly=Client.Trade"
  9. xmlns:views1="clr-namespace:Muchinfo.MTPClient.Quotation.Views"
  10. xmlns:views2="clr-namespace:Muchinfo.MTPClient.Analysis.Views;assembly=Client.Analysis"
  11. DataContext="{Binding MainContent,
  12. Source={StaticResource Locator}}"
  13. d:DesignHeight="300"
  14. d:DesignWidth="300"
  15. mc:Ignorable="d">
  16. <UserControl.Resources>
  17. <BooleanToVisibilityConverter x:Key="ToVisibilityConverter" />
  18. <converters:EnumBooleanConvert x:Key="EnumBooleanConvert" />
  19. <converters:BoolOpposedVisibility x:Key="BoolOpposedVisibilityConverter" />
  20. </UserControl.Resources>
  21. <Border>
  22. <Grid>
  23. <Grid.ColumnDefinitions>
  24. <ColumnDefinition Width="Auto" />
  25. <ColumnDefinition Width="*" />
  26. </Grid.ColumnDefinitions>
  27. <Grid.RowDefinitions>
  28. <RowDefinition Height="Auto" />
  29. <RowDefinition Height="*" />
  30. </Grid.RowDefinitions>
  31. <!-- 快速下单接口 -->
  32. <Border Grid.Column="0"
  33. Grid.ColumnSpan="2"
  34. BorderThickness="0,0,0,2"
  35. Visibility="Collapsed">
  36. <views:QuickOrderBar />
  37. </Border>
  38. <Border Grid.Row="1"
  39. Grid.Column="0"
  40. Width="22"
  41. Height="28"
  42. Margin="0,0"
  43. VerticalAlignment="Top"
  44. Visibility="{Binding RadioButtonVisibility,
  45. Mode=TwoWay}" />
  46. <StackPanel Grid.Row="1"
  47. Grid.Column="0"
  48. Width="22"
  49. HorizontalAlignment="Left"
  50. Panel.ZIndex="100"
  51. Background="Transparent"
  52. Orientation="Vertical">
  53. <RadioButton x:Name="QuoteRadioButton"
  54. Width="19"
  55. Height="90"
  56. Panel.ZIndex="10"
  57. Content="{x:Static resource:Client_Resource.UI2014_Views_Quotation}"
  58. IsChecked="{Binding TabContetMode,
  59. Converter={StaticResource EnumBooleanConvert},
  60. ConverterParameter=0}"
  61. Style="{DynamicResource NewVerTabStyle}" />
  62. <RadioButton x:Name="QuoteRadioButton2"
  63. Width="19"
  64. Height="90"
  65. Margin="0,-8,0,0"
  66. Panel.ZIndex="5"
  67. Content="{x:Static resource:Client_Resource.UI2014_Views_QuotationSenior}"
  68. IsChecked="{Binding TabContetMode,
  69. Converter={StaticResource EnumBooleanConvert},
  70. ConverterParameter=9}"
  71. Style="{DynamicResource NewVerTabStyle}"
  72. Visibility="{Binding IsShowQuoteBoard,
  73. Converter={StaticResource ToVisibilityConverter}}" />
  74. <RadioButton x:Name="CandelstickRadioButton"
  75. Width="19"
  76. Height="90"
  77. Margin="0,-8,0,0"
  78. Panel.ZIndex="4"
  79. Content="{x:Static resource:Client_Resource.UI2014_Views_KCandleStickCharts}"
  80. IsChecked="{Binding TabContetMode,
  81. Converter={StaticResource EnumBooleanConvert},
  82. ConverterParameter=1}"
  83. IsEnabled="{Binding IsChartEnable}"
  84. Style="{DynamicResource NewVerTabStyle}"
  85. Visibility="{Binding IsShowChart,
  86. Converter={StaticResource ToVisibilityConverter}}" />
  87. <RadioButton x:Name="GoodsInfoRadioButton"
  88. Width="19"
  89. Height="85"
  90. Margin="0,-8,0,0"
  91. Panel.ZIndex="3"
  92. Content="{x:Static resource:Client_Resource.MenuNamesGoodsInfo}"
  93. IsChecked="{Binding TabContetMode,
  94. Converter={StaticResource EnumBooleanConvert},
  95. ConverterParameter=4}"
  96. Style="{DynamicResource NewVerTabStyle}"
  97. Visibility="{Binding IsShowGoodsDetailInfo,
  98. Converter={StaticResource ToVisibilityConverter}}" />
  99. <RadioButton x:Name="ListingBoardButton"
  100. Width="19"
  101. Height="85"
  102. Margin="0,-8,0,0"
  103. Panel.ZIndex="3"
  104. Content="{x:Static resource:Client_Resource.ListingMarket_QuotePriceBoard}"
  105. IsChecked="{Binding TabContetMode,
  106. Converter={StaticResource EnumBooleanConvert},
  107. ConverterParameter=5}"
  108. Style="{DynamicResource NewVerTabStyle}"
  109. Visibility="{Binding IsShowListingBoard,
  110. Converter={StaticResource ToVisibilityConverter}}" />
  111. <!--五档历史-->
  112. <RadioButton x:Name="HistoryCommissions"
  113. Width="19"
  114. Height="85"
  115. Margin="0,-8,0,0"
  116. Panel.ZIndex="2"
  117. Content="报价大厅"
  118. IsChecked="{Binding TabContetMode,
  119. Converter={StaticResource EnumBooleanConvert},
  120. ConverterParameter=6}"
  121. Style="{DynamicResource NewVerTabStyle}"
  122. Visibility="{Binding IsVisHistoryCommissionsBtn}"
  123. />
  124. </StackPanel>
  125. <Line Grid.RowSpan="2"
  126. HorizontalAlignment="Right"
  127. VerticalAlignment="Stretch"
  128. Grid.ZIndex="1000"
  129. Stretch="Fill"
  130. Stroke="{DynamicResource InnerBorderBrush}"
  131. StrokeThickness="1"
  132. X1="0"
  133. X2="0"
  134. Y1="0"
  135. Y2="1" />
  136. <views1:QuoteListView x:Name="QuoteListView"
  137. Grid.Row="1"
  138. Grid.Column="1"
  139. Visibility="{Binding MainContent.IsVisibilityQuoteBorad,
  140. Source={StaticResource Locator}}" />
  141. <ContentControl x:Name="ChartContentControl"
  142. Grid.Row="1"
  143. Grid.Column="1"
  144. Content="{Binding Content}"
  145. Visibility="{Binding IsVisibilityKline}" />
  146. <ContentControl Grid.Row="1"
  147. Grid.Column="1"
  148. Content="{Binding GoodsInfoContent}"
  149. Visibility="{Binding IsVisibilityFten}" />
  150. <ContentControl Grid.Row="1"
  151. Grid.Column="1"
  152. Content="{Binding HistoryCmContent}"
  153. Visibility="{Binding IsVisibilityHistoryCommissions}" />
  154. </Grid>
  155. </Border>
  156. </UserControl>