OtherManualWindow.xaml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <UserControl
  2. x:Class="SHJX.Service.Shell.Views.Manual.OtherManualWindow"
  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:i="http://schemas.microsoft.com/xaml/behaviors"
  7. xmlns:local="clr-namespace:SHJX.Service.Shell.Views.Manual"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:prism="http://prismlibrary.com/"
  10. xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
  11. d:DesignHeight="800"
  12. d:DesignWidth="900"
  13. prism:ViewModelLocator.AutoWireViewModel="True"
  14. mc:Ignorable="d">
  15. <i:Interaction.Triggers>
  16. <i:EventTrigger EventName="Loaded">
  17. <i:InvokeCommandAction Command="{Binding LoadedCommand}" />
  18. </i:EventTrigger>
  19. </i:Interaction.Triggers>
  20. <Grid>
  21. <Grid.RowDefinitions>
  22. <RowDefinition Height="1*" />
  23. <RowDefinition Height="6*" />
  24. </Grid.RowDefinitions>
  25. <GroupBox
  26. Grid.Row="0"
  27. Width="800"
  28. Height="100"
  29. Margin="0,5,0,5"
  30. HorizontalAlignment="Center"
  31. VerticalAlignment="Center"
  32. pu:GroupBoxHelper.CornerRadius="8"
  33. pu:GroupBoxHelper.IsSplitLineVisible="True"
  34. pu:GroupBoxHelper.ShadowColor="LightGray"
  35. Header="手动校准">
  36. <StackPanel Orientation="Horizontal">
  37. <TextBlock
  38. Margin="10,0,0,0"
  39. VerticalAlignment="Center"
  40. FontWeight="UltraBlack"
  41. Text="k值校准:" />
  42. <ComboBox
  43. Name="cmb_wave"
  44. Width="150"
  45. Height="30"
  46. pu:ComboBoxHelper.CornerRadius="7"
  47. pu:ComboBoxHelper.HoverBackground="#1E003366"
  48. pu:ComboBoxHelper.SelectedBackground="#32006699"
  49. BorderBrush="#6452A4"
  50. Cursor="Hand"
  51. Foreground="#6452A4"
  52. ItemsSource="{Binding Wavekeys}"
  53. SelectedIndex="0"
  54. SelectedItem="{Binding WaveKeyItem}">
  55. <i:Interaction.Triggers>
  56. <i:EventTrigger EventName="SelectionChanged">
  57. <i:InvokeCommandAction Command="{Binding SelectionChangedCommand}" />
  58. </i:EventTrigger>
  59. </i:Interaction.Triggers>
  60. </ComboBox>
  61. <TextBox
  62. Width="150"
  63. Height="30"
  64. Margin="10,0,0,0"
  65. pu:TextBoxHelper.CornerRadius="7"
  66. pu:TextBoxHelper.FocusedBorderBrush="#B5B5B5"
  67. pu:TextBoxHelper.FocusedShadowColor="#B5B5B5"
  68. Cursor="IBeam"
  69. Text="{Binding CurrentKValue}" />
  70. <Button
  71. Width="40"
  72. Height="40"
  73. Margin="10,0,0,0"
  74. pu:ButtonHelper.ClickStyle="Sink"
  75. pu:ButtonHelper.CornerRadius="20"
  76. pu:ButtonHelper.HoverBrush="#929FDE"
  77. Background="#6452A4"
  78. Command="{Binding AdjustCommand}"
  79. Content="校准"
  80. Cursor="Hand"
  81. FontFamily="{StaticResource FontAwesome}" />
  82. </StackPanel>
  83. </GroupBox>
  84. </Grid>
  85. </UserControl>