| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <UserControl x:Class="Muchinfo.MTPClient.Trade.Views.QuickOrderBar"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
- DataContext="{Binding OrderBar,
- Source={StaticResource Locator}}"
- mc:Ignorable="d">
- <UserControl.Resources>
- <BooleanToVisibilityConverter x:Key="ToVisibilityConverter" />
- </UserControl.Resources>
- <Border BorderBrush="{DynamicResource MuchinfoBrush67}" BorderThickness="0,0,0,2">
- <Grid>
- <StackPanel HorizontalAlignment="Stretch"
- Background="{DynamicResource MuchinfoBrush75}"
- Orientation="Horizontal"
- Visibility="{Binding RadioButtonVisibility,
- Mode=TwoWay}">
- <Border MinWidth="100" Margin="30,5,0,0">
- <TextBlock Height="24"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontSize="16"
- Foreground="{DynamicResource MuchinfoBrush105}"
- IsEnabled="False"
- Text="{Binding CurrentGoods.Name}" />
- </Border>
- <TextBlock Margin="10,0"
- VerticalAlignment="Center"
- Foreground="{DynamicResource MuchinfoBrush105}"
- Text="{x:Static resource:Client_Resource.Open_Lots}" />
- <xctk:DecimalUpDown MinWidth="80"
- Margin="0,5"
- VerticalAlignment="Center"
- DefaultValue="1"
- DisplayDefaultValueOnEmptyText="True"
- KeyDown="DecimalUpDown_KeyDown"
- Minimum="{Binding MinOpenNumber,
- Mode=OneWay}"
- Style="{DynamicResource DecimalUpDownStyle}"
- TabIndex="5"
- Value="{Binding Lot,
- Mode=TwoWay}" />
- <TextBlock Margin="10,0"
- VerticalAlignment="Center"
- Foreground="{DynamicResource MuchinfoBrush105}">
- <Run Text="≤" />
- <Run Text="{Binding MaxLot}" />
- </TextBlock>
- <TextBlock HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Foreground="{DynamicResource MuchinfoBrush26}"
- Text="{Binding ShowMessage}" />
- <Button Height="26"
- Command="{Binding BuyCommand}"
- Content="{x:Static resource:Client_Resource.Market_Open_bid}"
- IsEnabled="{Binding CanOpenMarket}"
- Style="{DynamicResource CommonButtonStyle}" />
- <Button Height="26"
- Margin="20,0"
- Command="{Binding SellCommand}"
- CommandParameter="{Binding ElementName=openOrderWindow}"
- Content="{x:Static resource:Client_Resource.Market_Open_Ask}"
- IsEnabled="{Binding CanOpenMarket}"
- Style="{DynamicResource CommonButtonStyle}" />
- <TextBlock VerticalAlignment="Center"
- Foreground="{DynamicResource MuchinfoBrush105}"
- Visibility="{Binding Market_AllownPubsVisiable}">
- <Run Text="{x:Static resource:Client_Resource.Market_AllownPubs}" />
- <Run Text="{Binding AllowTradeSubText, Mode=TwoWay}" />
- </TextBlock>
- </StackPanel>
- <Grid Background="#60FFF8DC" Visibility="{Binding IsOrderVisible, Converter={StaticResource ToVisibilityConverter}}">
- <TextBlock HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Foreground="Black"
- Text="{Binding BusyTips}" />
- </Grid>
- </Grid>
- </Border>
- </UserControl>
|