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

XHMicroLessonSystemWindow.xaml 49KB

4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
4年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684
  1. <Window x:Class="XHWK.WKTool.XHMicroLessonSystemWindow"
  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:wfi ="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
  7. xmlns:aforge ="clr-namespace:AForge.Controls;assembly=AForge.Controls"
  8. xmlns:gifLib="http://wpfanimatedgif.codeplex.com"
  9. xmlns:local="clr-namespace:XHWK.WKTool"
  10. mc:Ignorable="d"
  11. Title="星火微课系统" Height="1036" Width="1290"
  12. WindowStyle="None" WindowStartupLocation="CenterScreen" AllowsTransparency="True" Background="Transparent" ShowInTaskbar="True" ResizeMode="CanMinimize" BorderThickness="7" MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
  13. <Window.Effect>
  14. <DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
  15. </Window.Effect>
  16. <!--<Grid>
  17. <Border CornerRadius="0,0,0,0"
  18. Background="White"
  19. BorderBrush="Gray"
  20. BorderThickness="1"
  21. Margin="10,10,10,10">
  22. <Border.Effect>
  23. <DropShadowEffect Color="Gray" BlurRadius="10" ShadowDepth="0" Opacity="0.8" />
  24. </Border.Effect>
  25. </Border>
  26. </Grid>-->
  27. <Window.Resources>
  28. <Style x:Key="radBase" TargetType="RadioButton">
  29. <Setter Property="IsChecked" Value="False"/>
  30. <Setter Property="Background" Value="Transparent"/>
  31. <Setter Property="Foreground" Value="#555"/>
  32. <Setter Property="Template">
  33. <Setter.Value>
  34. <ControlTemplate TargetType="RadioButton">
  35. <DockPanel Background="{TemplateBinding Background}" ToolTip="{TemplateBinding Content}" LastChildFill="False" Width="{TemplateBinding Width}">
  36. <Image Margin="2 0 0 0" DockPanel.Dock="Left" x:Name="_img" Stretch="None" Source="./Images/rdo_no.png"/>
  37. <TextBlock DockPanel.Dock="Left" Margin="3 0 0 0" VerticalAlignment="Center" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Content}" />
  38. </DockPanel>
  39. <ControlTemplate.Triggers>
  40. <Trigger Property="IsChecked" Value="true">
  41. <Setter TargetName="_img" Property="Source" Value="./Images/rdo_yes.png"/>
  42. </Trigger>
  43. </ControlTemplate.Triggers>
  44. </ControlTemplate>
  45. </Setter.Value>
  46. </Setter>
  47. </Style>
  48. <Style x:Key="NoMouseOverButtonStyle" TargetType="{x:Type Button}">
  49. <Setter Property="BorderThickness" Value="1"/>
  50. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
  51. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  52. <Setter Property="VerticalContentAlignment" Value="Center"/>
  53. <Setter Property="Padding" Value="1"/>
  54. <Setter Property="Template">
  55. <Setter.Value>
  56. <ControlTemplate TargetType="{x:Type Button}">
  57. <Border x:Name="Chrome" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
  58. <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  59. </Border>
  60. </ControlTemplate>
  61. </Setter.Value>
  62. </Setter>
  63. </Style>
  64. <!-- ListBox容器样式 -->
  65. <Style x:Key="ListBoxItemContainerStyle" TargetType="{x:Type ListBoxItem}">
  66. <Setter Property="HorizontalContentAlignment" Value="Stretch" />
  67. <Setter Property="HorizontalAlignment" Value="Stretch" />
  68. <Setter Property="Template">
  69. <Setter.Value>
  70. <ControlTemplate TargetType="{x:Type ListBoxItem}">
  71. <Border
  72. x:Name="itemBox"
  73. Background="Transparent"
  74. BorderBrush="Transparent"
  75. BorderThickness="0">
  76. <ContentPresenter />
  77. </Border>
  78. <ControlTemplate.Triggers />
  79. </ControlTemplate>
  80. </Setter.Value>
  81. </Setter>
  82. </Style>
  83. <DataTemplate x:Key="TongjiItem">
  84. <UniformGrid
  85. Height="50"
  86. Margin="0,0,0,0"
  87. Background="{Binding Colour}"
  88. Columns="5"
  89. Rows="1">
  90. <!--题号-->
  91. <TextBlock
  92. HorizontalAlignment="Center"
  93. VerticalAlignment="Center"
  94. FontSize="16"
  95. Text="{Binding SerialNumber}" />
  96. <Grid>
  97. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"
  98. VerticalAlignment="Center">
  99. <TextBox IsEnabled="{Binding IsEnabled,Mode=TwoWay}"
  100. HorizontalAlignment="Center"
  101. VerticalAlignment="Center"
  102. FontSize="16" Height="30" Padding="0,5,0,0"
  103. Text="{Binding VideoName,Mode=TwoWay}" Width="150"/>
  104. <Button x:Name="btnModify" Background="Transparent"
  105. Cursor="Hand"
  106. BorderThickness="0" Click="BtnModify_Click">
  107. <Grid>
  108. <Image Source="./Images/fileDirectory3.png" Margin="6,6,6,6" Height="20"/>
  109. <Image Source="./Images/fileDirectory4.png" Margin="6,6,6,6" Height="20"/>
  110. </Grid>
  111. </Button>
  112. </StackPanel>
  113. </Grid>
  114. <!--分值-->
  115. <!--
  116. <TextBlock
  117. HorizontalAlignment="Center"
  118. VerticalAlignment="Center"
  119. FontSize="15"
  120. Text="{Binding VideoDuration}" />-->
  121. <!--平均时长-->
  122. <TextBlock
  123. HorizontalAlignment="Center"
  124. VerticalAlignment="Center"
  125. FontSize="16"
  126. Text="{Binding VideoSize}" />
  127. <!--最短时长-->
  128. <TextBlock
  129. HorizontalAlignment="Center"
  130. VerticalAlignment="Center"
  131. FontSize="16"
  132. Text="{Binding VideoTime}" />
  133. <Grid>
  134. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"
  135. VerticalAlignment="Center">
  136. <Button x:Name="btnPlay" Background="Transparent"
  137. Cursor="Hand"
  138. BorderThickness="0" Click="BtnPlay_Click">
  139. <Grid>
  140. <Image Source="./Images/fileDirectory1.png" Margin="10" Height="20"/>
  141. <Image Source="./Images/fileDirectory2.png" Margin="10" Height="20"/>
  142. </Grid>
  143. </Button>
  144. <Button x:Name="btnUpload" Background="Transparent"
  145. Cursor="Hand"
  146. BorderThickness="0" Click="BtnUploads_Click">
  147. <Grid>
  148. <Image Source="./Images/fileDirectory7.png" Margin="6,6,6,6" Height="20" Visibility="{Binding Visi}"/>
  149. <Image Source="./Images/fileDirectory8.png" Margin="6,6,6,6" Height="20" Visibility="{Binding Coll}"/>
  150. </Grid>
  151. </Button>
  152. <Button x:Name="btnDelete" Background="Transparent"
  153. Cursor="Hand"
  154. BorderThickness="0" Click="BtnDelete_Click">
  155. <Grid>
  156. <Image Source="./Images/fileDirectory5.png" Margin="6,6,6,6" Height="20"/>
  157. <Image Source="./Images/fileDirectory6.png" Margin="6,6,6,6" Height="20"/>
  158. </Grid>
  159. </Button>
  160. </StackPanel>
  161. </Grid>
  162. </UniformGrid>
  163. </DataTemplate>
  164. </Window.Resources>
  165. <Window.BorderBrush>
  166. <RadialGradientBrush>
  167. <GradientStop Offset="0.997" Color="#001B1919"/>
  168. <GradientStop Color="Black"/>
  169. </RadialGradientBrush>
  170. </Window.BorderBrush>
  171. <Viewbox>
  172. <Grid x:Name="GridContent" Height="1030" Width="1276">
  173. <!--分3行-->
  174. <Grid.RowDefinitions>
  175. <RowDefinition Height="auto"/>
  176. <RowDefinition Height="*"/>
  177. <RowDefinition Height="auto"/>
  178. </Grid.RowDefinitions>
  179. <Grid Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown" Margin="0,0,0,0" MinHeight="100px" MouseDown="Grid_MouseDown">
  180. <Grid.RowDefinitions>
  181. <RowDefinition Height="auto"/>
  182. <RowDefinition Height="auto"/>
  183. </Grid.RowDefinitions>
  184. <!--第一行-->
  185. <StackPanel Grid.Row="0" Orientation="Horizontal" Margin="10,2,10,0">
  186. <Image Source="./Images/microLessonSystem_0.png"/>
  187. <TextBlock Text="星火微课系统" FontSize="14" Padding="5,0,0,0" Foreground="#FFFFFF"/>
  188. </StackPanel>
  189. <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Right" Margin="10,2,20,0">
  190. <Button Cursor="Hand" x:Name="btnLoginType" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,10,0" Click="BtnLoginType_Click">
  191. <StackPanel Orientation="Horizontal">
  192. <Image Source="./Images/microLessonSystem_9.png"/>
  193. <TextBlock x:Name="txbLoginType" Text="未登录" FontSize="14" Padding="5,0,0,0" Foreground="#FFFFFF"
  194. />
  195. </StackPanel>
  196. </Button>
  197. <Button Cursor="Hand" x:Name="btnShrink" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnShrink_Click" Margin="8,0,8,0">
  198. <Image Source="./Images/microLessonSystem_19.png"/>
  199. </Button>
  200. <!--<Button Cursor="Hand" x:Name="btnEnlarge" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="8,0,8,0">
  201. <Image Source="./Images/microLessonSystem_8.png"/>
  202. </Button>-->
  203. <Button Cursor="Hand" x:Name="btnDown" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click" >
  204. <Image Source="./Images/microLessonSystem_10.png"/>
  205. </Button>
  206. </StackPanel>
  207. <!--第二行-->
  208. <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,0,0,5" HorizontalAlignment="Left">
  209. <Button Cursor="Hand" x:Name="btnScreenRecording" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnScreenRecording_Click" Margin="30,0,0,0">
  210. <StackPanel Orientation="Vertical">
  211. <Image x:Name="ImgScreenRecording" Source="./Images/microLessonSystem_2.png"/>
  212. <Image x:Name="ImgScreenRecordingTwo" Source="./Images/microLessonSystem_3.png" Visibility="Collapsed"/>
  213. <TextBlock x:Name="TxbRecordScreenWord" Text="录屏" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  214. </StackPanel>
  215. </Button>
  216. <Button Cursor="Hand" x:Name="btnScreenshot" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="30,0,0,0" Click="BtnScreenshot_Click">
  217. <StackPanel Orientation="Vertical">
  218. <Image x:Name="ImgScreenshot" Source="./Images/microLessonSystem_12.png"/>
  219. <Image x:Name="ImgScreenshotTwo" Source="./Images/microLessonSystem_11.png" Visibility="Collapsed"/>
  220. <TextBlock Text="截图" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  221. </StackPanel>
  222. </Button>
  223. <Button Cursor="Hand" x:Name="btnImport" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnImport_Click" Margin="30,0,0,0">
  224. <StackPanel Orientation="Vertical">
  225. <Image x:Name="ImgImport" Source="./Images/microLessonSystem_6.png"/>
  226. <Image x:Name="ImgImportTwo" Source="./Images/microLessonSystem_7.png" Visibility="Collapsed"/>
  227. <TextBlock Text="导入" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  228. </StackPanel>
  229. </Button>
  230. <Button Cursor="Hand" x:Name="BtnRecord" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="100,0,0,0" Click="BtnRecord_Click">
  231. <StackPanel Orientation="Vertical">
  232. <Image x:Name="ImgRecord" Source="./Images/microLessonSystem_14.png"/>
  233. <Image x:Name="ImgRecordTwo" Source="./Images/microLessonSystem_13.png" Visibility="Collapsed"/>
  234. <TextBlock x:Name="TxbRecordingWord" Text="录制" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  235. </StackPanel>
  236. </Button>
  237. <Button Cursor="Hand" x:Name="btnStop" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnStop_Click" Margin="30,0,0,0">
  238. <StackPanel Orientation="Vertical">
  239. <Image x:Name="ImgStop" Source="./Images/microLessonSystem_21.png"/>
  240. <Image x:Name="ImgStopTwo" Source="./Images/microLessonSystem_20.png" Visibility="Collapsed"/>
  241. <TextBlock Text="停止" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  242. </StackPanel>
  243. </Button>
  244. <TextBlock x:Name="txbTime" Text="" FontSize="20" Foreground="#FFFFFF" Margin="20,20,0,0"/>
  245. </StackPanel>
  246. <StackPanel Grid.Row="1" HorizontalAlignment="Center">
  247. <TextBlock x:Name="txbType" Text="" FontSize="20" Foreground="#FFFFFF" Margin="0,25,0,0"/>
  248. </StackPanel>
  249. <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,10,5">
  250. <Button Cursor="Hand" x:Name="btnAdd" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnAdd_Click" Margin="0,0,30,0">
  251. <StackPanel Orientation="Vertical">
  252. <Image x:Name="ImgAdd" Source="./Images/microLessonSystem_25.png" Visibility="Visible"/>
  253. <Image x:Name="ImgAddTwo" Source="./Images/microLessonSystem_24.png" Visibility="Collapsed"/>
  254. <TextBlock Text="增加" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  255. </StackPanel>
  256. </Button>
  257. <Button Cursor="Hand" x:Name="btnPrint" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnPrint_Click">
  258. <StackPanel Orientation="Vertical">
  259. <Image x:Name="ImgPrint" Source="./Images/microLessonSystem_4.png" Visibility="Collapsed"/>
  260. <Image x:Name="ImgPrintTwo" Source="./Images/microLessonSystem_5.png" Visibility="Visible"/>
  261. <TextBlock Text="打印" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  262. </StackPanel>
  263. </Button>
  264. <!--<Button Cursor="Hand" x:Name="btnUpload" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnUpload_Click" Margin="0,0,30,0">
  265. <StackPanel Orientation="Vertical">
  266. <Image x:Name="ImgUpload" Source="./Images/microLessonSystem_15.png" Visibility="Collapsed"/>
  267. <Image x:Name="ImgUploadTwo" Source="./Images/microLessonSystem_16.png" Visibility="Visible"/>
  268. <TextBlock Text="上传" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  269. </StackPanel>
  270. </Button>-->
  271. <Button Cursor="Hand" x:Name="btnUpload" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnUpload_Click">
  272. <StackPanel Orientation="Vertical">
  273. <Image x:Name="ImgUpload" Source="./Images/microLessonSystem_22.png" Visibility="Visible"/>
  274. <Image x:Name="ImgUploadTwo" Source="./Images/microLessonSystem_1.png" Visibility="Collapsed"/>
  275. <TextBlock Text="我的" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  276. </StackPanel>
  277. </Button>
  278. <Button Cursor="Hand" x:Name="btnSetUp" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnSetUp_Click">
  279. <StackPanel Orientation="Vertical">
  280. <Image x:Name="ImgSetUp" Source="./Images/microLessonSystem_18.png" Visibility="Visible"/>
  281. <Image x:Name="ImgSetUpTwo" Source="./Images/microLessonSystem_17.png" Visibility="Collapsed"/>
  282. <TextBlock Text="设置" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  283. </StackPanel>
  284. </Button>
  285. </StackPanel>
  286. </Grid>
  287. <!--主内容-->
  288. <Grid Grid.Row="1" x:Name="GridMain" Visibility="Visible" MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
  289. <ScrollViewer x:Name="scroMain" VerticalScrollBarVisibility="Visible" MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
  290. <Grid x:Name="gridM" Margin="0,0,0,0" Background="#FFFFFF" Visibility="Visible" Height="1780" MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
  291. <Grid>
  292. <Border Grid.Row="1" CornerRadius="5">
  293. <Grid x:Name="IMG" Margin="0,0,0,0">
  294. <Grid.Resources>
  295. <TransformGroup x:Key="Imageview">
  296. <ScaleTransform/>
  297. <TranslateTransform/>
  298. </TransformGroup>
  299. </Grid.Resources>
  300. <!--<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Disabled" Cursor="SizeAll"
  301. Margin="0,0,0,0" Focusable="False" x:Name="BackFrame">
  302. <ContentControl MouseLeftButtonDown="IMG1_MouseLeftButtonDown"
  303. MouseLeftButtonUp="IMG1_MouseLeftButtonUp"
  304. MouseMove="IMG1_MouseMove"
  305. MouseWheel="IMG1_MouseWheel" >
  306. </ContentControl>
  307. </ScrollViewer>-->
  308. <!--图片表框 -->
  309. <Rectangle x:Name="RectImgBorder" Cursor="SizeAll" Fill="#00000000" HorizontalAlignment="Left" Stroke="#2D8CF0" VerticalAlignment="Top" Width="300" Height="300" Visibility="Hidden" Margin="373,175,0,0" StrokeThickness="4" StrokeDashArray="4 4" SnapsToDevicePixels="True"/>
  310. <Image Name="imgCanvas" Height="0" VerticalAlignment="Top" HorizontalAlignment="Left" Stretch="Fill" MouseDown="PicEMap_MouseDown" RenderTransform="{StaticResource Imageview}" MouseRightButtonDown="imgCanvas_MouseRightButtonDown" MouseLeftButtonDown="imgCanvas_MouseLeftButtonDown" Focusable="True" MouseMove="imgCanvas_MouseMove" MouseUp="imgCanvas_MouseUp"/>
  311. <!--四个点 -->
  312. <Canvas>
  313. <Thumb x:Name="RectLeftUp" Cursor="SizeNWSE" HorizontalAlignment="Left" Height="20" VerticalAlignment="Top" Width="20" Visibility="Hidden" Canvas.Left="314" Canvas.Top="157" Background="White" BorderBrush="#2D8CF0" BorderThickness="2" DragDelta="RectRightUp_DragDelta" DragStarted="RectRightUp_DragStarted" DragCompleted="RectRightUp_DragCompleted"/>
  314. <Thumb x:Name="RectRightUp" Cursor="SizeNESW" HorizontalAlignment="Left" Height="20" VerticalAlignment="Top" Width="20" Visibility="Hidden" Canvas.Left="775" Canvas.Top="157" Background="White" BorderBrush="#2D8CF0" BorderThickness="2" DragDelta="RectRightUp_DragDelta" DragStarted="RectRightUp_DragStarted" DragCompleted="RectRightUp_DragCompleted"/>
  315. <Thumb x:Name="RectLeftDown" Cursor="SizeNESW" HorizontalAlignment="Left" Height="20" VerticalAlignment="Top" Width="20" Visibility="Hidden" Canvas.Left="314" Canvas.Top="508" Background="White" BorderBrush="#2D8CF0" BorderThickness="2" DragDelta="RectRightUp_DragDelta" DragStarted="RectRightUp_DragStarted" DragCompleted="RectRightUp_DragCompleted"/>
  316. <Thumb x:Name="RectRightDown" Cursor="SizeNWSE" HorizontalAlignment="Left" Height="20" VerticalAlignment="Top" Width="20" Visibility="Hidden" Canvas.Left="775" Canvas.Top="508" Background="White" BorderBrush="#2D8CF0" BorderThickness="2" DragDelta="RectRightUp_DragDelta" DragStarted="RectRightUp_DragStarted" DragCompleted="RectRightUp_DragCompleted"/>
  317. </Canvas>
  318. </Grid>
  319. </Border>
  320. </Grid>
  321. <Image x:Name="imgDocumentation" Visibility="Visible" VerticalAlignment="Top" Stretch="Fill"/>
  322. <Image x:Name="imgPPT" Visibility="Visible" VerticalAlignment="Top"/>
  323. <!--导入图片-->
  324. <!--<Button Cursor="Hand" x:Name="btnOk" Height="50" Width="50" Content="√" FontSize="26" Background="#2E8CF0" Foreground="#FFFFFF" Click="btnOk_Click" Visibility="Collapsed"/>-->
  325. <InkCanvas Grid.Row="0" x:Name="blackboard_canvas" Background="Transparent" Visibility="Collapsed" Grid.ColumnSpan="2"/>
  326. <!--摄像头-->
  327. <!--<wfi:WindowsFormsHost Grid.Row="0" Grid.Column="1" x:Name="wfhCamera" Height="124" Width="172" HorizontalAlignment="Right" Margin="0,10,30.10,0" VerticalAlignment="Top">
  328. <aforge:VideoSourcePlayer x:Name="player" Height="124" Width="172" />
  329. </wfi:WindowsFormsHost>-->
  330. <!--<Image x:Name="imgLoad"
  331. Width="300"
  332. Height="300"
  333. gifLib:ImageBehavior.AnimatedSource="./Images/img_load.gif" VerticalAlignment="Top" Margin="0,200,0,0" Visibility="Visible"/>-->
  334. </Grid>
  335. </ScrollViewer>
  336. <Image x:Name="imgPlayerLeft" Width="172" Height="124" Source="./Images/microLessonSystem_17.png" HorizontalAlignment="Left" Margin="10,7,10,10" VerticalAlignment="Top" Visibility="Collapsed"/>
  337. <Image x:Name="imgPlayerRight" Width="172" Height="124" Source="./Images/microLessonSystem_17.png" HorizontalAlignment="Right" Margin="10,7,26,10" VerticalAlignment="Top" Visibility="Collapsed"/>
  338. <Image x:Name="imgPlayerLeftUnder" Width="172" Height="124" Source="./Images/microLessonSystem_17.png" HorizontalAlignment="Left" Margin="10,7,10,10" VerticalAlignment="Bottom" Visibility="Collapsed"/>
  339. <Image x:Name="imgPlayerRightUnder" Width="172" Height="124" Source="./Images/microLessonSystem_17.png" HorizontalAlignment="Right" Margin="10,7,26,10" VerticalAlignment="Bottom" Visibility="Collapsed"/>
  340. <Label Content="" Grid.Column="0" Height="2" Width="2" HorizontalAlignment="Left" VerticalAlignment="Top" Background="#FF0F0F0F" Margin="1,0,0,0"/>
  341. <Label Content="" Grid.Column="1" Height="2" Width="2" Background="#FF0F0F0F" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,16,0"/>
  342. <Label Content="" Grid.Column="0" Height="2" Width="2" Background="#FF0F0F0F" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="1,0,0,0"/>
  343. <Label Content="" Grid.Column="1" Height="2" Width="2" Background="#FF0F0F0F" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,16,0"/>
  344. <!--<TextBlock x:Name="txbTime" Text="123456" FontSize="20" Foreground="#000000" Margin="0,0,0,10" HorizontalAlignment="Left" VerticalAlignment="Bottom"/>-->
  345. </Grid>
  346. <!--页码-->
  347. <Grid Grid.Row="1" x:Name="gridPage" Visibility="Collapsed" MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
  348. <StackPanel Grid.Row="0" Orientation="Horizontal" Background="Transparent" Width="180" HorizontalAlignment="Center" Height="30" Margin="0,0,0,0" Grid.Column="1" VerticalAlignment="Bottom">
  349. <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
  350. x:Name="last_button"
  351. Width="60" Height="20"
  352. Click="last_button_Click">
  353. <Button.Content>
  354. <StackPanel>
  355. <Image Width="16" Height="12" Source=".\Images\class_p1.png" />
  356. </StackPanel>
  357. </Button.Content>
  358. </Button>
  359. <Grid Width="60" Background="Transparent" MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
  360. <Grid.RowDefinitions>
  361. <RowDefinition Height="311*"/>
  362. <RowDefinition Height="483*"/>
  363. </Grid.RowDefinitions>
  364. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,-12,0,0" Grid.Row="1" Background="Transparent">
  365. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Background="Transparent">
  366. <TextBlock x:Name="txbCurrpage" Text="{Binding currpage}" TextAlignment="Center" FontSize="15"/>
  367. <TextBlock Text="/" TextAlignment="Center" FontSize="15"/>
  368. <TextBlock Text="{Binding pagenum}" TextAlignment="Center" FontSize="15"/>
  369. </StackPanel>
  370. </StackPanel>
  371. </Grid>
  372. <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
  373. x:Name="next_btn" Background="Transparent"
  374. Width="60" Height="20"
  375. Click="next_btn_Click">
  376. <Button.Content>
  377. <StackPanel>
  378. <Image Width="16" Height="12" Source=".\Images\class_p2.png" />
  379. </StackPanel>
  380. </Button.Content>
  381. </Button>
  382. </StackPanel>
  383. </Grid>
  384. <!--设置-->
  385. <ScrollViewer x:Name="gridSetUp" Grid.Row="1" VerticalScrollBarVisibility="Auto" Visibility="Collapsed">
  386. <Grid Grid.Row="1" Background="#FFFFFF" >
  387. <Grid.RowDefinitions>
  388. <RowDefinition Height="80"/>
  389. <RowDefinition Height="50"/>
  390. <RowDefinition Height="50"/>
  391. <RowDefinition Height="50"/>
  392. <RowDefinition Height="50"/>
  393. <RowDefinition Height="50"/>
  394. <RowDefinition Height="50"/>
  395. <RowDefinition Height="50"/>
  396. <RowDefinition Height="50"/>
  397. <RowDefinition Height="50"/>
  398. <RowDefinition Height="*"/>
  399. </Grid.RowDefinitions>
  400. <Grid.ColumnDefinitions>
  401. <ColumnDefinition Width="100"/>
  402. <ColumnDefinition Width="*"/>
  403. </Grid.ColumnDefinitions>
  404. <TextBlock Grid.Row="0" Grid.Column="0" Text="智能笔" FontSize="16" Foreground="#333333" HorizontalAlignment="Right" Margin="0,30,0,0"/>
  405. <TextBlock Grid.Row="0" Grid.Column="1" x:Name="txbNotConnecteds" Text="未连接" FontSize="14" Foreground="#333333" Margin="30,30,0,0"/>
  406. <TextBlock Grid.Row="1" Grid.Column="0" Text="视频格式" FontSize="16" Foreground="#333333" HorizontalAlignment="Right"/>
  407. <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
  408. <RadioButton x:Name="rbnMP4" Cursor="Hand" Style="{StaticResource radBase}" Content=" MP4" FontSize="14" Foreground="#333333" VerticalAlignment="Top" IsChecked="True"/>
  409. <RadioButton x:Name="rbnFLV" Cursor="Hand" Style="{StaticResource radBase}" Content=" FLV" FontSize="14" Foreground="#333333" VerticalAlignment="Top" Margin="20,0,0,0"/>
  410. <RadioButton x:Name="rbnAVI" Cursor="Hand" Style="{StaticResource radBase}" Content=" AVI" FontSize="14" Foreground="#333333" Margin="20,-26,0,0" Visibility="Collapsed"/>
  411. </StackPanel>
  412. <TextBlock Grid.Row="2" Grid.Column="0" Text="摄像头位置" FontSize="16" Foreground="#333333" HorizontalAlignment="Right"/>
  413. <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
  414. <RadioButton Cursor="Hand" x:Name="rbnRight" Style="{StaticResource radBase}" Content=" 右上" FontSize="14" Foreground="#333333" VerticalAlignment="Top" Margin="0,0,0,0" IsChecked="True"/>
  415. <RadioButton Cursor="Hand" x:Name="rbnRightUnder" Style="{StaticResource radBase}" Content=" 右下" FontSize="14" Foreground="#333333" VerticalAlignment="Top" Margin="20,0,0,0"/>
  416. <RadioButton Cursor="Hand" x:Name="rbnLeft" Style="{StaticResource radBase}" Content=" 左上" FontSize="14" Foreground="#333333" VerticalAlignment="Top" Margin="20,0,0,0" />
  417. <RadioButton Cursor="Hand" x:Name="rbnLeftUnder" Style="{StaticResource radBase}" Content=" 左下" FontSize="14" Foreground="#333333" VerticalAlignment="Top" Margin="20,0,0,0"/>
  418. </StackPanel>
  419. <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0" Visibility="Collapsed">
  420. <TextBlock Text="视频声音" FontSize="16" Foreground="#2D8CF0" Width="80"/>
  421. <RadioButton x:Name="rbnY" Cursor="Hand" Content="有" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
  422. <RadioButton x:Name="rbnN" Cursor="Hand" Content="无" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
  423. </StackPanel>
  424. <!--接口地址-->
  425. <TextBlock Grid.Row="3" Grid.Column="0" Text="接口地址" FontSize="16" Foreground="#333333" HorizontalAlignment="Right" Padding="0,0,0,0"/>
  426. <StackPanel Grid.Row="3" Grid.Column="1" Orientation="Horizontal" Margin="30,0,0,0">
  427. <TextBlock Text="http://" FontSize="14" Padding="0,0,5,0"/>
  428. <TextBox x:Name="txbInterfaceAddress" FontSize="14" Width="467" Height="30" Margin="0,-30,0,0" VerticalContentAlignment="Center" Padding="5,0,0,0"/>
  429. </StackPanel>
  430. <!--上传地址-->
  431. <TextBlock Grid.Row="4" Grid.Column="0" Text="上传地址" FontSize="16" Foreground="#333333" HorizontalAlignment="Right" Padding="0,0,0,0"/>
  432. <StackPanel Grid.Row="4" Grid.Column="1" Orientation="Horizontal" Margin="30,0,0,0">
  433. <TextBlock Text="http://" FontSize="14" Padding="0,0,5,0"/>
  434. <TextBox x:Name="txbImageUploadAddress" FontSize="14" Margin="0,-30,0,0" Width="467" Height="30" VerticalContentAlignment="Center" Padding="5,0,0,0"/>
  435. </StackPanel>
  436. <!--下载地址-->
  437. <TextBlock Grid.Row="5" Grid.Column="0" Text="下载地址" FontSize="16" Foreground="#333333" HorizontalAlignment="Right" Padding="0,0,0,0"/>
  438. <StackPanel Grid.Row="5" Grid.Column="1" Orientation="Horizontal" Margin="30,0,0,0">
  439. <TextBlock Text="http://" FontSize="14" Padding="0,0,5,0"/>
  440. <TextBox x:Name="txbPictureShowsAddress" FontSize="14" Margin="0,-30,0,0" Width="467" Height="30" VerticalContentAlignment="Center" Padding="5,0,0,0"/>
  441. </StackPanel>
  442. <TextBlock Grid.Row="6" Grid.Column="0" x:Name="txbFilePath" Text="文件路径" FontSize="16" HorizontalAlignment="Right" Foreground="#333333" Padding="0,0,0,0" />
  443. <StackPanel Grid.Row="6" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
  444. <Border Background="#CDD6E0" Width="522" Height="30" CornerRadius="3" Margin="0,-30,0,0">
  445. <Label x:Name="txbStoragePath" Background="#FFFFFF" Margin="0,0,0,0" Content="D:\" FontSize="14" Foreground="#333333" Padding="10,7,2,2" Width="520" Height="28" BorderBrush="{x:Null}" BorderThickness="0"/>
  446. </Border>
  447. <!--浏览按钮-->
  448. <Button Cursor="Hand" x:Name="btnBrowse" Content="浏览" FontSize="14" Width="80" Height="30" Margin="18,-30,0,0" Click="BtnBrowse_Click">
  449. <Button.Template>
  450. <ControlTemplate TargetType="{x:Type Button}">
  451. <Border
  452. BorderBrush="{TemplateBinding Control.BorderBrush}"
  453. BorderThickness="1"
  454. CornerRadius="2">
  455. <Border.Background>#EBEFF3</Border.Background>
  456. <ContentPresenter
  457. HorizontalAlignment="Center"
  458. VerticalAlignment="Center"
  459. Content="{TemplateBinding ContentControl.Content}" />
  460. </Border>
  461. </ControlTemplate>
  462. </Button.Template>
  463. </Button>
  464. </StackPanel>
  465. <TextBlock Grid.Row="7" Grid.Column="0" Text="录屏快捷键" FontSize="16" HorizontalAlignment="Right" Foreground="#333333" Margin="0,0,0,0"/>
  466. <StackPanel Grid.Row="7" Grid.Column="1">
  467. <TextBlock FontSize="14" Foreground="#333333" Text="开始/暂停:Ctrl+F5 停止:Ctrl+S 退出讲评:鼠标右键" Margin="30,0,0,0"/>
  468. </StackPanel>
  469. <TextBlock Grid.Row="9" Grid.Column="0" Text="版本号" FontSize="16" HorizontalAlignment="Right" Foreground="#333333" Margin="0,0,0,0"/>
  470. <StackPanel Grid.Row="9" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
  471. <TextBlock x:Name="txbv" Text="V0.0.0" FontSize="16" Foreground="#333333"/>
  472. </StackPanel>
  473. <TextBlock Grid.Row="8" Grid.Column="0" Text="版权所有" FontSize="16" HorizontalAlignment="Right" Foreground="#333333" Margin="0,0,0,0"/>
  474. <StackPanel Grid.Row="8" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
  475. <TextBlock Text="河南星火燎原软件科技有限公司" FontSize="14" Foreground="#333333"/>
  476. </StackPanel>
  477. <!--第四行 开始按钮-->
  478. <Button Cursor="Hand" Grid.Row="10" Grid.ColumnSpan="2" x:Name="btnSave" Content="保存" FontSize="18" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="115" Height="45" Margin="10,10,10,10" Click="BtnSave_Click">
  479. <Button.Template>
  480. <ControlTemplate TargetType="{x:Type Button}">
  481. <Border
  482. BorderBrush="{TemplateBinding Control.BorderBrush}"
  483. BorderThickness="1"
  484. CornerRadius="2">
  485. <Border.Background>#2D8CF0</Border.Background>
  486. <ContentPresenter
  487. HorizontalAlignment="Center"
  488. VerticalAlignment="Center"
  489. Content="{TemplateBinding ContentControl.Content}" />
  490. </Border>
  491. </ControlTemplate>
  492. </Button.Template>
  493. </Button>
  494. </Grid>
  495. </ScrollViewer>
  496. <!--上传-->
  497. <Grid Grid.Row="1" x:Name="gridUpload" Visibility="Hidden">
  498. <Border Background="#EFF1F8">
  499. <Grid Background="#FFFFFF" Margin="0,0,0,0">
  500. <!--分4行-->
  501. <Grid.RowDefinitions>
  502. <RowDefinition Height="*"/>
  503. <RowDefinition Height="30"/>
  504. </Grid.RowDefinitions>
  505. <!--第二行 内容-->
  506. <Grid Grid.Row="0" Margin="0,0,0,0">
  507. <Grid.RowDefinitions>
  508. <RowDefinition Height="45"/>
  509. <RowDefinition Height="*"/>
  510. </Grid.RowDefinitions>
  511. <UniformGrid x:Name="uniStatisticsByTitle"
  512. Grid.Row="0"
  513. Margin="0,0,0,0"
  514. Background="#E6F0FF"
  515. Columns="5"
  516. Rows="1">
  517. <TextBlock
  518. HorizontalAlignment="Center"
  519. VerticalAlignment="Center"
  520. FontSize="16"
  521. Text="序号" />
  522. <TextBlock
  523. HorizontalAlignment="Center"
  524. VerticalAlignment="Center"
  525. FontSize="16"
  526. Text="视频名称"/>
  527. <!--<TextBlock
  528. HorizontalAlignment="Center"
  529. VerticalAlignment="Center"
  530. FontSize="15"
  531. Text="视频时长" Foreground="White" />-->
  532. <TextBlock
  533. HorizontalAlignment="Center"
  534. VerticalAlignment="Center"
  535. FontSize="16"
  536. Text="视频大小"/>
  537. <TextBlock
  538. HorizontalAlignment="Center"
  539. VerticalAlignment="Center"
  540. FontSize="16"
  541. Text="日期"/>
  542. <TextBlock
  543. HorizontalAlignment="Center"
  544. VerticalAlignment="Center"
  545. FontSize="16"
  546. Text="操作"/>
  547. </UniformGrid>
  548. <ListBox Grid.Row="1" Margin="0,0,0,0"
  549. x:Name="listView1"
  550. BorderThickness="0"
  551. FontSize="20"
  552. ItemContainerStyle="{StaticResource ListBoxItemContainerStyle}"
  553. ItemTemplate="{StaticResource TongjiItem}"
  554. ItemsSource="{Binding menuList}"
  555. ScrollViewer.HorizontalScrollBarVisibility="Disabled"
  556. ScrollViewer.VerticalScrollBarVisibility="Disabled"/>
  557. </Grid>
  558. <StackPanel Grid.Row="3" x:Name="stpUp" Orientation="Horizontal" Background="Transparent" Width="180" HorizontalAlignment="Center"
  559. Height="30" Margin="0,0,0,0" Grid.Column="1" VerticalAlignment="Bottom">
  560. <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
  561. x:Name="btnLastPage"
  562. Width="60" Height="20"
  563. Click="BtnLastPage_Click">
  564. <Button.Content>
  565. <StackPanel>
  566. <Image Width="16" Height="12" Source=".\Images\class_p1.png" />
  567. </StackPanel>
  568. </Button.Content>
  569. </Button>
  570. <Grid Width="60" Background="Transparent">
  571. <Grid.RowDefinitions>
  572. <RowDefinition Height="311*"/>
  573. <RowDefinition Height="483*"/>
  574. </Grid.RowDefinitions>
  575. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,-12,0,0" Grid.Row="1" Background="Transparent">
  576. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Background="Transparent">
  577. <TextBlock x:Name="txbCurrpageTwo" TextAlignment="Center" FontSize="15"/>
  578. <TextBlock Text="/" TextAlignment="Center" FontSize="15"/>
  579. <TextBlock x:Name="txbPageNumTwo" TextAlignment="Center" FontSize="15"/>
  580. </StackPanel>
  581. </StackPanel>
  582. </Grid>
  583. <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
  584. x:Name="btnNextPage" Background="Transparent"
  585. Width="60" Height="20"
  586. Click="BtnNextPage_Click">
  587. <Button.Content>
  588. <StackPanel>
  589. <Image Width="16" Height="12" Source=".\Images\class_p2.png" />
  590. </StackPanel>
  591. </Button.Content>
  592. </Button>
  593. </StackPanel>
  594. </Grid>
  595. </Border>
  596. </Grid>
  597. <Grid x:Name="GridMyVideo" Grid.Row="1" Margin="0" Background="White" Visibility="Collapsed">
  598. <Grid.RowDefinitions>
  599. <RowDefinition Height="*"/>
  600. <RowDefinition Height="50"/>
  601. </Grid.RowDefinitions>
  602. <Label x:Name="lblVideoMess" Grid.Row="0" Content="暂无微课录制信息,请录制并等待保存完成后重试!" HorizontalAlignment="Center" Margin="0,0,0,100" VerticalAlignment="Center" FontSize="20" Visibility="Hidden"/>
  603. <Button x:Name="BtnVideoUpPage" Content="上一页" Cursor="Hand" HorizontalAlignment="Center" Margin="0,0,150,12" Grid.Row="1" VerticalAlignment="Bottom" Width="60" Background="{x:Null}" BorderBrush="{x:Null}" FontSize="16" Foreground="#FF333333" Click="BtnVideoUpPage_Click"/>
  604. <Label x:Name="lblVideoPageNum" Grid.Row="1" FontSize="14" Content="100/100" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0,0,0,10" Foreground="#FF333333" />
  605. <Button x:Name="BtnVideoDownPage" Content="下一页" Cursor="Hand" HorizontalAlignment="Center" Margin="150,0,0,12" Grid.Row="1" VerticalAlignment="Bottom" Width="60" Background="{x:Null}" BorderBrush="{x:Null}" FontSize="16" Foreground="#FF333333" Click="BtnVideoDownPage_Click"/>
  606. </Grid>
  607. <Grid Grid.Row="2" Background="#EFF1F8" Margin="0,0,0,0">
  608. <StackPanel Orientation="Horizontal" Margin="0,5,0,5">
  609. <TextBlock Text="颜色:" FontSize="14" Padding="10,3,0,0"/>
  610. <Button Cursor="Hand" x:Name="btnWhite" Background="#FFFFFF" Width="20" Height="20" Click="BtnWhite_Click" Margin="0,2,0,0" Visibility="Collapsed"/>
  611. <Border Background="#666666" Width="20" Height="20" Margin="5,2,0,0">
  612. <Button Cursor="Hand" x:Name="btnRed" Width="20" Height="20" Background="#FF0000" Margin="1,1,1,1" HorizontalAlignment="Center" Click="BtnRed_Click" Style="{StaticResource NoMouseOverButtonStyle}">
  613. <Image x:Name="imgRed" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Visible"/>
  614. </Button>
  615. </Border>
  616. <Border Background="#666666" Width="20" Height="20" Margin="5,2,0,0">
  617. <Button Cursor="Hand" x:Name="btnGray" Background="#333333" Width="20" Height="20" Margin="1,1,1,1" Click="BtnGray_Click" Style="{StaticResource NoMouseOverButtonStyle}">
  618. <Image x:Name="imgGray" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
  619. </Button>
  620. </Border>
  621. <Border Background="#666666" Width="20" Height="20" Margin="5,2,0,0">
  622. <Button Cursor="Hand" x:Name="btnCyanBlue" Background="#63D600" Width="20" Height="20" Margin="1,1,1,1" Click="BtnCyanBlue_Click" Style="{StaticResource NoMouseOverButtonStyle}">
  623. <Image x:Name="imgCyanBlue" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
  624. </Button>
  625. </Border>
  626. <Border Background="#666666" Width="20" Height="20" Margin="5,2,0,0">
  627. <Button Cursor="Hand" x:Name="btnYellow" Background="#FFBC00" Width="20" Height="20" Margin="1,1,1,1" Click="BtnYellow_Click" Style="{StaticResource NoMouseOverButtonStyle}">
  628. <Image x:Name="imgYellow" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
  629. </Button>
  630. </Border>
  631. <Border Background="#666666" Width="20" Height="20" Margin="5,2,0,0">
  632. <Button Cursor="Hand" x:Name="btnBlue" Background="#00B4FC" Width="20" Height="20" Margin="1,1,1,1" Click="BtnBlue_Click" Style="{StaticResource NoMouseOverButtonStyle}">
  633. <Image x:Name="imgBlue" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
  634. </Button>
  635. </Border>
  636. <TextBlock Text="粗细:" FontSize="14" Padding="15,0,0,0" Margin="5,3,0,0"/>
  637. <RadioButton Cursor="Hand" x:Name="rbnFine" Content=" 细" Style="{StaticResource radBase}" FontSize="14" Margin="0,4,0,0" IsChecked="True" Click="RbnFine_Click"/>
  638. <RadioButton Cursor="Hand" x:Name="rbnIn" Content=" 中" Style="{StaticResource radBase}" FontSize="14" Margin="5,4,0,0" Click="RbnIn_Click"/>
  639. <RadioButton Cursor="Hand" x:Name="rbnCrude" Content=" 粗" Style="{StaticResource radBase}" FontSize="14" Margin="5,4,0,0" Click="RbnCrude_Click"/>
  640. <StackPanel Orientation="Horizontal">
  641. <TextBlock Text="摄像头:" FontSize="14" Padding="20,3,0,0"/>
  642. <RadioButton Cursor="Hand" x:Name="rbnOpen" Content=" 开" Style="{StaticResource radBase}" FontSize="14" Margin="0,4,0,0" Click="RbnOpen_Click"/>
  643. <RadioButton Cursor="Hand" x:Name="rbnTurnOff" Content=" 关" Style="{StaticResource radBase}" FontSize="14" Margin="5,4,0,0" IsChecked="True" Click="RbnTurnOff_Click"/>
  644. </StackPanel>
  645. </StackPanel>
  646. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,5,10,5">
  647. <TextBlock Text="智能笔状态:" FontSize="14" Padding="0,4,0,0"/>
  648. <TextBlock x:Name="txbNotConnected" Text="未连接" FontSize="14" Padding="0,4,5,0"/>
  649. </StackPanel>
  650. </Grid>
  651. </Grid>
  652. </Viewbox>
  653. </Window>