星火微课系统客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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