| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <windows:WindowBase x:Class="Muchinfo.MTPClient.Account.Views.TradeParamerSetView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Muchinfo.MTPClient.Resources"
- xmlns:windows="clr-namespace:Muchinfo.WPF.Controls.Windows;assembly=Muchinfo.WPF.Controls"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
- x:Name="view"
- Title="{x:Static resource:Muchinfo_Resource.TradeParamerSet_Title}"
- Width="326"
- Height="269.908"
- BorderThickness="6,0,6,6"
- ClosedCommand="{Binding ClosedCommand}"
- Style="{DynamicResource WindowBaseStyle}"
- CornerRadius="0">
- <windows:WindowBase.Resources>
- <Style TargetType="{x:Type TextBlock}">
- <Setter Property="FontWeight" Value="Bold" />
- <Setter Property="HorizontalAlignment" Value="Right" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="Foreground" Value="{DynamicResource MuchinfoBrush13}" />
- </Style>
- </windows:WindowBase.Resources>
- <xctk:BusyIndicator BusyContent="{x:Static resource:Muchinfo_Resource.Content_Busy}"
- Foreground="{DynamicResource MuchinfoBrush1}"
- IsBusy="{Binding IsBusy,
- Mode=TwoWay}">
- <Grid >
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="64" />
- </Grid.RowDefinitions>
- <StackPanel Margin="20,10,0,0">
- <!--
- <WrapPanel>
- <TextBlock Width="60"
- Text="默认商品:"
- TextElement.FontWeight="Bold" />
- <RadioButton Content="自动选择"
- GroupName="radio"
- IsChecked="True" />
- </WrapPanel>
-
- <WrapPanel Margin="0,5,0,0">
- <RadioButton x:Name="rdoGood"
- Margin="60,0,10,0"
- VerticalAlignment="Center"
- Content="定义商品"
- GroupName="radio" />
- <ComboBox Width="120"
- IsEnabled="{Binding ElementName=rdoGood,
- Path=IsChecked}"
- Style="{DynamicResource lightComboboxStyle}" />
- </WrapPanel>
- -->
- <WrapPanel Margin="30,30,0,0">
- <TextBlock Width="90"
- VerticalAlignment="Center"
- Text="{x:Static resource:Muchinfo_Resource.Text_HandsCount}"
- TextElement.FontWeight="Bold" />
- <xctk:SingleUpDown Width="120"
- VerticalAlignment="Center"
- Maximum="{Binding MaxHands}"
- Minimum="{Binding MinHands}"
- Style="{DynamicResource SingleUpDownStyle}"
- Value="{Binding Hands,
- Mode=TwoWay}" />
- </WrapPanel>
- <!--
- <WrapPanel Margin="0,10,0,0">
- <TextBlock Width="90"
- VerticalAlignment="Center"
- Text="最大成交点差:"
- TextElement.FontWeight="Bold" />
- <xctk:SingleUpDown Width="120"
- VerticalAlignment="Center"
- Maximum="{Binding MaxSpreed}"
- Minimum="{Binding MinSpreed}"
- Style="{DynamicResource SingleUpDownStyle}"
- Value="{Binding Spreed,
- Mode=TwoWay}" />
- </WrapPanel>
- -->
- <WrapPanel Margin="30,30,0,0">
- <TextBlock Width="90"
- VerticalAlignment="Center"
- Text="{x:Static resource:Muchinfo_Resource.Text_Direction}"
- TextElement.FontWeight="Bold" />
- <RadioButton Margin="0,0,5,0"
- FontWeight="Bold"
- Content="{x:Static resource:Muchinfo_Resource.Content_Purchase}"
- GroupName="radioPosition"
- Style="{DynamicResource CommonRadioButtonStyle}"
- IsChecked="{Binding IsBuy,
- Mode=TwoWay}" />
- <RadioButton Content="{x:Static resource:Muchinfo_Resource.Content_SellOut}"
- FontWeight="Bold"
- GroupName="radioPosition"
- Style="{DynamicResource CommonRadioButtonStyle}"
- IsChecked="{Binding IsSell,
- Mode=TwoWay}" />
- </WrapPanel>
- </StackPanel>
- <WrapPanel Grid.Row="1" Margin="62,10,0,0">
- <Button Width="82"
- Height="28"
- Margin="0,0,26,0"
- BorderThickness="0"
- Command="{Binding OKCommand}"
- CommandParameter="{Binding ElementName=view}"
- Content="{x:Static resource:Muchinfo_Resource.Button_Ok}"
- IsDefault="True"
- Style="{StaticResource CommonButtonStyle}" />
- <Button Width="82"
- Height="28"
- BorderThickness="0"
- Command="{Binding CancelCommand}"
- CommandParameter="{Binding ElementName=view}"
- Content="{x:Static resource:Muchinfo_Resource.Button_Cancel}"
- IsCancel="True"
- Style="{StaticResource CommonButtonStyle}" />
- </WrapPanel>
- </Grid>
- </xctk:BusyIndicator>
- </windows:WindowBase>
|