星火微课系统客户端
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
3 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693
  1. <Window
  2. x:Class="XHWK.WKTool.DeviceWindow"
  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:gif="http://wpfanimatedgif.codeplex.com"
  7. xmlns:local="clr-namespace:XHWK.WKTool"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:view="clr-namespace:XHWK.WKTool.View"
  10. Title="设备检测"
  11. Width="569"
  12. Height="367"
  13. AllowsTransparency="False"
  14. BorderBrush="#FFE9E9E9"
  15. BorderThickness="1"
  16. ShowInTaskbar="True"
  17. Style="{StaticResource ZWinStyle}"
  18. WindowStartupLocation="CenterScreen"
  19. WindowStyle="SingleBorderWindow"
  20. mc:Ignorable="d">
  21. <Window.Resources>
  22. <!-- 摄像头样式 -->
  23. <Style x:Key="stlToggleButton" TargetType="ToggleButton">
  24. <Setter Property="Foreground" Value="White" />
  25. <Setter Property="Template">
  26. <Setter.Value>
  27. <ControlTemplate>
  28. <Border
  29. x:Name="Back"
  30. Background="#FFFFFFFF"
  31. BorderBrush="Transparent"
  32. BorderThickness="0">
  33. <Path
  34. Name="PathFill"
  35. Width="8"
  36. Height="6"
  37. Data="M5,0 L10,10 L0,10 z"
  38. Fill="Black"
  39. RenderTransformOrigin="0.5,0.5"
  40. Stretch="Fill"
  41. StrokeThickness="0">
  42. <Path.RenderTransform>
  43. <TransformGroup>
  44. <ScaleTransform />
  45. <SkewTransform />
  46. <RotateTransform Angle="180" />
  47. <TranslateTransform />
  48. </TransformGroup>
  49. </Path.RenderTransform>
  50. </Path>
  51. </Border>
  52. <ControlTemplate.Triggers>
  53. <Trigger Property="IsMouseOver" Value="True">
  54. <Setter TargetName="PathFill" Property="Fill" Value="White" />
  55. <Setter TargetName="Back" Property="Background" Value="#FFDCDCDC" />
  56. <Setter TargetName="Back" Property="BorderBrush" Value="#FFDCDCDC" />
  57. </Trigger>
  58. </ControlTemplate.Triggers>
  59. </ControlTemplate>
  60. </Setter.Value>
  61. </Setter>
  62. </Style>
  63. <Style x:Key="stlComboBox" TargetType="ComboBox">
  64. <Setter Property="SnapsToDevicePixels" Value="True" />
  65. <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
  66. <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
  67. <Setter Property="ScrollViewer.CanContentScroll" Value="True" />
  68. <Setter Property="HorizontalAlignment" Value="Left" />
  69. <Setter Property="Foreground" Value="Black" />
  70. <Setter Property="Height" Value="30" />
  71. <Setter Property="Margin" Value="0,0,0,0" />
  72. <Setter Property="Template">
  73. <Setter.Value>
  74. <ControlTemplate TargetType="ComboBox">
  75. <Grid Background="#F7FDF7">
  76. <Grid.ColumnDefinitions>
  77. <ColumnDefinition Width="0.8*" />
  78. <ColumnDefinition Width="0.2*" MaxWidth="20" />
  79. </Grid.ColumnDefinitions>
  80. <TextBox
  81. Grid.Column="0"
  82. VerticalContentAlignment="Center"
  83. IsReadOnly="True"
  84. Text="{TemplateBinding Text}" />
  85. <Border
  86. Grid.Column="0"
  87. BorderBrush="#FFDCDCDC"
  88. BorderThickness="1,1,1,1"
  89. CornerRadius="1,0,0,1" />
  90. <Border
  91. Grid.Column="1"
  92. BorderBrush="#FFDCDCDC"
  93. BorderThickness="0,1,1,1"
  94. CornerRadius="0,1,1,0">
  95. <ToggleButton
  96. ClickMode="Press"
  97. IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
  98. Style="{StaticResource stlToggleButton}" />
  99. </Border>
  100. <Popup
  101. x:Name="Popup"
  102. AllowsTransparency="True"
  103. Focusable="False"
  104. IsOpen="{TemplateBinding IsDropDownOpen}"
  105. Placement="Bottom"
  106. PopupAnimation="Slide">
  107. <Border
  108. x:Name="DropDown"
  109. MinWidth="{TemplateBinding ActualWidth}"
  110. MaxHeight="{TemplateBinding MaxDropDownHeight}"
  111. CornerRadius="1"
  112. SnapsToDevicePixels="True">
  113. <Border.Effect>
  114. <DropShadowEffect
  115. BlurRadius="2"
  116. Opacity="0.5"
  117. ShadowDepth="0"
  118. Color="Black" />
  119. </Border.Effect>
  120. <ScrollViewer
  121. MaxHeight="{TemplateBinding MaxDropDownHeight}"
  122. Margin="4,6,4,6"
  123. CanContentScroll="True"
  124. HorizontalScrollBarVisibility="Auto"
  125. SnapsToDevicePixels="True"
  126. Style="{DynamicResource ScrollViewerStyle}"
  127. VerticalScrollBarVisibility="Auto">
  128. <!-- StackPanel 用于显示子级,方法是将 IsItemsHost 设置为 True -->
  129. <StackPanel
  130. Background="White"
  131. IsItemsHost="True"
  132. KeyboardNavigation.DirectionalNavigation="Contained" />
  133. </ScrollViewer>
  134. </Border>
  135. </Popup>
  136. </Grid>
  137. </ControlTemplate>
  138. </Setter.Value>
  139. </Setter>
  140. </Style>
  141. </Window.Resources>
  142. <Grid Background="White">
  143. <Grid.RowDefinitions>
  144. <RowDefinition Height="40" />
  145. <RowDefinition Height="*" />
  146. </Grid.RowDefinitions>
  147. <Grid
  148. x:Name="GridTitle_Black"
  149. Grid.Row="0"
  150. Margin="0,0"
  151. Background="#3f6fff"
  152. MouseLeftButtonDown="Window_MouseLeftButtonDown">
  153. <TextBlock
  154. Grid.RowSpan="2"
  155. Margin="16,0,0,0"
  156. VerticalAlignment="Center"
  157. FontSize="16"
  158. Foreground="White"
  159. Text="设备检测" />
  160. <Button
  161. x:Name="btnDown_Black"
  162. Grid.Row="0"
  163. Width="46"
  164. HorizontalAlignment="Right"
  165. Click="BtnDown_Click"
  166. Content="×"
  167. Cursor="Hand"
  168. FontSize="30"
  169. Foreground="White" />
  170. </Grid>
  171. <Grid Grid.Row="1">
  172. <Grid.ColumnDefinitions>
  173. <ColumnDefinition Width="140" />
  174. <ColumnDefinition Width="*" />
  175. </Grid.ColumnDefinitions>
  176. <Grid Grid.Column="0">
  177. <Border BorderBrush="#FFE9E9E9" BorderThickness="0,0,1,0">
  178. <StackPanel Margin="0,10" VerticalAlignment="Top">
  179. <Button
  180. x:Name="BtnCamera"
  181. Height="40"
  182. Margin="0,0,0,0"
  183. HorizontalAlignment="Stretch"
  184. VerticalAlignment="Stretch"
  185. IsEnabled="False">
  186. <StackPanel Orientation="Horizontal">
  187. <Image
  188. Height="18"
  189. Margin="6,0"
  190. HorizontalAlignment="Left"
  191. Source="/BlackImages/Device_Camera.png" />
  192. <TextBlock
  193. Width="100"
  194. Padding="0,0,0,0"
  195. HorizontalAlignment="Center"
  196. FontSize="16"
  197. Text="摄像头" />
  198. </StackPanel>
  199. </Button>
  200. <Button
  201. x:Name="BtnSpeaker"
  202. Height="40"
  203. Margin="0,0,0,0"
  204. HorizontalAlignment="Stretch"
  205. VerticalAlignment="Stretch"
  206. IsEnabled="False">
  207. <StackPanel Orientation="Horizontal">
  208. <Image
  209. Height="18"
  210. Margin="6,0"
  211. HorizontalAlignment="Left"
  212. Source="/BlackImages/Device_Voice.png" />
  213. <TextBlock
  214. Width="100"
  215. Padding="0,0,0,0"
  216. HorizontalAlignment="Center"
  217. FontSize="16"
  218. Text="扬声器" />
  219. </StackPanel>
  220. </Button>
  221. <Button
  222. x:Name="BtnMicrophone"
  223. Height="40"
  224. Margin="0,0,0,0"
  225. HorizontalAlignment="Stretch"
  226. VerticalAlignment="Stretch"
  227. Cursor="Hand"
  228. IsEnabled="False">
  229. <StackPanel Orientation="Horizontal">
  230. <Image
  231. Height="18"
  232. Margin="6,0"
  233. HorizontalAlignment="Left"
  234. Source="/BlackImages/Device_Microphone.png" />
  235. <TextBlock
  236. Width="100"
  237. Padding="0,0,0,0"
  238. HorizontalAlignment="Center"
  239. FontSize="16"
  240. Text="麦克风" />
  241. </StackPanel>
  242. </Button>
  243. <Button
  244. x:Name="BtnDetectionPage"
  245. Height="40"
  246. Margin="0,0,0,0"
  247. HorizontalAlignment="Stretch"
  248. VerticalAlignment="Stretch"
  249. IsEnabled="False">
  250. <StackPanel Orientation="Horizontal">
  251. <Image
  252. Height="18"
  253. Margin="6,0"
  254. HorizontalAlignment="Left"
  255. Source="/BlackImages/Device_JC.png" />
  256. <TextBlock
  257. Width="100"
  258. Padding="0,0,0,0"
  259. HorizontalAlignment="Center"
  260. FontSize="16"
  261. Text="检测结果" />
  262. </StackPanel>
  263. </Button>
  264. </StackPanel>
  265. </Border>
  266. </Grid>
  267. <Grid
  268. x:Name="GridCamera"
  269. Grid.Column="1"
  270. Visibility="Visible">
  271. <Grid.RowDefinitions>
  272. <RowDefinition Height="64" />
  273. <RowDefinition Height="*" />
  274. <RowDefinition Height="64" />
  275. </Grid.RowDefinitions>
  276. <StackPanel
  277. Grid.Row="0"
  278. Margin="30,0,0,0"
  279. Orientation="Horizontal">
  280. <TextBlock
  281. Margin="0,5,0,0"
  282. HorizontalAlignment="Left"
  283. VerticalAlignment="Center"
  284. FontSize="16"
  285. Foreground="#FF000000"
  286. Text="摄像头" />
  287. <ComboBox
  288. x:Name="CmbCameraList"
  289. Width="236"
  290. Margin="16,0,0,0"
  291. Padding="30,0,0,0"
  292. HorizontalAlignment="Left"
  293. VerticalAlignment="Center"
  294. HorizontalContentAlignment="Center"
  295. VerticalContentAlignment="Center"
  296. Background="White"
  297. BorderThickness="0"
  298. Cursor="Hand"
  299. DisplayMemberPath="Name"
  300. FontSize="14"
  301. SelectionChanged="CmbCameraList_SelectionChanged"
  302. Style="{StaticResource stlComboBox}"
  303. Text="请选择" />
  304. </StackPanel>
  305. <Grid
  306. Grid.Row="1"
  307. Width="300"
  308. Height="160"
  309. Margin="30,0,0,0"
  310. HorizontalAlignment="Left"
  311. VerticalAlignment="Top">
  312. <Image
  313. x:Name="imgPlayer"
  314. RenderTransformOrigin="0.5,0.5"
  315. Stretch="Fill"
  316. Visibility="Visible">
  317. <Image.RenderTransform>
  318. <ScaleTransform ScaleX="-1" />
  319. </Image.RenderTransform>
  320. </Image>
  321. </Grid>
  322. <StackPanel
  323. Grid.Row="2"
  324. Margin="30,0,0,0"
  325. HorizontalAlignment="Right"
  326. Orientation="Horizontal">
  327. <Button
  328. x:Name="btn_camera_good"
  329. Width="100"
  330. Height="30"
  331. Margin="0,0,10,0"
  332. HorizontalAlignment="Right"
  333. VerticalAlignment="Center"
  334. Background="#3f6fff"
  335. Click="btn_camera_good_Click"
  336. Content="可以看见"
  337. Cursor="Hand"
  338. FontSize="15"
  339. Foreground="White"
  340. IsDefault="True" />
  341. <Button
  342. x:Name="btn_camera_bad"
  343. Width="100"
  344. Height="30"
  345. Margin="0,0,10,0"
  346. HorizontalAlignment="Right"
  347. VerticalAlignment="Center"
  348. Background="#F1F2F3"
  349. Click="btn_camera_bad_Click"
  350. Content="看不见"
  351. Cursor="Hand"
  352. FontSize="15"
  353. Foreground="#333333"
  354. IsDefault="True" />
  355. </StackPanel>
  356. </Grid>
  357. <Grid
  358. x:Name="GridSpeaker"
  359. Grid.Column="1"
  360. Visibility="Collapsed">
  361. <Grid.RowDefinitions>
  362. <RowDefinition Height="64" />
  363. <RowDefinition Height="*" />
  364. <RowDefinition Height="64" />
  365. </Grid.RowDefinitions>
  366. <Grid Grid.Row="0">
  367. <StackPanel
  368. Margin="30,20,0,0"
  369. HorizontalAlignment="Left"
  370. VerticalAlignment="Top"
  371. Orientation="Horizontal">
  372. <Button
  373. x:Name="BtnSpeakerDetection"
  374. Grid.Row="2"
  375. Width="100"
  376. Height="30"
  377. Margin="0"
  378. HorizontalAlignment="Stretch"
  379. VerticalAlignment="Stretch"
  380. Click="BtnSpeakerDetection_Click"
  381. Content="播放音频"
  382. Cursor="Hand"
  383. FontSize="15"
  384. Foreground="White"
  385. IsDefault="True">
  386. <Button.Template>
  387. <ControlTemplate TargetType="{x:Type Button}">
  388. <Border
  389. BorderBrush="{TemplateBinding BorderBrush}"
  390. BorderThickness="1"
  391. CornerRadius="7">
  392. <Border.Background>
  393. <Brush>#3f6fff</Brush>
  394. </Border.Background>
  395. <ContentPresenter
  396. HorizontalAlignment="Center"
  397. VerticalAlignment="Center"
  398. Content="{TemplateBinding Content}" />
  399. </Border>
  400. </ControlTemplate>
  401. </Button.Template>
  402. </Button>
  403. <MediaElement
  404. x:Name="MediaAudio"
  405. Width="0"
  406. LoadedBehavior="Manual"
  407. MediaEnded="MediaAudio_MediaEnded"
  408. MediaOpened="MediaAudio_MediaOpened"
  409. Stretch="Fill"
  410. Visibility="Hidden"
  411. Volume="1" />
  412. </StackPanel>
  413. </Grid>
  414. <Grid Grid.Row="1">
  415. <Grid
  416. Width="300"
  417. Height="100"
  418. Margin="30,0,0,0"
  419. HorizontalAlignment="Left"
  420. VerticalAlignment="Top"
  421. Background="#FFF1F2F8">
  422. <Image
  423. x:Name="ImgAcousticWave"
  424. HorizontalAlignment="Center"
  425. VerticalAlignment="Center"
  426. gif:ImageBehavior.AnimatedSource="/SkinImages/Other/Dev_AcousticWave2.gif"
  427. gif:ImageBehavior.AutoStart="True"
  428. gif:ImageBehavior.RepeatBehavior="Forever"
  429. Visibility="Hidden" />
  430. </Grid>
  431. </Grid>
  432. <Grid Grid.Row="2">
  433. <StackPanel
  434. Grid.Row="2"
  435. Margin="30,0,0,0"
  436. HorizontalAlignment="Right"
  437. Orientation="Horizontal">
  438. <Button
  439. x:Name="btn_speaker_good"
  440. Width="100"
  441. Height="30"
  442. Margin="0,0,10,0"
  443. HorizontalAlignment="Right"
  444. VerticalAlignment="Center"
  445. Background="#3f6fff"
  446. Click="btn_speaker_good_Click"
  447. Content="可以听见"
  448. Cursor="Hand"
  449. FontSize="15"
  450. Foreground="White"
  451. IsDefault="True" />
  452. <Button
  453. x:Name="btn_speaker_bad"
  454. Width="100"
  455. Height="30"
  456. Margin="0,0,10,0"
  457. HorizontalAlignment="Right"
  458. VerticalAlignment="Center"
  459. Background="#F1F2F3"
  460. Click="btn_speaker_bad_Click"
  461. Content="听不见"
  462. Cursor="Hand"
  463. FontSize="15"
  464. Foreground="#333333"
  465. IsDefault="True" />
  466. </StackPanel>
  467. </Grid>
  468. </Grid>
  469. <Grid
  470. x:Name="GridMicrophone"
  471. Grid.Column="1"
  472. Visibility="Collapsed">
  473. <Grid.RowDefinitions>
  474. <RowDefinition Height="64" />
  475. <RowDefinition Height="*" />
  476. <RowDefinition Height="64" />
  477. </Grid.RowDefinitions>
  478. <StackPanel
  479. Grid.Row="0"
  480. Margin="30,0,0,0"
  481. HorizontalAlignment="Left"
  482. VerticalAlignment="Center"
  483. Orientation="Horizontal">
  484. <TextBlock
  485. Margin="0,5,0,0"
  486. HorizontalAlignment="Left"
  487. VerticalAlignment="Top"
  488. FontSize="16"
  489. Foreground="#FF000000"
  490. Text="麦克风" />
  491. <ComboBox
  492. x:Name="CmbMicrophoneList"
  493. Width="236"
  494. Margin="16,0,0,0"
  495. Padding="30,0,0,0"
  496. HorizontalAlignment="Left"
  497. VerticalAlignment="Top"
  498. HorizontalContentAlignment="Center"
  499. VerticalContentAlignment="Center"
  500. Background="White"
  501. BorderThickness="0"
  502. Cursor="Hand"
  503. DisplayMemberPath="Value"
  504. FontSize="14"
  505. SelectedValuePath="Key"
  506. SelectionChanged="CmbMicrophoneList_SelectionChanged"
  507. Style="{StaticResource stlComboBox}"
  508. Text="请选择" />
  509. <Button
  510. x:Name="MicrophoneSetting"
  511. Width="60"
  512. Margin="20,0,0,0"
  513. Background="#3f6fff"
  514. Content="设置"
  515. FontSize="14"
  516. Foreground="White" />
  517. </StackPanel>
  518. <Grid Grid.Row="1">
  519. <Grid.RowDefinitions>
  520. <RowDefinition Height="Auto" />
  521. <RowDefinition Height="64" />
  522. </Grid.RowDefinitions>
  523. <view:ZClippingBorder
  524. x:Name="GridMicImg"
  525. Width="300"
  526. Height="20"
  527. Margin="30,0,0,0"
  528. HorizontalAlignment="Left"
  529. VerticalAlignment="Top"
  530. Background="#FFF1F2F8"
  531. ClipToBounds="True"
  532. CornerRadius="10"
  533. Visibility="Visible">
  534. <ProgressBar
  535. x:Name="volumeProgressBar"
  536. BorderThickness="0"
  537. Maximum="100" />
  538. </view:ZClippingBorder>
  539. </Grid>
  540. <Grid Grid.Row="2">
  541. <StackPanel
  542. Grid.Row="2"
  543. Margin="30,0,0,0"
  544. HorizontalAlignment="Right"
  545. Orientation="Horizontal">
  546. <Button
  547. x:Name="btn_microphone_good"
  548. Width="100"
  549. Height="30"
  550. Margin="0,0,10,0"
  551. HorizontalAlignment="Right"
  552. VerticalAlignment="Center"
  553. Background="#3f6fff"
  554. Click="btn_microphone_good_Click"
  555. Content="可以看见"
  556. Cursor="Hand"
  557. FontSize="15"
  558. Foreground="White"
  559. IsDefault="True" />
  560. <Button
  561. x:Name="btn_microphone_bad"
  562. Width="100"
  563. Height="30"
  564. Margin="0,0,10,0"
  565. HorizontalAlignment="Right"
  566. VerticalAlignment="Center"
  567. Background="#F1F2F3"
  568. Click="btn_microphone_bad_Click"
  569. Content="看不见"
  570. Cursor="Hand"
  571. FontSize="15"
  572. Foreground="#333333"
  573. IsDefault="True" />
  574. </StackPanel>
  575. </Grid>
  576. </Grid>
  577. <Grid
  578. x:Name="GridDetection"
  579. Grid.Column="1"
  580. Margin="25,15"
  581. Visibility="Collapsed">
  582. <Grid.ColumnDefinitions>
  583. <ColumnDefinition Width="50*" />
  584. <ColumnDefinition Width="50*" />
  585. </Grid.ColumnDefinitions>
  586. <Grid.RowDefinitions>
  587. <RowDefinition Height="50*" />
  588. <RowDefinition Height="50*" />
  589. <RowDefinition Height="50*" />
  590. <RowDefinition Height="50*" />
  591. <RowDefinition Height="50*" />
  592. <RowDefinition Height="50*" />
  593. <RowDefinition Height="50*" />
  594. </Grid.RowDefinitions>
  595. <Grid Grid.Row="0" Grid.Column="0">
  596. <TextBlock
  597. HorizontalAlignment="Center"
  598. VerticalAlignment="Center"
  599. FontSize="16"
  600. Foreground="#FF999999"
  601. Text="设备名称" />
  602. </Grid>
  603. <Grid Grid.Row="0" Grid.Column="1">
  604. <TextBlock
  605. HorizontalAlignment="Center"
  606. VerticalAlignment="Center"
  607. FontSize="16"
  608. Foreground="#FF999999"
  609. Text="检测结果" />
  610. </Grid>
  611. <!-- 摄像头 -->
  612. <Grid Grid.Row="1" Grid.Column="0">
  613. <TextBlock
  614. HorizontalAlignment="Center"
  615. VerticalAlignment="Center"
  616. FontSize="16"
  617. Foreground="#FF000000"
  618. Text="摄像头" />
  619. </Grid>
  620. <Grid Grid.Row="1" Grid.Column="1">
  621. <TextBlock
  622. x:Name="TxbCamera"
  623. HorizontalAlignment="Center"
  624. VerticalAlignment="Center"
  625. FontSize="16"
  626. Foreground="#FF000000"
  627. Text="" />
  628. </Grid>
  629. <!-- 扬声器 -->
  630. <Grid Grid.Row="2" Grid.Column="0">
  631. <TextBlock
  632. HorizontalAlignment="Center"
  633. VerticalAlignment="Center"
  634. FontSize="16"
  635. Foreground="#FF000000"
  636. Text="扬声器" />
  637. </Grid>
  638. <Grid Grid.Row="2" Grid.Column="1">
  639. <TextBlock
  640. x:Name="TxbSpeaker"
  641. HorizontalAlignment="Center"
  642. VerticalAlignment="Center"
  643. FontSize="16"
  644. Foreground="#FF000000"
  645. Text="" />
  646. </Grid>
  647. <!-- 麦克风 -->
  648. <Grid Grid.Row="3" Grid.Column="0">
  649. <TextBlock
  650. HorizontalAlignment="Center"
  651. VerticalAlignment="Center"
  652. FontSize="16"
  653. Foreground="#FF000000"
  654. Text="麦克风" />
  655. </Grid>
  656. <Grid Grid.Row="3" Grid.Column="1">
  657. <TextBlock
  658. x:Name="TxbMicrophone"
  659. HorizontalAlignment="Center"
  660. VerticalAlignment="Center"
  661. FontSize="16"
  662. Foreground="#FF000000"
  663. Text="" />
  664. </Grid>
  665. <Grid Grid.Row="6" Grid.Column="1">
  666. <Button
  667. x:Name="BtnDetection"
  668. Grid.Row="2"
  669. Width="116"
  670. Height="30"
  671. Margin="0"
  672. HorizontalAlignment="Right"
  673. VerticalAlignment="Stretch"
  674. Background="#3f6fff"
  675. Click="BtnDetection_Click"
  676. Content="重新检测"
  677. Cursor="Hand"
  678. FontSize="14"
  679. Foreground="White"
  680. IsDefault="True" />
  681. </Grid>
  682. </Grid>
  683. </Grid>
  684. </Grid>
  685. </Window>