TradeParamerSetView.xaml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <windows:WindowBase x:Class="Muchinfo.MTPClient.Account.Views.TradeParamerSetView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Muchinfo.MTPClient.Resources"
  5. xmlns:windows="clr-namespace:Muchinfo.WPF.Controls.Windows;assembly=Muchinfo.WPF.Controls"
  6. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  7. x:Name="view"
  8. Title="{x:Static resource:Muchinfo_Resource.TradeParamerSet_Title}"
  9. Width="326"
  10. Height="269.908"
  11. BorderThickness="6,0,6,6"
  12. ClosedCommand="{Binding ClosedCommand}"
  13. Style="{DynamicResource WindowBaseStyle}"
  14. CornerRadius="0">
  15. <windows:WindowBase.Resources>
  16. <Style TargetType="{x:Type TextBlock}">
  17. <Setter Property="FontWeight" Value="Bold" />
  18. <Setter Property="HorizontalAlignment" Value="Right" />
  19. <Setter Property="VerticalAlignment" Value="Center" />
  20. <Setter Property="Foreground" Value="{DynamicResource MuchinfoBrush13}" />
  21. </Style>
  22. </windows:WindowBase.Resources>
  23. <xctk:BusyIndicator BusyContent="{x:Static resource:Muchinfo_Resource.Content_Busy}"
  24. Foreground="{DynamicResource MuchinfoBrush1}"
  25. IsBusy="{Binding IsBusy,
  26. Mode=TwoWay}">
  27. <Grid >
  28. <Grid.RowDefinitions>
  29. <RowDefinition />
  30. <RowDefinition Height="64" />
  31. </Grid.RowDefinitions>
  32. <StackPanel Margin="20,10,0,0">
  33. <!--
  34. <WrapPanel>
  35. <TextBlock Width="60"
  36. Text="默认商品:"
  37. TextElement.FontWeight="Bold" />
  38. <RadioButton Content="自动选择"
  39. GroupName="radio"
  40. IsChecked="True" />
  41. </WrapPanel>
  42. <WrapPanel Margin="0,5,0,0">
  43. <RadioButton x:Name="rdoGood"
  44. Margin="60,0,10,0"
  45. VerticalAlignment="Center"
  46. Content="定义商品"
  47. GroupName="radio" />
  48. <ComboBox Width="120"
  49. IsEnabled="{Binding ElementName=rdoGood,
  50. Path=IsChecked}"
  51. Style="{DynamicResource lightComboboxStyle}" />
  52. </WrapPanel>
  53. -->
  54. <WrapPanel Margin="30,30,0,0">
  55. <TextBlock Width="90"
  56. VerticalAlignment="Center"
  57. Text="{x:Static resource:Muchinfo_Resource.Text_HandsCount}"
  58. TextElement.FontWeight="Bold" />
  59. <xctk:SingleUpDown Width="120"
  60. VerticalAlignment="Center"
  61. Maximum="{Binding MaxHands}"
  62. Minimum="{Binding MinHands}"
  63. Style="{DynamicResource SingleUpDownStyle}"
  64. Value="{Binding Hands,
  65. Mode=TwoWay}" />
  66. </WrapPanel>
  67. <!--
  68. <WrapPanel Margin="0,10,0,0">
  69. <TextBlock Width="90"
  70. VerticalAlignment="Center"
  71. Text="最大成交点差:"
  72. TextElement.FontWeight="Bold" />
  73. <xctk:SingleUpDown Width="120"
  74. VerticalAlignment="Center"
  75. Maximum="{Binding MaxSpreed}"
  76. Minimum="{Binding MinSpreed}"
  77. Style="{DynamicResource SingleUpDownStyle}"
  78. Value="{Binding Spreed,
  79. Mode=TwoWay}" />
  80. </WrapPanel>
  81. -->
  82. <WrapPanel Margin="30,30,0,0">
  83. <TextBlock Width="90"
  84. VerticalAlignment="Center"
  85. Text="{x:Static resource:Muchinfo_Resource.Text_Direction}"
  86. TextElement.FontWeight="Bold" />
  87. <RadioButton Margin="0,0,5,0"
  88. FontWeight="Bold"
  89. Content="{x:Static resource:Muchinfo_Resource.Content_Purchase}"
  90. GroupName="radioPosition"
  91. Style="{DynamicResource CommonRadioButtonStyle}"
  92. IsChecked="{Binding IsBuy,
  93. Mode=TwoWay}" />
  94. <RadioButton Content="{x:Static resource:Muchinfo_Resource.Content_SellOut}"
  95. FontWeight="Bold"
  96. GroupName="radioPosition"
  97. Style="{DynamicResource CommonRadioButtonStyle}"
  98. IsChecked="{Binding IsSell,
  99. Mode=TwoWay}" />
  100. </WrapPanel>
  101. </StackPanel>
  102. <WrapPanel Grid.Row="1" Margin="62,10,0,0">
  103. <Button Width="82"
  104. Height="28"
  105. Margin="0,0,26,0"
  106. BorderThickness="0"
  107. Command="{Binding OKCommand}"
  108. CommandParameter="{Binding ElementName=view}"
  109. Content="{x:Static resource:Muchinfo_Resource.Button_Ok}"
  110. IsDefault="True"
  111. Style="{StaticResource CommonButtonStyle}" />
  112. <Button Width="82"
  113. Height="28"
  114. BorderThickness="0"
  115. Command="{Binding CancelCommand}"
  116. CommandParameter="{Binding ElementName=view}"
  117. Content="{x:Static resource:Muchinfo_Resource.Button_Cancel}"
  118. IsCancel="True"
  119. Style="{StaticResource CommonButtonStyle}" />
  120. </WrapPanel>
  121. </Grid>
  122. </xctk:BusyIndicator>
  123. </windows:WindowBase>