星火微课系统客户端
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.

DeviceWindow.xaml 30KB

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