星火微课系统客户端
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

DeviceWindow.xaml 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. <Window x:Class="XHWK.WKTool.DeviceWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:XHWK.WKTool"
  7. mc:Ignorable="d"
  8. Title="设备检测" AllowsTransparency="True"
  9. ShowInTaskbar="False"
  10. WindowStartupLocation="CenterOwner"
  11. WindowStyle="None" BorderThickness="7" Width="650" Height="450">
  12. <Window.Effect>
  13. <DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
  14. </Window.Effect>
  15. <Window.Resources>
  16. <!--摄像头样式-->
  17. <Style TargetType="ToggleButton" x:Key="stlToggleButton">
  18. <Setter Property="Foreground" Value="White"></Setter>
  19. <Setter Property="Template">
  20. <Setter.Value>
  21. <ControlTemplate>
  22. <Border x:Name="Back" Background="#FFFFFFFF" BorderThickness="0" BorderBrush="Transparent">
  23. <Path Name="PathFill" Fill="Black" Width="8" Height="6" StrokeThickness="0" Data="M5,0 L10,10 L0,10 z" RenderTransformOrigin="0.5,0.5" Stretch="Fill">
  24. <Path.RenderTransform>
  25. <TransformGroup>
  26. <ScaleTransform/>
  27. <SkewTransform/>
  28. <RotateTransform Angle="180"/>
  29. <TranslateTransform/>
  30. </TransformGroup>
  31. </Path.RenderTransform>
  32. </Path>
  33. </Border>
  34. <ControlTemplate.Triggers>
  35. <Trigger Property="IsMouseOver" Value="True">
  36. <Setter TargetName="PathFill" Property="Fill" Value="White"></Setter>
  37. <Setter TargetName="Back" Property="Background" Value="#FFDCDCDC"></Setter>
  38. <Setter TargetName="Back" Property="BorderBrush" Value="#FFDCDCDC"></Setter>
  39. </Trigger>
  40. </ControlTemplate.Triggers>
  41. </ControlTemplate>
  42. </Setter.Value>
  43. </Setter>
  44. </Style>
  45. <Style TargetType="ComboBox" x:Key="stlComboBox">
  46. <Setter Property="SnapsToDevicePixels" Value="True"/>
  47. <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
  48. <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
  49. <Setter Property="ScrollViewer.CanContentScroll" Value="True"/>
  50. <Setter Property="HorizontalAlignment" Value="Left"></Setter>
  51. <Setter Property="Foreground" Value="Black"></Setter>
  52. <Setter Property="Height" Value="30"></Setter>
  53. <Setter Property="Margin" Value="0,0,0,0"></Setter>
  54. <Setter Property="Template">
  55. <Setter.Value>
  56. <ControlTemplate TargetType="ComboBox">
  57. <Grid Background="#F7FDF7">
  58. <Grid.ColumnDefinitions>
  59. <ColumnDefinition Width="0.8*"/>
  60. <ColumnDefinition Width="0.2*" MaxWidth="20"/>
  61. </Grid.ColumnDefinitions>
  62. <TextBox Grid.Column="0" IsReadOnly="True" VerticalContentAlignment="Center" Text="{TemplateBinding Text}"></TextBox>
  63. <Border Grid.Column="0" BorderThickness="1,1,1,1" BorderBrush="#FFDCDCDC" CornerRadius="1,0,0,1">
  64. </Border>
  65. <Border Grid.Column="1" BorderThickness="0,1,1,1" BorderBrush="#FFDCDCDC" CornerRadius="0,1,1,0">
  66. <ToggleButton Style="{StaticResource stlToggleButton}" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" ClickMode="Press"></ToggleButton>
  67. </Border>
  68. <Popup IsOpen="{TemplateBinding IsDropDownOpen}" Placement="Bottom" x:Name="Popup" Focusable="False" AllowsTransparency="True" PopupAnimation="Slide">
  69. <Border CornerRadius="1" MaxHeight="{TemplateBinding MaxDropDownHeight}" MinWidth="{TemplateBinding ActualWidth}" x:Name="DropDown" SnapsToDevicePixels="True">
  70. <Border.Effect>
  71. <DropShadowEffect Color="Black" BlurRadius="2" ShadowDepth="0" Opacity="0.5"/>
  72. </Border.Effect>
  73. <ScrollViewer Margin="4,6,4,6" Style="{DynamicResource ScrollViewerStyle}" MaxHeight="{TemplateBinding MaxDropDownHeight}" SnapsToDevicePixels="True" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" CanContentScroll="True">
  74. <!-- StackPanel 用于显示子级,方法是将 IsItemsHost 设置为 True -->
  75. <StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained" Background="White"/>
  76. </ScrollViewer>
  77. </Border>
  78. </Popup>
  79. </Grid>
  80. </ControlTemplate>
  81. </Setter.Value>
  82. </Setter>
  83. </Style>
  84. </Window.Resources>
  85. <Grid>
  86. <Grid.RowDefinitions>
  87. <RowDefinition Height="50"/>
  88. <RowDefinition Height="*"/>
  89. </Grid.RowDefinitions>
  90. <Grid x:Name="GridTitle_Black" Margin="0,0" Grid.Row="0" Background="#FFE9E9E9" MouseLeftButtonDown="Window_MouseLeftButtonDown">
  91. <TextBlock Text="设备检测" Foreground="#FF333333" FontSize="16" Padding="10,13,0,0" Grid.RowSpan="2"/>
  92. <Button Cursor="Hand" Grid.Row="0" x:Name="btnDown_Black" Content="×" VerticalAlignment="Top" Foreground="#FF333333" FontSize="30" Padding="10,2,10,0" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click"/>
  93. </Grid>
  94. <Grid Grid.Row="1">
  95. <Grid.ColumnDefinitions>
  96. <ColumnDefinition Width="100*"/>
  97. <ColumnDefinition Width="300*"/>
  98. </Grid.ColumnDefinitions>
  99. <Grid Grid.Column="0">
  100. <Border BorderBrush="#FFE9E9E9" BorderThickness="1" CornerRadius="7">
  101. <StackPanel Margin="0,10">
  102. <Button x:Name="BtnCamera" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="15,10,0,10" HorizontalAlignment="Left" VerticalAlignment="Stretch" Click="BtnCamera_Click">
  103. <StackPanel Orientation="Horizontal">
  104. <Image Source="/BlackImages/Device_Camera.png" Margin="6,0" HorizontalAlignment="Left"/>
  105. <TextBlock Text="摄像头" FontSize="20" Padding="0,2,0,0" HorizontalAlignment="Center"/>
  106. </StackPanel>
  107. </Button>
  108. <Button x:Name="BtnSpeaker" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="15,10,0,10" HorizontalAlignment="Left" VerticalAlignment="Stretch" Click="BtnSpeaker_Click">
  109. <StackPanel Orientation="Horizontal">
  110. <Image Source="/BlackImages/Device_Voice.png" Margin="6,0" HorizontalAlignment="Left"/>
  111. <TextBlock Text="扬声器" FontSize="20" Padding="0,2,0,0" HorizontalAlignment="Center"/>
  112. </StackPanel>
  113. </Button>
  114. <Button x:Name="BtnMicrophone" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="15,10,0,10" HorizontalAlignment="Left" VerticalAlignment="Stretch" Click="BtnMicrophone_Click">
  115. <StackPanel Orientation="Horizontal">
  116. <Image Source="/BlackImages/Device_Microphone.png" Margin="6,0" HorizontalAlignment="Left"/>
  117. <TextBlock Text="麦克风" FontSize="20" Padding="0,2,0,0" HorizontalAlignment="Center"/>
  118. </StackPanel>
  119. </Button>
  120. <Button x:Name="BtnDetectionPage" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="15,10,0,10" HorizontalAlignment="Left" VerticalAlignment="Stretch" Click="BtnDetectionPage_Click">
  121. <StackPanel Orientation="Horizontal">
  122. <Image Source="/BlackImages/Device_JC.png" Margin="6,0" HorizontalAlignment="Left"/>
  123. <TextBlock Text="设备检测" FontSize="20" Padding="0,2,0,0" HorizontalAlignment="Center"/>
  124. </StackPanel>
  125. </Button>
  126. </StackPanel>
  127. </Border>
  128. </Grid>
  129. <Grid x:Name="GridDetection" Grid.Column="1" Margin="25,15" Visibility="Collapsed">
  130. <Grid.ColumnDefinitions>
  131. <ColumnDefinition Width="50*"/>
  132. <ColumnDefinition Width="50*"/>
  133. </Grid.ColumnDefinitions>
  134. <Grid.RowDefinitions>
  135. <RowDefinition Height="50*"/>
  136. <RowDefinition Height="50*"/>
  137. <RowDefinition Height="50*"/>
  138. <RowDefinition Height="50*"/>
  139. <RowDefinition Height="50*"/>
  140. <RowDefinition Height="50*"/>
  141. <RowDefinition Height="50*"/>
  142. </Grid.RowDefinitions>
  143. <Grid Grid.Row="0" Grid.Column="0">
  144. <TextBlock Text="设备名称" FontSize="18" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF999999" ></TextBlock>
  145. </Grid>
  146. <Grid Grid.Row="0" Grid.Column="1">
  147. <TextBlock Text="检测结果" FontSize="18" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF999999" ></TextBlock>
  148. </Grid>
  149. <!--摄像头-->
  150. <Grid Grid.Row="1" Grid.Column="0">
  151. <TextBlock Text="摄像头" FontSize="17" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF000000" ></TextBlock>
  152. </Grid>
  153. <Grid Grid.Row="1" Grid.Column="1">
  154. <TextBlock x:Name="TxbCamera" Text="" FontSize="17" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF000000" ></TextBlock>
  155. </Grid>
  156. <!--扬声器-->
  157. <Grid Grid.Row="2" Grid.Column="0">
  158. <TextBlock Text="扬声器" FontSize="17" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF000000" ></TextBlock>
  159. </Grid>
  160. <Grid Grid.Row="2" Grid.Column="1">
  161. <TextBlock x:Name="TxbSpeaker" Text="" FontSize="17" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF000000" ></TextBlock>
  162. </Grid>
  163. <!--麦克风-->
  164. <Grid Grid.Row="3" Grid.Column="0">
  165. <TextBlock Text="麦克风" FontSize="17" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF000000" ></TextBlock>
  166. </Grid>
  167. <Grid Grid.Row="3" Grid.Column="1">
  168. <TextBlock x:Name="TxbMicrophone" Text="" FontSize="17" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF000000" ></TextBlock>
  169. </Grid>
  170. <Grid Grid.Row="6" Grid.Column="1">
  171. <Button x:Name="BtnDetection" Grid.Row="2" Width="116" Height="46" Content="开始检测" Foreground="White" FontSize="17" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnDetection_Click">
  172. <Button.Template>
  173. <ControlTemplate TargetType="{x:Type Button}">
  174. <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="25">
  175. <Border.Background>
  176. <Brush>#2E8CF0</Brush>
  177. </Border.Background>
  178. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Content}" />
  179. </Border>
  180. </ControlTemplate>
  181. </Button.Template>
  182. </Button>
  183. </Grid>
  184. </Grid>
  185. <Grid x:Name="GridCamera" Grid.Column="1" Visibility="Collapsed">
  186. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,20,0,0">
  187. <TextBlock Text="摄像头:" FontSize="17" Foreground="#FF000000" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0" ></TextBlock>
  188. <ComboBox Text="请选择" Cursor="Hand" Width="210" x:Name="CmbCameraList" Padding="30,0,10,0" Style="{StaticResource stlComboBox}" BorderThickness="0" DisplayMemberPath="Value" FontSize="14" SelectedValuePath="Key" Background="White" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" HorizontalAlignment="Left" VerticalAlignment="Top" />
  189. </StackPanel>
  190. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,60,0,0">
  191. <Button x:Name="BtnCameraSave" Grid.Row="2" Width="70" Height="30" Content="设置" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="10,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnCameraSave_Click">
  192. <Button.Template>
  193. <ControlTemplate TargetType="{x:Type Button}">
  194. <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7">
  195. <Border.Background>
  196. <Brush>#2E8CF0</Brush>
  197. </Border.Background>
  198. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Content}" />
  199. </Border>
  200. </ControlTemplate>
  201. </Button.Template>
  202. </Button>
  203. <Button x:Name="BtnCameraStat" Grid.Row="2" Width="70" Height="30" Content="检测" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="10,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnCameraStat_Click">
  204. <Button.Template>
  205. <ControlTemplate TargetType="{x:Type Button}">
  206. <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7">
  207. <Border.Background>
  208. <Brush>#2E8CF0</Brush>
  209. </Border.Background>
  210. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Content}" />
  211. </Border>
  212. </ControlTemplate>
  213. </Button.Template>
  214. </Button>
  215. <Button x:Name="BtnCameraStop" Grid.Row="2" Width="70" Height="30" Content="停止" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="10,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnCameraStop_Click">
  216. <Button.Template>
  217. <ControlTemplate TargetType="{x:Type Button}">
  218. <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7">
  219. <Border.Background>
  220. <Brush>#CCCCCC</Brush>
  221. </Border.Background>
  222. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Content}" />
  223. </Border>
  224. </ControlTemplate>
  225. </Button.Template>
  226. </Button>
  227. </StackPanel>
  228. <Image x:Name="imgPlayer" Width="300" Height="250" HorizontalAlignment="Left" Margin="30,100,0,0" VerticalAlignment="Top" Visibility="Visible"/>
  229. </Grid>
  230. <Grid x:Name="GridSpeaker" Grid.Column="1" Visibility="Collapsed">
  231. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,20,0,0">
  232. <Button x:Name="BtnSpeakerDetection" Grid.Row="2" Width="100" Height="30" Content="播放音频" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="10,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnSpeakerDetection_Click" >
  233. <Button.Template>
  234. <ControlTemplate TargetType="{x:Type Button}">
  235. <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7">
  236. <Border.Background>
  237. <Brush>#2E8CF0</Brush>
  238. </Border.Background>
  239. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Content}" />
  240. </Border>
  241. </ControlTemplate>
  242. </Button.Template>
  243. </Button>
  244. <MediaElement x:Name="MediaAudio" Stretch="Fill" LoadedBehavior="Manual" Width="0" Volume="1" MediaOpened="MediaAudio_MediaOpened" MediaEnded="MediaAudio_MediaEnded" Visibility="Hidden"/>
  245. <!--<Slider x:Name="timelineSlider" Minimum="0" VerticalAlignment="Center" BorderThickness="0,5,0,0" Width="150" Height="30" />-->
  246. </StackPanel>
  247. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,60,0,0">
  248. <TextBlock Text="声音采集:" FontSize="17" Foreground="#FF000000" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0" ></TextBlock>
  249. <TextBlock x:Name="TbxSpeakerDetection" Text="待检测" FontSize="17" Foreground="#FF000000" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0" ></TextBlock>
  250. </StackPanel>
  251. </Grid>
  252. <Grid x:Name="GridMicrophone" Grid.Column="1" Visibility="Visible">
  253. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,20,0,0">
  254. <TextBlock Text="麦克风:" FontSize="17" Foreground="#FF000000" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0" ></TextBlock>
  255. <ComboBox Text="请选择" Cursor="Hand" Width="210" x:Name="CmbMicrophoneList" Padding="30,0,10,0" Style="{StaticResource stlComboBox}" BorderThickness="0" DisplayMemberPath="Value" FontSize="14" SelectedValuePath="Key" Background="White" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" HorizontalAlignment="Left" VerticalAlignment="Top" />
  256. <Button x:Name="BtnMicrophoneSave" Grid.Row="2" Width="70" Height="30" Content="设置" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="10,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnMicrophoneSave_Click">
  257. <Button.Template>
  258. <ControlTemplate TargetType="{x:Type Button}">
  259. <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7">
  260. <Border.Background>
  261. <Brush>#2E8CF0</Brush>
  262. </Border.Background>
  263. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Content}" />
  264. </Border>
  265. </ControlTemplate>
  266. </Button.Template>
  267. </Button>
  268. </StackPanel>
  269. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,60,0,0">
  270. <Button x:Name="BtnMicrophoneDetection" Grid.Row="2" Width="100" Height="30" Content="开始录音" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnMicrophoneDetection_Click" >
  271. <Button.Template>
  272. <ControlTemplate TargetType="{x:Type Button}">
  273. <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7">
  274. <Border.Background>
  275. <Brush>#2E8CF0</Brush>
  276. </Border.Background>
  277. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Content}" />
  278. </Border>
  279. </ControlTemplate>
  280. </Button.Template>
  281. </Button>
  282. </StackPanel>
  283. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,100,0,0">
  284. <TextBlock Text="麦克风采集:" FontSize="17" Foreground="#FF000000" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0" ></TextBlock>
  285. <TextBlock x:Name="TbxMicrophoneDetection" Text="待检测" FontSize="17" Foreground="#FF000000" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,5,0,0" ></TextBlock>
  286. </StackPanel>
  287. <Button x:Name="BtnMicrophoneDetectionPlay" Content="播放" Foreground="White" FontSize="15" IsDefault="True" Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="30,142,347,214" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="BtnMicrophoneDetectionPlay_Click" >
  288. <Button.Template>
  289. <ControlTemplate TargetType="{x:Type Button}">
  290. <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7">
  291. <Border.Background>
  292. <Brush>#2E8CF0</Brush>
  293. </Border.Background>
  294. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding Content}" />
  295. </Border>
  296. </ControlTemplate>
  297. </Button.Template>
  298. </Button>
  299. <MediaElement x:Name="MediaAudioMicPlay" Stretch="Fill" LoadedBehavior="Manual" Width="0" Volume="1" MediaEnded="MediaAudioMicPlay_MediaEnded" Visibility="Hidden"/>
  300. </Grid>
  301. </Grid>
  302. </Grid>
  303. </Window>