SpeedControl.xaml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <UserControl
  2. x:Class="SHJX.Service.Library.Views.SettingLibrary.SpeedControl"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:SHJX.Service.Library.Views.SettingLibrary"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
  9. d:DesignHeight="150"
  10. d:DesignWidth="130"
  11. mc:Ignorable="d">
  12. <UserControl.Resources>
  13. <ResourceDictionary>
  14. <ResourceDictionary.MergedDictionaries>
  15. <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
  16. <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
  17. <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Themes/light.Steel.xaml" />
  18. <ResourceDictionary Source="pack://application:,,,/Panuon.UI.Silver;component/Control.xaml" />
  19. </ResourceDictionary.MergedDictionaries>
  20. </ResourceDictionary>
  21. </UserControl.Resources>
  22. <Grid>
  23. <GroupBox
  24. Name="gb_speed"
  25. Width="130"
  26. Height="150"
  27. HorizontalAlignment="Center"
  28. VerticalAlignment="Center"
  29. pu:GroupBoxHelper.CornerRadius="8"
  30. pu:GroupBoxHelper.IsSplitLineVisible="True"
  31. pu:GroupBoxHelper.ShadowColor="LightGray"
  32. FontSize="12">
  33. <UniformGrid Columns="1" Rows="4">
  34. <StackPanel
  35. HorizontalAlignment="Center"
  36. VerticalAlignment="Center"
  37. Orientation="Horizontal">
  38. <TextBlock
  39. Margin="5,0"
  40. VerticalAlignment="Center"
  41. Text="速 度:" />
  42. <TextBox
  43. x:Name="txt_speed"
  44. Width="70"
  45. Height="25"
  46. HorizontalAlignment="Center"
  47. VerticalAlignment="Center"
  48. pu:TextBoxHelper.CornerRadius="10"
  49. pu:TextBoxHelper.FocusedBorderBrush="#B5B5B5"
  50. pu:TextBoxHelper.FocusedShadowColor="#B5B5B5" />
  51. </StackPanel>
  52. <StackPanel
  53. HorizontalAlignment="Center"
  54. VerticalAlignment="Center"
  55. Orientation="Horizontal">
  56. <TextBlock
  57. Margin="5,0"
  58. VerticalAlignment="Center"
  59. Text="加速度:" />
  60. <TextBox
  61. x:Name="txt_acspeed"
  62. Width="70"
  63. Height="25"
  64. HorizontalAlignment="Center"
  65. VerticalAlignment="Center"
  66. pu:TextBoxHelper.CornerRadius="10"
  67. pu:TextBoxHelper.FocusedBorderBrush="#B5B5B5"
  68. pu:TextBoxHelper.FocusedShadowColor="#B5B5B5" />
  69. </StackPanel>
  70. <StackPanel
  71. HorizontalAlignment="Center"
  72. VerticalAlignment="Center"
  73. Orientation="Horizontal">
  74. <TextBlock
  75. Margin="5,0"
  76. VerticalAlignment="Center"
  77. Text="减速度:" />
  78. <TextBox
  79. x:Name="txt_despeed"
  80. Width="70"
  81. Height="25"
  82. HorizontalAlignment="Center"
  83. VerticalAlignment="Center"
  84. pu:TextBoxHelper.CornerRadius="10"
  85. pu:TextBoxHelper.FocusedBorderBrush="#B5B5B5"
  86. pu:TextBoxHelper.FocusedShadowColor="#B5B5B5" />
  87. </StackPanel>
  88. <Button
  89. Name="btn_speedsetting"
  90. Width="50"
  91. Height="25"
  92. Margin="5,0"
  93. HorizontalAlignment="Right"
  94. VerticalAlignment="Center"
  95. pu:ButtonHelper.ButtonStyle="Hollow"
  96. pu:ButtonHelper.CornerRadius="10"
  97. pu:ButtonHelper.HoverBrush="#6452A4"
  98. BorderBrush="#6452A4"
  99. Content="更新"
  100. Cursor="Hand"
  101. FontFamily="{StaticResource FontAwesome}"
  102. Foreground="#FF3F3F3F">
  103. <Button.CommandParameter>
  104. <Binding ElementName="gb_speed" Path="Tag" />
  105. </Button.CommandParameter>
  106. </Button>
  107. </UniformGrid>
  108. </GroupBox>
  109. </Grid>
  110. </UserControl>