| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340 |
- <UserControl x:Class="Muchinfo.MTPClient.Trade.Views.OrderContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:border="clr-namespace:Muchinfo.WPF.Controls.Border;assembly=Client.WPF.Controls"
- xmlns:controls="clr-namespace:Muchinfo.WPF.Controls;assembly=Client.WPF.Controls"
- xmlns:converters="clr-namespace:Muchinfo.MTPClient.Infrastructure.Converters;assembly=Client.Infrastructure"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:resources="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
- xmlns:utilities="clr-namespace:Muchinfo.MTPClient.Trade.Utilities"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
- xmlns:zoom="clr-namespace:Muchinfo.WPF.Controls.Zoom;assembly=Client.WPF.Controls"
- Background="Transparent"
- KeyUp="OrderContent_OnKeyUp"
- MouseDown="OrderContent_OnMouseDown"
- mc:Ignorable="d">
- <UserControl.Resources>
- <converters:BoolOpposedVisibility x:Key="BoolOpposedVisibility" />
- <converters:EnumBooleanConvert x:Key="EnumBooleanConvert" />
- <converters:EnumVisibilityConvert x:Key="EnumVisibilityConvert" />
- <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
- <Style TargetType="{x:Type TextBlock}">
- <Setter Property="HorizontalAlignment" Value="Right" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="Foreground" Value="{DynamicResource TextBlockForeground}" />
- </Style>
- <Style TargetType="{x:Type RadioButton}">
- <Setter Property="Foreground" Value="{DynamicResource MainForegroundBrush}" />
- </Style>
- <DataTemplate x:Key="TriggerTypeDatatTemplate">
- <TextBlock>
- <Run Text="{Binding Description}" />
- </TextBlock>
- </DataTemplate>
- <DataTemplate x:Key="GoodsDatatTemplate">
- <TextBlock>
- <Run Text="{Binding Name}" />
- <Run Text=" " />
- <Run Text="{Binding GoodsCode}" />
- </TextBlock>
- </DataTemplate>
- <DataTemplate x:Key="UserFundsTemplate">
- <TextBlock>
- <Run Text="{Binding AccountId}" />
- </TextBlock>
- </DataTemplate>
- </UserControl.Resources>
- <!--
- 动态绑定,这是这不好说,这个界面没有收到绑定数据的时候,是没有Visibility的效果的,
- 所以每次进入界面的时候,都是乱的,什么界面都显示,只能是viewModel加载后,我才能知道要显示那些东西了。
- 这里暂时隐藏吧。 ***********************调试界面的时候,打开这个Collapsed,发布的时候,记得加上************************
- -->
- <Grid x:Name="OrderContentArea" Visibility="Collapsed">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="33" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
- <TextBlock Grid.Row="0"
- Text="{x:Static resources:Client_Resource.Trade_Xaml_Accout_Title}"
- Visibility="Collapsed" />
- <TextBlock Grid.Row="0"
- Grid.Column="1"
- Margin="20,0,0,0"
- HorizontalAlignment="Left"
- TextTrimming="CharacterEllipsis"
- TextWrapping="NoWrap"
- Visibility="Collapsed">
- <Run Text="{Binding CurrentFunAccount, Mode=OneWay}" />
- <Run Text=" " />
- <Run Text="{Binding CurrentFunAccountNameFormat, Mode=OneWay}" ToolTip="{Binding CurrentFunAccountName}" />
- </TextBlock>
- <TextBlock Grid.Row="1" Text="{x:Static resources:Client_Resource.Trade_Xaml_Goods_Title}" />
- <ComboBox x:Name="goodsComBoxBox"
- Grid.Row="1"
- Grid.Column="1"
- Width="200"
- Height="22"
- Margin="20,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- IsEnabled="True"
- IsTextSearchCaseSensitive="True"
- IsTextSearchEnabled="True"
- ItemTemplate="{StaticResource GoodsDatatTemplate}"
- ItemsSource="{Binding GoodsList}"
- KeyUp="goodsComBoxBox_KeyUp"
- Padding="5"
- SelectedIndex="0"
- SelectedItem="{Binding CurrentGoods,
- Mode=TwoWay}"
- Style="{DynamicResource GoodsComboBoxStyle}"
- TabIndex="1" />
- <!--
- <Popup x:Name="GoodsPopup"
- Grid.Row="1"
- Grid.Column="1"
- Width="200"
- Height="200"
- PlacementTarget="{Binding ElementName=goodsComBoxBox}"
- StaysOpen="{Binding ElementName=goodsComBoxBox,
- Path=IsKeyboardFocused}">
- <Grid>
- <StackPanel>
- <ListBox x:Name="GoodsList"
- Background="Transparent"
- BorderThickness="0"
- ItemContainerStyle="{DynamicResource NoticeListBoxItemStyle}"
- ItemTemplate="{DynamicResource GoodsListItemViewTemplate}"
- ItemsSource="{Binding FilterQuoteGoodses}"
- ScrollViewer.HorizontalScrollBarVisibility="Disabled"
- SelectedItem="{Binding CurrentGoods}"
- SelectionMode="Single" />
- </StackPanel>
- </Grid>
- </Popup>
- -->
- <!-- Style="{DynamicResource SimpleComboBoxStyle}" -->
- <!-- 商品锁 -->
- <StackPanel Grid.Row="1"
- Grid.Column="2"
- MinWidth="50"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- Background="Transparent"
- Orientation="Horizontal"
- Visibility="{Binding ShowGoodsLock,
- Converter={StaticResource BooleanToVisibilityConverter}}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="MouseLeftButtonDown">
- <i:InvokeCommandAction Command="{Binding LockImageCommand}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- <Image Width="25"
- Height="25"
- Margin="1,0,0,0"
- Source="{DynamicResource GoodsLock}"
- Visibility="{Binding LockType,
- Converter={StaticResource EnumVisibilityConvert},
- ConverterParameter=0}" />
- <Image Width="32"
- Height="25"
- Source="{DynamicResource GoodsUnLock}"
- Visibility="{Binding LockType,
- Converter={StaticResource EnumVisibilityConvert},
- ConverterParameter=1}" />
- </StackPanel>
- <!-- 资金账户 -->
- <TextBlock Grid.Row="2"
- Text="资金账户"
- Visibility="{Binding TradeViewModel.IsShowUserMultFundsList}" />
- <utilities:FocusComboBox x:Name="MoneyComBoxBox"
- Grid.Row="2"
- Grid.Column="2"
- Width="200"
- Margin="20,5,0,5"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- ItemsSource="{Binding TradeViewModel.CurrentUserFundsList}"
- SelectedIndex="0"
- SelectedItem="{Binding TradeViewModel.CurrentSelectedFunds,
- Mode=TwoWay}"
- Style="{DynamicResource SimpleComboBoxStyle}"
- TabIndex="4"
- Visibility="{Binding TradeViewModel.IsShowUserMultFundsList}" />
- <StackPanel Grid.Row="3"
- Grid.Column="0"
- Grid.ColumnSpan="2"
- Margin="0"
- Orientation="Vertical">
- <!-- 方向 -->
- <StackPanel x:Name="direction"
- Margin="{Binding TradeViewModel.ShowMultUserFundsMargin}"
- Orientation="Horizontal">
- <TextBlock Grid.Row="3" Text="{x:Static resources:Client_Resource.EntrustOrderFrame_Direction}" />
- <StackPanel Grid.Row="3"
- Grid.Column="2"
- Height="33"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <RadioButton Margin="20,0,0,0"
- Content="{Binding TradeViewModel.BuyTitle}"
- IsChecked="{Binding TradeViewModel.Direction,
- ConverterParameter=0,
- Converter={StaticResource EnumBooleanConvert}}"
- IsEnabled="{Binding TradeViewModel.IsBuyEnable}"
- Style="{DynamicResource RadioButtonStyle}"
- TabIndex="2" />
- <RadioButton Margin="20,0,0,0"
- Content="{Binding TradeViewModel.SellTitle}"
- IsChecked="{Binding TradeViewModel.Direction,
- ConverterParameter=1,
- Converter={StaticResource EnumBooleanConvert}}"
- IsEnabled="{Binding TradeViewModel.IsSellEnable}"
- Style="{DynamicResource RadioButtonStyle}"
- TabIndex="3"
- Visibility="{Binding TradeViewModel.IsSellVsb,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- </StackPanel>
- </StackPanel>
- <StackPanel Margin="{Binding TradeViewModel.ShowMultUserFundsMargin}" Orientation="Horizontal">
- <!-- 类型 -->
- <TextBlock Grid.Row="3"
- Text="{x:Static resources:Client_Resource.EntrustOrderFrame_Type}"
- Visibility="{Binding TradeViewModel.IsOpenCloseVisible,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- <!-- 建仓,平仓,先平后建 -->
- <StackPanel Grid.Row="3"
- Grid.Column="1"
- Height="33"
- VerticalAlignment="Center"
- Orientation="Horizontal"
- Visibility="{Binding TradeViewModel.IsOpenCloseVisible,
- Converter={StaticResource BooleanToVisibilityConverter}}">
- <!-- 先平后建》注销 -->
- <!--
- <RadioButton x:Name="radCloseOpen"
- Margin="20,0,0,0"
- Content="{x:Static resources:Client_Resource.EntrustOrderFrame_CloseToOpen}"
- IsChecked="{Binding TradeViewModel.OpenCloseMode,
- ConverterParameter=3,
- Converter={StaticResource EnumBooleanConvert}}"
- IsEnabled="{Binding TradeViewModel.IsOpenCloseEdit}"
- Style="{DynamicResource RadioButtonStyle}"
- TabIndex="21"
- Visibility="{Binding TradeViewModel.IsCloseOpenVbs,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- -->
- <RadioButton x:Name="radOpen"
- Margin="20,0,0,0"
- Command="{Binding TradeViewModel.SelectOpenCloseCommand}"
- CommandParameter="1"
- Content="{x:Static resources:Client_Resource.EntrustOrderFrame_Open}"
- IsChecked="{Binding TradeViewModel.OpenCloseMode,
- ConverterParameter=1,
- Converter={StaticResource EnumBooleanConvert}}"
- IsEnabled="{Binding TradeViewModel.IsEnableSelectOpenMode}"
- Style="{DynamicResource RadioButtonStyle}"
- TabIndex="22"
- Visibility="{Binding TradeViewModel.IsEnableSelectOpenMode,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- <RadioButton x:Name="radClose"
- Margin="20,0,0,0"
- Command="{Binding TradeViewModel.SelectOpenCloseCommand}"
- CommandParameter="2"
- Content="{x:Static resources:Client_Resource.EntrustOrderFrame_Close}"
- IsChecked="{Binding TradeViewModel.OpenCloseMode,
- ConverterParameter=2,
- Converter={StaticResource EnumBooleanConvert}}"
- IsEnabled="{Binding TradeViewModel.IsCloseEnable}"
- Style="{DynamicResource RadioButtonStyle}"
- TabIndex="23"
- Visibility="{Binding TradeViewModel.IsCloseEnable,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- <RadioButton x:Name="autoOpenClose"
- Margin="20,0,0,0"
- Command="{Binding TradeViewModel.SelectOpenCloseCommand}"
- CommandParameter="3"
- Content="{x:Static resources:Client_Resource.EntrustOrderFrame_Auto_Open_Close}"
- IsChecked="{Binding TradeViewModel.OpenCloseMode,
- ConverterParameter=3,
- Converter={StaticResource EnumBooleanConvert}}"
- IsEnabled="{Binding TradeViewModel.ShowOpenCloseOrder}"
- Style="{DynamicResource RadioButtonStyle}"
- TabIndex="24"
- Visibility="{Binding TradeViewModel.ShowOpenCloseOrder,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- </StackPanel>
- </StackPanel>
- <!-- 点选类型 -->
- <StackPanel Orientation="Horizontal">
- <TextBlock Grid.Row="5"
- Text="点选类型"
- Visibility="{Binding TradeViewModel.IsVisibility_Listing}" />
- <!-- 挂牌1,摘牌2,先摘后挂3 -->
- <StackPanel Grid.Row="5"
- Grid.Column="1"
- Height="33"
- VerticalAlignment="Center"
- Orientation="Horizontal"
- Visibility="{Binding TradeViewModel.IsVisibility_Listing}">
- <RadioButton x:Name="rad_LISTING"
- Margin="20,0,0,0"
- Content="挂牌"
- IsChecked="{Binding TradeViewModel.ListingSelectModel,
- ConverterParameter=1,
- Converter={StaticResource EnumBooleanConvert}}"
- Style="{DynamicResource RadioButtonStyle}" />
- <RadioButton x:Name="rad_DELISTING"
- Margin="20,0"
- Content="摘牌"
- IsChecked="{Binding TradeViewModel.ListingSelectModel,
- ConverterParameter=2,
- Converter={StaticResource EnumBooleanConvert}}"
- Style="{DynamicResource RadioButtonStyle}" />
- <RadioButton x:Name="rad_DELISTINGTHENLISTING"
- Content="先摘后挂"
- IsChecked="{Binding TradeViewModel.ListingSelectModel,
- ConverterParameter=3,
- Converter={StaticResource EnumBooleanConvert}}"
- Style="{DynamicResource RadioButtonStyle}" />
- </StackPanel>
- </StackPanel>
- <!-- 摘牌类型 -->
- <StackPanel Orientation="Horizontal" Visibility="{Binding TradeViewModel.IsVisibility_DelistingModel, Converter={StaticResource BooleanToVisibilityConverter}}">
- <TextBlock Grid.Row="6" Text="摘牌类型" />
- <!-- 价格最优1,点选成交2 -->
- <StackPanel Grid.Row="6"
- Grid.Column="1"
- Height="33"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <RadioButton x:Name="rad_DELISTINGTYPE_PRICE"
- Margin="20,0,0,0"
- Content="价格最优"
- IsChecked="{Binding TradeViewModel.DelistingModel,
- ConverterParameter=1,
- Converter={StaticResource EnumBooleanConvert}}"
- Style="{DynamicResource RadioButtonStyle}" />
- <RadioButton x:Name="rad_DELISTINGTYPE_SELECTED"
- Margin="20,0"
- Content="点选成交"
- IsChecked="{Binding TradeViewModel.DelistingModel,
- ConverterParameter=2,
- Converter={StaticResource EnumBooleanConvert}}"
- Style="{DynamicResource RadioButtonStyle}"
- Visibility="{Binding TradeViewModel.IsVisibility_ListingSelect,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- </StackPanel>
- </StackPanel>
- <!-- 摘牌单据信息 -->
- <StackPanel Margin="0,10"
- Orientation="Horizontal"
- Visibility="{Binding TradeViewModel.IsVisibility_ListingInfo}">
- <TextBlock>
- <Run Text="委托单号 " />
- <Run Text="{Binding TradeViewModel.OrderId_Listing}" />
- <Run Text="价格:" />
- <Run Text="{Binding TradeViewModel.OrderPrice_Listing}" />
- </TextBlock>
- </StackPanel>
- </StackPanel>
- <!-- 通道交易 价格方式 -->
- <TextBlock Grid.Row="4"
- Text="价格方式"
- Visibility="{Binding TradeViewModel.IsVisibilityChannelTrade,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- <utilities:FocusComboBox x:Name="ChannelPriceMode"
- Grid.Row="4"
- Grid.Column="1"
- Width="150"
- Margin="20,5,0,5"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- HorizontalContentAlignment="Center"
- DisplayMemberPath="Value"
- ItemsSource="{Binding TradeViewModel.ChannelPriceModeList}"
- SelectedIndex="0"
- SelectedValue="{Binding TradeViewModel.CurrentChannelPriceMode,
- Mode=TwoWay}"
- SelectedValuePath="Key"
- Style="{DynamicResource SimpleComboBoxStyle}"
- TabIndex="4"
- Visibility="{Binding TradeViewModel.IsVisibilityChannelTrade}" />
- <!-- 市/限价格 -->
- <TextBlock Grid.Row="4"
- Text="{x:Static resources:Client_Resource.EntrustOrderFrame_Price}"
- Visibility="{Binding TradeViewModel.IsPriceModeVisible,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- <StackPanel Grid.Row="4"
- Grid.Column="1"
- Height="33"
- VerticalAlignment="Center"
- Orientation="Horizontal"
- Visibility="{Binding TradeViewModel.IsPriceModeVisible,
- Converter={StaticResource BooleanToVisibilityConverter}}">
- <RadioButton x:Name="radLimitPrice"
- Margin="20,0,0,0"
- Content="{x:Static resources:Client_Resource.EntrustOrderFrame_Limit}"
- IsChecked="{Binding TradeViewModel.PriceMode,
- ConverterParameter=2,
- Converter={StaticResource EnumBooleanConvert}}"
- IsEnabled="{Binding TradeViewModel.IsLimitPriceEnable}"
- Style="{DynamicResource RadioButtonStyle}"
- TabIndex="5"
- Visibility="{Binding IsLimitPriceVisibity,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- <RadioButton x:Name="RadMarketPrice"
- Margin="20,0,0,0"
- Content="{x:Static resources:Client_Resource.EntrustOrderFrame_Market}"
- IsChecked="{Binding TradeViewModel.PriceMode,
- ConverterParameter=1,
- Converter={StaticResource EnumBooleanConvert}}"
- Style="{DynamicResource RadioButtonStyle}"
- TabIndex="6"
- Visibility="{Binding TradeViewModel.IsMarketPriceVisibity,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- </StackPanel>
- <TextBlock Grid.Row="5"
- Text="{x:Static resources:Client_Resource.EntrustOrderFrame_Price}"
- Visibility="{Binding TradeViewModel.IsExecutePriceVbs,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- <StackPanel Grid.Row="5"
- Grid.Column="1"
- Height="33"
- Orientation="Horizontal"
- Visibility="{Binding TradeViewModel.IsExecutePriceVbs,
- Converter={StaticResource BooleanToVisibilityConverter}}">
- <utilities:FocusDecimalNumBox x:Name="PriceNumBox"
- Width="150"
- Margin="20,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- DecimalCount="{Binding TradeViewModel.DecimalCount}"
- FormatString="{Binding TradeViewModel.PriceFormat}"
- Increment="{Binding TradeViewModel.PriceMinUnit}"
- IsEnabled="{Binding TradeViewModel.IsExecutePrice}"
- Minimum="0"
- Style="{DynamicResource DecimalNewUpDownStyle}"
- TabIndex="7"
- Text="{Binding TradeViewModel.ExecutePrice,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}" />
- <TextBlock HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontWeight="Normal"
- Visibility="{Binding TradeViewModel.IsPriceRangeVsb,
- Converter={StaticResource BooleanToVisibilityConverter}}"><Run Text="≥" /><Run Text="{Binding TradeViewModel.DisplayMaxLimit, Mode=OneWay}" /><Run Text="{x:Static resources:Client_Resource.EntrustOrderFrame_Trade_Or}" /><Run Text="≤" /><Run Text="{Binding TradeViewModel.DisplayMinLimit, Mode=OneWay}" />
- </TextBlock>
- </StackPanel>
- <TextBlock Grid.Row="6" Text="{x:Static resources:Client_Resource.EntrustOrderFrame_Lot}" />
- <!-- 数量 -->
- <StackPanel Grid.Row="6"
- Grid.Column="1"
- Height="33"
- Orientation="Horizontal">
- <utilities:FocusDecimalNumBox x:Name="DecimalNum"
- Width="150"
- Margin="20,0,0,0"
- VerticalAlignment="Center"
- DecimalCount="0"
- DefaultValue="0"
- DisplayDefaultValueOnEmptyText="True"
- Focusable="True"
- Increment="{Binding TradeViewModel.MinLot}"
- IsEnabled="{Binding TradeViewModel.IsEnableChangeLot}"
- Maximum="9223372036854775807"
- Minimum="1"
- Style="{DynamicResource DecimalNewUpDownStyle}"
- TabIndex="4"
- Value="{Binding TradeViewModel.Lot,
- Mode=TwoWay}" />
- <TextBlock Margin="5,0" Text="{x:Static resources:Client_Resource.EntrustOrderFrame_Hand}" />
- <!--
- <TextBox Width="60"
- Margin="10,10,0,10"
- VerticalAlignment="Center"
- IsReadOnly="True"
- Style="{DynamicResource RectangleTextBox}"
- Text="{Binding TradeViewModel.RelationNum,
- Mode=OneWay}" />
- <TextBlock Margin="10,0,0,0" Text="{Binding TradeViewModel.AgreeUnitType}" />
- -->
- <TextBlock Margin="10,0,0,0"
- HorizontalAlignment="Left"
- Visibility="{Binding TradeViewModel.IsLotMaxVsb,
- Converter={StaticResource BooleanToVisibilityConverter}}"><Run Text="≤" /><Run Text=" " /><Run Text="{Binding TradeViewModel.MaxLot, Mode=OneWay}" /><Run Text=" " /><Run Text="{x:Static resources:Client_Resource.EntrustOrderFrame_Hand}" />
- </TextBlock>
- </StackPanel>
- <!-- end数量 -->
- <StackPanel Grid.Row="7"
- Grid.Column="1"
- Height="33"
- Orientation="Horizontal"
- Visibility="{Binding TradeViewModel.IsAllowPipsVsb,
- Converter={StaticResource BooleanToVisibilityConverter}}">
- <TextBlock Margin="20,0" Text="{x:Static resources:Client_Resource.EntrustOrderFrame_Permit_Range}" />
- <controls:DecimalNumBox Width="150"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FormatString="F0"
- Minimum="0"
- Style="{DynamicResource DecimalNewUpDownStyle}"
- TabIndex="8"
- Text="{Binding TradeViewModel.Pips,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}" />
- </StackPanel>
- <StackPanel Grid.Row="9"
- Grid.Column="1"
- Height="33"
- VerticalAlignment="Center"
- Orientation="Horizontal"
- Visibility="Collapsed">
- <!-- 不显示有效期 -->
- <RadioButton Margin="20,0"
- VerticalAlignment="Center"
- Content="{x:Static resources:Client_Resource.EntrustOrderFrame_ExpirationType_Today}"
- IsChecked="{Binding TradeViewModel.CurrentExpirationType,
- ConverterParameter=0,
- Converter={StaticResource EnumBooleanConvert}}"
- Style="{DynamicResource RadioButtonStyle}" />
- <RadioButton Margin="20,0"
- VerticalAlignment="Center"
- Content="{x:Static resources:Client_Resource.EntrustOrderFrame_ExpirationType_Week}"
- IsChecked="{Binding TradeViewModel.CurrentExpirationType,
- ConverterParameter=1,
- Converter={StaticResource EnumBooleanConvert}}"
- Style="{DynamicResource RadioButtonStyle}"
- Visibility="Hidden" />
- </StackPanel>
- <!-- 止盈 -->
- <Grid Grid.Row="10"
- Grid.Column="0"
- Grid.ColumnSpan="3"
- Width="280"
- Height="33"
- Margin="5,0,0,0"
- HorizontalAlignment="Left"
- Visibility="{Binding TradeViewModel.IsStopPLVsb,
- Converter={StaticResource BooleanToVisibilityConverter}}">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="50" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
- <CheckBox x:Name="ProfitBox"
- Width="50"
- VerticalAlignment="Center"
- Content="{x:Static resources:Client_Resource.Trade_Profit}"
- IsChecked="{Binding TradeViewModel.StopProfitChecked,
- Mode=TwoWay}"
- Style="{DynamicResource mtpCheckBoxStyle}"
- TabIndex="9" />
- <StackPanel Grid.Column="1" Orientation="Horizontal">
- <controls:DecimalNumBox Width="100"
- VerticalAlignment="Center"
- DecimalCount="{Binding TradeViewModel.DecimalCount}"
- FormatString="{Binding TradeViewModel.PriceFormat}"
- Increment="{Binding TradeViewModel.PriceMinUnit}"
- IsEnabled="{Binding IsChecked,
- ElementName=ProfitBox}"
- Minimum="{Binding TradeViewModel.PriceMinUnit}"
- Style="{DynamicResource DecimalNewUpDownStyle}"
- TabIndex="10"
- Text="{Binding TradeViewModel.StopProfit,
- UpdateSourceTrigger=PropertyChanged}" />
- <TextBlock Margin="0,5" FontWeight="Normal"><Run Text="{Binding TradeViewModel.ProfitChar, Mode=OneWay}" /><Run Text="{Binding TradeViewModel.DisplayMaxProfit, Mode=OneWay}" />
- </TextBlock>
- </StackPanel>
- <StackPanel Grid.Column="2"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock Margin="5,0"
- FontWeight="Normal"
- Text="{x:Static resources:Client_Resource.EntrustOrderFrame_Tick}" />
- <TextBox Width="50"
- VerticalAlignment="Center"
- IsReadOnly="True"
- Style="{DynamicResource RectangleTextBox}"
- Text="{Binding TradeViewModel.StopProfitPips,
- Mode=OneWay}" />
- </StackPanel>
- </Grid>
- <!-- 止损 -->
- <Grid Grid.Row="11"
- Grid.ColumnSpan="3"
- Width="280"
- Height="33"
- Margin="5,0,0,0"
- HorizontalAlignment="Left"
- Visibility="{Binding TradeViewModel.IsStopPLVsb,
- Converter={StaticResource BooleanToVisibilityConverter}}">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="50" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
- <CheckBox x:Name="LossBox"
- VerticalAlignment="Center"
- Content="{x:Static resources:Client_Resource.Trade_Stop}"
- IsChecked="{Binding TradeViewModel.StopLossChecked,
- Mode=TwoWay}"
- Style="{DynamicResource mtpCheckBoxStyle}"
- TabIndex="11" />
- <StackPanel Grid.Column="1" Orientation="Horizontal">
- <controls:DecimalNumBox Width="100"
- VerticalAlignment="Center"
- DecimalCount="{Binding TradeViewModel.DecimalCount}"
- FormatString="{Binding TradeViewModel.PriceFormat}"
- Increment="{Binding TradeViewModel.PriceMinUnit}"
- IsEnabled="{Binding IsChecked,
- ElementName=LossBox}"
- Minimum="{Binding TradeViewModel.PriceMinUnit}"
- Style="{DynamicResource DecimalNewUpDownStyle}"
- TabIndex="12"
- Text="{Binding TradeViewModel.StopLoss,
- UpdateSourceTrigger=PropertyChanged}" />
- <TextBlock Margin="0,5" FontWeight="Normal"><Run Text="{Binding TradeViewModel.LossChar, Mode=OneWay}" /><Run Text="{Binding TradeViewModel.DisplayMaxLoss, Mode=OneWay}" />
- </TextBlock>
- </StackPanel>
- <StackPanel Grid.Column="2"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock Margin="5,0"
- FontWeight="Normal"
- Text="{x:Static resources:Client_Resource.EntrustOrderFrame_Tick}" />
- <TextBox Width="50"
- VerticalAlignment="Center"
- IsReadOnly="True"
- Style="{DynamicResource RectangleTextBox}"
- Text="{Binding TradeViewModel.StopLossPips,
- Mode=OneWay}" />
- </StackPanel>
- </Grid>
- <Grid Grid.Row="12"
- Grid.ColumnSpan="2"
- Margin="0,5,0,0"
- Visibility="{Binding TradeViewModel.IsOrderOptionVisible,
- Converter={StaticResource BooleanToVisibilityConverter}}">
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="1"
- Margin="0,15"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <!-- 买入 -->
- <Border Width="90"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- Background="{Binding TradeViewModel.BuyBackGroundBrush}"
- BorderBrush="{Binding TradeViewModel.BuyBackGroundBrush}"
- CornerRadius="4, 4, 4, 4">
- <StackPanel x:Name="BuyCommissions"
- Width="90"
- Background="Transparent"
- IsEnabled="{Binding TradeViewModel.CanUseBuy}"
- Orientation="Vertical">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="MouseLeftButtonDown">
- <i:InvokeCommandAction Command="{Binding TradionOKCommand}" CommandParameter="0" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- <TextBlock Margin="0, 3, 0, 0"
- HorizontalAlignment="Center"
- Background="Transparent"
- FontWeight="Bold"
- Text="{Binding TradeViewModel.ChannelBuyPrice}" />
- <Path Width="80"
- Height="2"
- Data="F1M1,2C1,2 1,1 1,1 1,1 160,1 160,1 160,1 160,2 160,2 160,2 1,2 1,2z"
- Fill="White">
- <Path.Effect>
- <DropShadowEffect BlurRadius="0"
- Direction="-270"
- Color="White" />
- </Path.Effect>
- </Path>
- <TextBlock Margin="0, 2, 0, 3"
- HorizontalAlignment="Center"
- FontSize="16"
- FontWeight="Bold"
- Text="买入" />
- </StackPanel>
- </Border>
- <!-- 卖出 -->
- <Border Width="90"
- Margin="50, 0, 0, 0"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- Background="{Binding TradeViewModel.SellBackGroundBrush}"
- BorderBrush="{Binding TradeViewModel.SellBackGroundBrush}"
- CornerRadius="4, 4, 4, 4">
- <StackPanel x:Name="SellCommissions"
- Width="90"
- Background="Transparent"
- IsEnabled="{Binding TradeViewModel.CanUseSell}"
- Orientation="Vertical">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="MouseLeftButtonDown">
- <i:InvokeCommandAction Command="{Binding TradionOKCommand}" CommandParameter="1" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- <TextBlock Margin="0, 3, 0, 0"
- HorizontalAlignment="Center"
- Background="Transparent"
- FontWeight="Bold"
- Text="{Binding TradeViewModel.ChannelSellPrice}" />
- <Path Width="80"
- Height="2"
- Data="F1M1,2C1,2 1,1 1,1 1,1 160,1 160,1 160,1 160,2 160,2 160,2 1,2 1,2z"
- Fill="White">
- <Path.Effect>
- <DropShadowEffect BlurRadius="0"
- Direction="-270"
- Color="White" />
- </Path.Effect>
- </Path>
- <TextBlock Margin="0, 2, 0, 3"
- HorizontalAlignment="Center"
- FontSize="16"
- FontWeight="Bold"
- Text="{x:Static resources:Client_Resource.Content_SellOut}" />
- </StackPanel>
- </Border>
- </StackPanel>
- <!-- 改了接口,Command是有问题的 -->
- <Button x:Name="btnMouseDown"
- Grid.Row="1"
- Width="82"
- Height="26"
- Margin="50,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- Command="{Binding TradionOKCommand,
- ConverterParameter=2}"
- Content="{x:Static resources:Client_Resource.Button_Confirm}"
- Focusable="True"
- IsEnabled="{Binding OKButtonEnabled}"
- Style="{DynamicResource CommonButtonStyle}"
- TabIndex="12"
- Visibility="Collapsed" />
- <!--
- IsChecked="{Binding TradeViewModel.IsComplex}" Visibility="{Binding IsOKCommandVbs,
- Converter={StaticResource BooleanToVisibilityConverter}}"
- -->
- <CheckBox x:Name="corderBox"
- Grid.Row="1"
- Margin="20,5"
- HorizontalAlignment="Center"
- IsChecked="True"
- Style="{DynamicResource OrderCheckBoxStyle}"
- TabIndex="13"
- Visibility="Collapsed">
- <StackPanel>
- <TextBlock Text="{x:Static resources:Client_Resource.Order_Common_title}" Visibility="{Binding IsChecked, ElementName=corderBox, Converter={StaticResource BooleanToVisibilityConverter}}" />
- <TextBlock Text="{x:Static resources:Client_Resource.Order_Topgrade_title}" Visibility="{Binding IsChecked, ElementName=corderBox, Converter={StaticResource BoolOpposedVisibility}}" />
- </StackPanel>
- </CheckBox>
- <Grid Grid.Row="0" Visibility="{Binding IsChecked, ElementName=corderBox, Converter={StaticResource BooleanToVisibilityConverter}}">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <!-- 下单方式 正常单OR 预埋单 -->
- <TextBlock Grid.Row="0"
- Text="{x:Static resources:Client_Resource.OrderMethods}"
- Visibility="{Binding TradeViewModel.IsPrePostVisible,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- <StackPanel Grid.Row="0"
- Grid.Column="1"
- Height="33"
- VerticalAlignment="Center"
- Orientation="Horizontal"
- Visibility="{Binding TradeViewModel.IsPrePostVisible,
- Converter={StaticResource BooleanToVisibilityConverter}}">
- <RadioButton x:Name="radioBtn_normalOrder"
- Margin="20,0"
- Content="{x:Static resources:Client_Resource.NormalOrder}"
- IsChecked="{Binding TradeViewModel.OrderFlag,
- ConverterParameter=0,
- Converter={StaticResource EnumBooleanConvert}}"
- Style="{DynamicResource RadioButtonStyle}"
- TabIndex="14" />
- <RadioButton Margin="20,0"
- Content="{x:Static resources:Client_Resource.PreOrder}"
- IsChecked="{Binding TradeViewModel.OrderFlag,
- ConverterParameter=1,
- Converter={StaticResource EnumBooleanConvert}}"
- IsEnabled="{Binding TradeViewModel.IsEnableByPrePostOrder}"
- Style="{DynamicResource RadioButtonStyle}"
- TabIndex="16"
- Visibility="{Binding TradeViewModel.IsPrePostVisible,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- </StackPanel>
- <StackPanel Grid.Row="1"
- Grid.Column="0"
- Grid.ColumnSpan="2"
- Height="33"
- VerticalAlignment="Center"
- Orientation="Horizontal"
- Visibility="{Binding IsChecked,
- ElementName=radioBtn_normalOrder,
- Converter={StaticResource BoolOpposedVisibility}}">
- <TextBlock Text="{x:Static resources:Client_Resource.TriggerPrice}" Visibility="{Binding IsChecked, ElementName=radioBtn_normalOrder, Converter={StaticResource BoolOpposedVisibility}}" />
- <ComboBox Width="50"
- Margin="20,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- DisplayMemberPath="Value"
- ItemsSource="{Binding TradeViewModel.DicTriggerType}"
- SelectedValue="{Binding TradeViewModel.CurrentTirrgerType}"
- SelectedValuePath="Key"
- Style="{DynamicResource SimpleComboBoxStyle}"
- TabIndex="15"
- Visibility="{Binding IsChecked,
- ElementName=radioBtn_normalOrder,
- Converter={StaticResource BoolOpposedVisibility}}" />
- <controls:DecimalNumBox Width="120"
- Margin="20,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- DecimalCount="{Binding TradeViewModel.DecimalCount}"
- FormatString="{Binding TradeViewModel.PriceFormat}"
- Increment="{Binding TradeViewModel.PriceMinUnit}"
- Minimum="0"
- Style="{DynamicResource DecimalNewUpDownStyle}"
- TabIndex="17"
- Text="{Binding TradeViewModel.TriggerPrice,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}"
- Visibility="{Binding IsChecked,
- ElementName=radioBtn_normalOrder,
- Converter={StaticResource BoolOpposedVisibility}}" />
- </StackPanel>
- <!-- 杠杆 -->
- <TextBlock Grid.Row="2"
- Text="{x:Static resources:Client_Resource.EntrustOrderFrame_Lever}"
- Visibility="Collapsed" />
- <StackPanel Grid.Row="2"
- Grid.Column="1"
- VerticalAlignment="Center"
- Orientation="Horizontal"
- Visibility="Collapsed">
- <RadioButton Margin="20,0"
- Content="10倍"
- IsChecked="{Binding TradeViewModel.MarginRate,
- ConverterParameter=1,
- Converter={StaticResource EnumBooleanConvert}}"
- Style="{DynamicResource RadioButtonStyle}"
- TabIndex="18" />
- <RadioButton Margin="20,0"
- Content="20倍"
- IsChecked="{Binding TradeViewModel.MarginRate,
- ConverterParameter=2,
- Converter={StaticResource EnumBooleanConvert}}"
- Style="{DynamicResource RadioButtonStyle}"
- TabIndex="19" />
- <RadioButton Margin="20,0"
- Content="40倍"
- IsChecked="{Binding TradeViewModel.MarginRate,
- ConverterParameter=3,
- Converter={StaticResource EnumBooleanConvert}}"
- Style="{DynamicResource RadioButtonStyle}"
- TabIndex="20" />
- </StackPanel>
- <!-- 按单/头寸 -->
- <Grid Grid.Row="4"
- Grid.Column="1"
- VerticalAlignment="Center"
- Visibility="Collapsed">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="33" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <RadioButton Margin="20,0,0,0"
- VerticalAlignment="Center"
- Content="{x:Static resources:Client_Resource.EntrustOrderFrame_NetLot}"
- IsChecked="{Binding TradeViewModel.GoodsOrderMode,
- ConverterParameter=0,
- Converter={StaticResource EnumBooleanConvert}}"
- IsEnabled="{Binding TradeViewModel.IsCanGoodsEdit}"
- Style="{DynamicResource RadioButtonStyle}"
- TabIndex="25" />
- <RadioButton x:Name="RadOrder"
- Grid.Column="1"
- Margin="10,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Content="{x:Static resources:Client_Resource.EntrustOrderFrame_Bill}"
- IsChecked="{Binding TradeViewModel.GoodsOrderMode,
- ConverterParameter=1,
- Converter={StaticResource EnumBooleanConvert}}"
- IsEnabled="{Binding TradeViewModel.IsCanOrderEdit}"
- Style="{DynamicResource RadioButtonStyle}"
- TabIndex="26" />
- <ComboBox Grid.Row="1"
- Grid.Column="1"
- Width="130"
- Margin="0,0,5,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- DisplayMemberPath="OrderID"
- ItemsSource="{Binding TradeViewModel.HoldDetails}"
- SelectedItem="{Binding TradeViewModel.SelectOrder}"
- Style="{DynamicResource SimpleComboBoxStyle}"
- TabIndex="27"
- Visibility="{Binding IsChecked,
- ElementName=RadOrder,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- </Grid>
- </Grid>
- </Grid>
- </Grid>
- <!-- OTC报价牌 -->
- <Border Grid.Column="0"
- Width="150"
- Margin="300,5,20,0"
- VerticalAlignment="Top"
- Background="{DynamicResource OrderPriceBackground}"
- BorderBrush="{DynamicResource CommonBorderBrush}"
- BorderThickness="1"
- CornerRadius="2"
- Visibility="{Binding TradeViewModel.IsBidAskVsb,
- Converter={StaticResource BooleanToVisibilityConverter}}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="Auto" />
- <RowDefinition />
- <RowDefinition Height="Auto" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0"
- Height="44"
- Orientation="Horizontal">
- <TextBlock Margin="8,0,16,0"
- FontSize="12"
- Text="{x:Static resources:Client_Resource.Trade_Content_PurchasePrice}" />
- <border:ExpBorder VerticalAlignment="Center"
- BorderThickness="1"
- ChangeBrush="{Binding CurrentGoods.BidPriceColor}"
- IsBorderThickness="False"
- IsVauleChange="{Binding CurrentGoods.IsBidPriceBorder}"
- Padding="5,2">
- <zoom:ZoomFontText VerticalAlignment="Center"
- VerticalContentAlignment="Center"
- FontCount="{Binding Figures}"
- FontSize="20"
- FontWeight="Bold"
- Foreground="{Binding CurrentGoods.BidPriceColor}"
- Text="{Binding CurrentGoods.BidPriceDisplay}"
- ZoomFontSize="16" />
- </border:ExpBorder>
- </StackPanel>
- <Path Grid.Row="1"
- Grid.ColumnSpan="3"
- Width="140"
- Height="3"
- VerticalAlignment="Bottom"
- Data="F1M1,2C1,2 1,1 1,1 1,1 140,1 140,1 140,1 140,2 140,2 140,2 1,2 1,2z"
- Fill="{DynamicResource OrderBorderBrush}">
- <Path.Effect>
- <DropShadowEffect BlurRadius="0"
- Direction="-270"
- Opacity="0.25"
- ShadowDepth="1"
- Color="{DynamicResource BorderEffect}" />
- </Path.Effect>
- </Path>
- <StackPanel Grid.Row="2"
- Height="44"
- Orientation="Horizontal">
- <TextBlock Margin="8,0,16,0"
- FontSize="12"
- Text="{x:Static resources:Client_Resource.Trade_Content_SellPrice}" />
- <border:ExpBorder VerticalAlignment="Center"
- BorderThickness="1"
- ChangeBrush="{Binding CurrentGoods.AskPriceColor}"
- IsBorderThickness="False"
- IsVauleChange="{Binding CurrentGoods.IsAskPriceBorder}"
- Padding="5,2">
- <zoom:ZoomFontText VerticalAlignment="Center"
- VerticalContentAlignment="Center"
- FontCount="{Binding Figures}"
- FontSize="20"
- FontWeight="Bold"
- Foreground="{Binding CurrentGoods.AskPriceColor}"
- Text="{Binding CurrentGoods.AskPriceDisplay}"
- ZoomFontSize="16" />
- </border:ExpBorder>
- </StackPanel>
- </Grid>
- </Border>
- <!-- end OTC报价牌 -->
- <!-- Channel 报价牌 -->
- <Border Grid.Column="0"
- Width="150"
- Margin="300,50,20,0"
- VerticalAlignment="Top"
- Background="{DynamicResource OrderPriceBackground}"
- BorderBrush="{DynamicResource CommonBorderBrush}"
- BorderThickness="1"
- CornerRadius="2"
- Visibility="{Binding ShowBuySellPriceArea,
- Converter={StaticResource BooleanToVisibilityConverter}}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="Auto" />
- <RowDefinition />
- <RowDefinition Height="Auto" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0"
- Height="44"
- Orientation="Horizontal">
- <TextBlock Margin="8,0,16,0"
- FontSize="12"
- Text="{x:Static resources:Client_Resource.Trade_Content_PurchasePrice}" />
- <border:ExpBorder VerticalAlignment="Center"
- BorderThickness="1"
- ChangeBrush="{Binding CurrentGoods.BidPriceColor}"
- IsBorderThickness="False"
- IsVauleChange="{Binding CurrentGoods.IsBidPriceBorder}"
- Padding="5,2">
- <zoom:ZoomFontText VerticalAlignment="Center"
- VerticalContentAlignment="Center"
- FontCount="{Binding Figures}"
- FontSize="20"
- FontWeight="Bold"
- Foreground="{Binding CurrentGoods.BidPriceColor}"
- Text="{Binding CurrentGoods.BidPriceDisplay}"
- ZoomFontSize="16" />
- </border:ExpBorder>
- </StackPanel>
- <Path Grid.Row="1"
- Grid.ColumnSpan="3"
- Width="140"
- Height="3"
- VerticalAlignment="Bottom"
- Data="F1M1,2C1,2 1,1 1,1 1,1 140,1 140,1 140,1 140,2 140,2 140,2 1,2 1,2z"
- Fill="{DynamicResource OrderBorderBrush}">
- <Path.Effect>
- <DropShadowEffect BlurRadius="0"
- Direction="-270"
- Opacity="0.25"
- ShadowDepth="1"
- Color="{DynamicResource BorderEffect}" />
- </Path.Effect>
- </Path>
- <StackPanel Grid.Row="2"
- Height="44"
- Orientation="Horizontal">
- <TextBlock Margin="8,0,16,0"
- FontSize="12"
- Text="{x:Static resources:Client_Resource.Trade_Content_SellPrice}" />
- <border:ExpBorder VerticalAlignment="Center"
- BorderThickness="1"
- ChangeBrush="{Binding CurrentGoods.AskPriceColor}"
- IsBorderThickness="False"
- IsVauleChange="{Binding CurrentGoods.IsAskPriceBorder}"
- Padding="5,2">
- <zoom:ZoomFontText VerticalAlignment="Center"
- VerticalContentAlignment="Center"
- FontCount="{Binding Figures}"
- FontSize="20"
- FontWeight="Bold"
- Foreground="{Binding CurrentGoods.AskPriceColor}"
- Text="{Binding CurrentGoods.AskPriceDisplay}"
- ZoomFontSize="16" />
- </border:ExpBorder>
- </StackPanel>
- </Grid>
- </Border>
- <!-- end Channel报价牌 -->
- <Border x:Name="Bor_CommissionsHeight"
- Width="230"
- Height="280"
- Margin="285,1,5,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- BorderBrush="{DynamicResource CommonBorderBrush}"
- BorderThickness="1"
- Visibility="{Binding TradeViewModel.IsBidQueueVsb,
- Converter={StaticResource BooleanToVisibilityConverter}}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition />
- <RowDefinition Height="Auto" />
- <RowDefinition />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="40" />
- <ColumnDefinition Width="1.5*" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <TextBlock Grid.Column="1"
- Margin="5,3"
- Text="{x:Static resources:Client_Resource.EntrustOrderFrame_Price}" />
- <TextBlock Grid.Column="2"
- Margin="5,1"
- Text="{x:Static resources:Client_Resource.EntrustOrderFrame_Lot}" />
- <Border Grid.Row="1"
- Grid.RowSpan="3"
- Grid.ColumnSpan="3"
- Background="{DynamicResource OrderPriceBackground}"
- BorderBrush="{DynamicResource CommonBorderBrush}"
- BorderThickness="0,1" />
- <ListBox x:Name="AskCommissionsListBox"
- Grid.Row="1"
- Grid.ColumnSpan="3"
- VerticalAlignment="Bottom"
- Background="Transparent"
- BorderBrush="Transparent"
- FontSize="13"
- IsTabStop="False"
- ItemContainerStyle="{DynamicResource BidPriceListBoxItem}"
- ItemTemplate="{DynamicResource AskDataTemplate}"
- ItemsSource="{Binding TradeViewModel.AskCommissions}"
- MouseLeave="AskCommissionsListBox_MouseLeave"
- SelectedItem="{Binding TradeViewModel.CurrentCommission}"
- Style="{DynamicResource BidPriceListBox}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="MouseLeftButtonDown">
- <i:InvokeCommandAction Command="{Binding TradeViewModel.CommissionsListBoxCommand}" CommandParameter="{Binding SelectedItem, ElementName=AskCommissionsListBox}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </ListBox>
- <Path Grid.Row="2"
- Grid.ColumnSpan="3"
- Width="170"
- Height="3"
- VerticalAlignment="Bottom"
- Data="F1M1,2C1,2 1,1 1,1 1,1 160,1 160,1 160,1 160,2 160,2 160,2 1,2 1,2z"
- Fill="{DynamicResource OrderBorderBrush}">
- <Path.Effect>
- <DropShadowEffect BlurRadius="0"
- Direction="-270"
- Opacity="0.25"
- ShadowDepth="1"
- Color="{DynamicResource BorderEffect}" />
- </Path.Effect>
- </Path>
- <ListBox x:Name="BidCommissionsListBox"
- Grid.Row="3"
- Grid.ColumnSpan="3"
- VerticalAlignment="Top"
- Background="Transparent"
- BorderBrush="Transparent"
- FontSize="13"
- IsTabStop="False"
- ItemContainerStyle="{DynamicResource BidPriceListBoxItem}"
- ItemTemplate="{DynamicResource BidDataTemplate}"
- ItemsSource="{Binding TradeViewModel.BidCommissions}"
- MouseLeave="BidCommissionsListBox_MouseLeave"
- SelectedItem="{Binding TradeViewModel.CurrentCommission}"
- Style="{DynamicResource BidPriceListBox}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="MouseLeftButtonDown">
- <i:InvokeCommandAction Command="{Binding TradeViewModel.CommissionsListBoxCommand}" CommandParameter="{Binding SelectedItem, ElementName=BidCommissionsListBox}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </ListBox>
- <Grid Grid.Row="4" Grid.ColumnSpan="3">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="1" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition Width="3" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <TextBlock Margin="4,4"
- HorizontalAlignment="Left"
- Text="{x:Static resources:Client_Resource.Trade_CurrentPrice}" />
- <TextBlock Width="60"
- HorizontalAlignment="Right"
- Foreground="{Binding CurrentGoods.CurrentPriceColor}"
- MouseDown="UIElement_OnMouseDown"
- Tag="{Binding CurrentGoods.CurrentPrice}"
- Text="{Binding CurrentGoods.CurrentPrice,
- Mode=OneWay}"
- TextTrimming="CharacterEllipsis"
- TextWrapping="NoWrap">
- <TextBlock.ToolTip>
- <StackPanel>
- <TextBlock>
- <Run Foreground="Black" Text="{Binding CurrentGoods.CurrentPrice, Mode=OneWay}" />
- </TextBlock>
- </StackPanel>
- </TextBlock.ToolTip>
- </TextBlock>
- <TextBlock Grid.Column="2"
- HorizontalAlignment="Left"
- Text="{x:Static resources:Client_Resource.Trade_BidIncrement_Title}"
- Visibility="{Binding TradeViewModel.IsShowRaiseFall,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- <TextBlock Grid.Column="2"
- Width="60"
- HorizontalAlignment="Right"
- Foreground="{DynamicResource QuoteAscBrush}"
- MouseDown="UIElement_OnMouseDown"
- Tag="{Binding TradeViewModel.UpPrice}"
- Text="{Binding TradeViewModel.UpPriceDisplay,
- Mode=OneWay}"
- TextTrimming="CharacterEllipsis"
- TextWrapping="NoWrap"
- ToolTip="{Binding TradeViewModel.UpPriceDisplay,
- Mode=OneWay}"
- Visibility="{Binding TradeViewModel.IsShowRaiseFall,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- <TextBlock Grid.Row="2"
- Margin="4,4"
- HorizontalAlignment="Left"
- Text="{x:Static resources:Client_Resource.Trade_Last}" />
- <TextBlock Grid.Row="2"
- Width="60"
- HorizontalAlignment="Right"
- MouseDown="UIElement_OnMouseDown"
- Tag="{Binding CurrentGoods.LastClose,
- Mode=OneWay}"
- Text="{Binding CurrentGoods.LastClose,
- Mode=OneWay}"
- TextTrimming="CharacterEllipsis"
- TextWrapping="NoWrap">
- <TextBlock.ToolTip>
- <StackPanel>
- <TextBlock>
- <Run Foreground="Black" Text="{Binding CurrentGoods.LastClose, Mode=OneWay}" />
- </TextBlock>
- </StackPanel>
- </TextBlock.ToolTip>
- </TextBlock>
- <TextBlock Grid.Row="2"
- Grid.Column="2"
- HorizontalAlignment="Left"
- Text="{x:Static resources:Client_Resource.Trade_BidBlow_Title}"
- Visibility="{Binding TradeViewModel.IsShowRaiseFall,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- <TextBlock Grid.Row="2"
- Grid.Column="2"
- Width="60"
- HorizontalAlignment="Right"
- Foreground="{DynamicResource QuoteDecBrush}"
- MouseDown="UIElement_OnMouseDown"
- Tag="{Binding TradeViewModel.LowPrice,
- Mode=OneWay}"
- Text="{Binding TradeViewModel.LowPriceDisplay,
- Mode=OneWay}"
- TextTrimming="CharacterEllipsis"
- TextWrapping="NoWrap"
- Visibility="{Binding TradeViewModel.IsShowRaiseFall,
- Converter={StaticResource BooleanToVisibilityConverter}}">
- <TextBlock.ToolTip>
- <StackPanel>
- <TextBlock>
- <Run Foreground="Black" Text="{Binding TradeViewModel.LowPriceDisplay, Mode=OneWay}" />
- </TextBlock>
- </StackPanel>
- </TextBlock.ToolTip>
- </TextBlock>
- </Grid>
- </Grid>
- </Border>
- </Grid>
- </UserControl>
|