| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336 |
- <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 x:Name="OrderContentArea">-->
- <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="Collapsed" />
- </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,4,0,4.143"
- 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>
|