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

XHMicroLessonSystemWindow.xaml 28KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  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="1040" Width="1276" WindowStartupLocation="CenterScreen"
  12. WindowStyle="None" AllowsTransparency="True" Background="#EFF1F8" ShowInTaskbar="True" ResizeMode="CanMinimize" BorderThickness="10"
  13. >
  14. <!--<Grid>
  15. <Border CornerRadius="0,0,0,0"
  16. Background="White"
  17. BorderBrush="Gray"
  18. BorderThickness="1"
  19. Margin="10,10,10,10">
  20. <Border.Effect>
  21. <DropShadowEffect Color="Gray" BlurRadius="10" ShadowDepth="0" Opacity="0.8" />
  22. </Border.Effect>
  23. </Border>
  24. </Grid>-->
  25. <Window.BorderBrush>
  26. <RadialGradientBrush>
  27. <GradientStop Offset="0.997" Color="#001B1919"/>
  28. <GradientStop Color="Black"/>
  29. </RadialGradientBrush>
  30. </Window.BorderBrush>
  31. <Viewbox>
  32. <Border Background="#cdcdcd" Height="1040" Width="1280">
  33. <Grid x:Name="GridContent" Height="1036" Width="1276">
  34. <!--分3行-->
  35. <Grid.RowDefinitions>
  36. <RowDefinition Height="106"/>
  37. <RowDefinition Height="*"/>
  38. <RowDefinition Height="40"/>
  39. </Grid.RowDefinitions>
  40. <Grid Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown" Margin="0,0,0,0">
  41. <Grid.RowDefinitions>
  42. <RowDefinition Height="auto"/>
  43. <RowDefinition Height="auto"/>
  44. </Grid.RowDefinitions>
  45. <!--第一行-->
  46. <StackPanel Grid.Row="0" Orientation="Horizontal" Margin="10,2,10,0">
  47. <Image Source="./Images/microLessonSystem_0.png"/>
  48. <TextBlock Text="星火微课系统" FontSize="14" Padding="5,0,0,0" Foreground="#FFFFFF"/>
  49. </StackPanel>
  50. <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Right" Margin="10,2,10,0">
  51. <Button Cursor="Hand" x:Name="btnLoginType" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,10,0" Click="BtnLoginType_Click">
  52. <StackPanel Orientation="Horizontal">
  53. <Image Source="./Images/microLessonSystem_9.png"/>
  54. <TextBlock x:Name="txbLoginType" Text="未登录" FontSize="14" Padding="5,0,0,0" Foreground="#FFFFFF"/>
  55. </StackPanel>
  56. </Button>
  57. <Button Cursor="Hand" x:Name="btnShrink" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnShrink_Click" Margin="8,0,8,0">
  58. <Image Source="./Images/microLessonSystem_19.png"/>
  59. </Button>
  60. <!--<Button Cursor="Hand" x:Name="btnEnlarge" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="8,0,8,0">
  61. <Image Source="./Images/microLessonSystem_8.png"/>
  62. </Button>-->
  63. <Button Cursor="Hand" x:Name="btnDown" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click" >
  64. <Image Source="./Images/microLessonSystem_10.png"/>
  65. </Button>
  66. </StackPanel>
  67. <!--第二行-->
  68. <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,6,0,0">
  69. <Button Cursor="Hand" x:Name="btnScreenRecording" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnScreenRecording_Click" Margin="30,0,0,0">
  70. <StackPanel Orientation="Vertical">
  71. <Image x:Name="ImgScreenRecording" Source="./Images/microLessonSystem_2.png"/>
  72. <Image x:Name="ImgScreenRecordingTwo" Source="./Images/microLessonSystem_3.png" Visibility="Collapsed"/>
  73. <TextBlock x:Name="TxbRecordScreenWord" Text="录屏" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  74. </StackPanel>
  75. </Button>
  76. <Button Cursor="Hand" x:Name="btnScreenshot" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="30,0,0,0" Click="BtnScreenshot_Click">
  77. <StackPanel Orientation="Vertical">
  78. <Image x:Name="ImgScreenshot" Source="./Images/microLessonSystem_12.png"/>
  79. <Image x:Name="ImgScreenshotTwo" Source="./Images/microLessonSystem_11.png" Visibility="Collapsed"/>
  80. <TextBlock Text="截图" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  81. </StackPanel>
  82. </Button>
  83. <Button Cursor="Hand" x:Name="btnImport" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnImport_Click" Margin="30,0,0,0">
  84. <StackPanel Orientation="Vertical">
  85. <Image x:Name="ImgImport" Source="./Images/microLessonSystem_6.png"/>
  86. <Image x:Name="ImgImportTwo" Source="./Images/microLessonSystem_7.png" Visibility="Collapsed"/>
  87. <TextBlock Text="导入" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  88. </StackPanel>
  89. </Button>
  90. <Button Cursor="Hand" x:Name="BtnRecord" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="100,0,0,0" Click="BtnRecord_Click">
  91. <StackPanel Orientation="Vertical">
  92. <Image x:Name="ImgRecord" Source="./Images/microLessonSystem_14.png"/>
  93. <Image x:Name="ImgRecordTwo" Source="./Images/microLessonSystem_13.png" Visibility="Collapsed"/>
  94. <TextBlock x:Name="TxbRecordingWord" Text="录制" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  95. </StackPanel>
  96. </Button>
  97. <Button Cursor="Hand" x:Name="btnStop" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnStop_Click" Margin="30,0,0,0">
  98. <StackPanel Orientation="Vertical">
  99. <Image x:Name="ImgStop" Source="./Images/microLessonSystem_21.png"/>
  100. <Image x:Name="ImgStopTwo" Source="./Images/microLessonSystem_20.png" Visibility="Collapsed"/>
  101. <TextBlock Text="停止" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  102. </StackPanel>
  103. </Button>
  104. <TextBlock x:Name="txbTime" Text="" FontSize="20" Foreground="#FFFFFF" Margin="20,20,0,0"/>
  105. <TextBlock x:Name="txbType" Text="" FontSize="20" Foreground="#FFFFFF" Margin="20,20,0,0"/>
  106. </StackPanel>
  107. <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="10,10,10,0">
  108. <Button Cursor="Hand" x:Name="btnAdd" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnAdd_Click" Margin="0,0,30,0">
  109. <StackPanel Orientation="Vertical">
  110. <Image x:Name="ImgAdd" Source="./Images/microLessonSystem_25.png" Visibility="Visible"/>
  111. <Image x:Name="ImgAddTwo" Source="./Images/microLessonSystem_24.png" Visibility="Collapsed"/>
  112. <TextBlock Text="增加" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  113. </StackPanel>
  114. </Button>
  115. <Button Cursor="Hand" x:Name="btnPrint" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnPrint_Click">
  116. <StackPanel Orientation="Vertical">
  117. <Image x:Name="ImgPrint" Source="./Images/microLessonSystem_4.png" Visibility="Collapsed"/>
  118. <Image x:Name="ImgPrintTwo" Source="./Images/microLessonSystem_5.png" Visibility="Visible"/>
  119. <TextBlock Text="打印" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  120. </StackPanel>
  121. </Button>
  122. <!--<Button Cursor="Hand" x:Name="btnUpload" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnUpload_Click" Margin="0,0,30,0">
  123. <StackPanel Orientation="Vertical">
  124. <Image x:Name="ImgUpload" Source="./Images/microLessonSystem_15.png" Visibility="Collapsed"/>
  125. <Image x:Name="ImgUploadTwo" Source="./Images/microLessonSystem_16.png" Visibility="Visible"/>
  126. <TextBlock Text="上传" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  127. </StackPanel>
  128. </Button>-->
  129. <Button Cursor="Hand" x:Name="btnUpload" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnUpload_Click">
  130. <StackPanel Orientation="Vertical">
  131. <Image x:Name="ImgUpload" Source="./Images/microLessonSystem_22.png" Visibility="Collapsed"/>
  132. <Image x:Name="ImgUploadTwo" Source="./Images/microLessonSystem_1.png" Visibility="Visible"/>
  133. <TextBlock Text="我的" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  134. </StackPanel>
  135. </Button>
  136. <Button Cursor="Hand" x:Name="btnSetUp" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnSetUp_Click">
  137. <StackPanel Orientation="Vertical">
  138. <Image x:Name="ImgSetUp" Source="./Images/microLessonSystem_18.png" Visibility="Visible"/>
  139. <Image x:Name="ImgSetUpTwo" Source="./Images/microLessonSystem_17.png" Visibility="Collapsed"/>
  140. <TextBlock Text="设置" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  141. </StackPanel>
  142. </Button>
  143. </StackPanel>
  144. </Grid>
  145. <!--主内容-->
  146. <Grid Grid.Row="1" x:Name="GridMain" Width="1276" >
  147. <ScrollViewer x:Name="scroMain" VerticalScrollBarVisibility="Visible">
  148. <Grid x:Name="gridM" Margin="0,0,0,0" Background="#FFFFFF" Visibility="Visible" Height="1780">
  149. <Grid>
  150. <Border Grid.Row="1" CornerRadius="5">
  151. <Grid x:Name="IMG" Margin="0,0,0,0">
  152. <Grid.Resources>
  153. <TransformGroup x:Key="Imageview">
  154. <ScaleTransform/>
  155. <TranslateTransform/>
  156. </TransformGroup>
  157. </Grid.Resources>
  158. <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Disabled" Cursor="SizeAll"
  159. Margin="0,0,0,0" Focusable="False" x:Name="BackFrame">
  160. <ContentControl MouseLeftButtonDown="IMG1_MouseLeftButtonDown"
  161. MouseLeftButtonUp="IMG1_MouseLeftButtonUp"
  162. MouseMove="IMG1_MouseMove"
  163. MouseWheel="IMG1_MouseWheel" >
  164. <Image Name="imgCanvas" Width="635" Height="auto" VerticalAlignment="Top" HorizontalAlignment="Left" Stretch="Uniform" MouseDown="PicEMap_MouseDown" RenderTransform="{StaticResource Imageview}" MouseRightButtonDown="imgCanvas_MouseRightButtonDown">
  165. </Image>
  166. </ContentControl>
  167. </ScrollViewer>
  168. </Grid>
  169. </Border>
  170. </Grid>
  171. <!--导入图片-->
  172. <Image x:Name="imgDocumentation" Source="./Images/microLessonSystem_18.png"/>
  173. <!--<Button Cursor="Hand" x:Name="btnOk" Height="50" Width="50" Content="√" FontSize="26" Background="#2E8CF0" Foreground="#FFFFFF" Click="btnOk_Click" Visibility="Collapsed"/>-->
  174. <InkCanvas Grid.Row="0" x:Name="blackboard_canvas" Background="Transparent" Visibility="Collapsed" Grid.ColumnSpan="2" />
  175. <!--摄像头-->
  176. <!--<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">
  177. <aforge:VideoSourcePlayer x:Name="player" Height="124" Width="172" />
  178. </wfi:WindowsFormsHost>-->
  179. <!--<Image x:Name="imgLoad"
  180. Width="300"
  181. Height="300"
  182. gifLib:ImageBehavior.AnimatedSource="./Images/img_load.gif" VerticalAlignment="Top" Margin="0,200,0,0" Visibility="Visible"/>-->
  183. </Grid>
  184. </ScrollViewer>
  185. <Image x:Name="imgPlayerLeft" Width="172" Height="124" Source="./Images/microLessonSystem_17.png" HorizontalAlignment="Left" Margin="10,7,10,10" VerticalAlignment="Top" Visibility="Collapsed"/>
  186. <Image x:Name="imgPlayerRight" Width="172" Height="124" Source="./Images/microLessonSystem_17.png" HorizontalAlignment="Right" Margin="10,7,26,10" VerticalAlignment="Top" Visibility="Collapsed"/>
  187. <Image x:Name="imgPlayerLeftUnder" Width="172" Height="124" Source="./Images/microLessonSystem_17.png" HorizontalAlignment="Left" Margin="10,7,10,10" VerticalAlignment="Bottom" Visibility="Collapsed"/>
  188. <Image x:Name="imgPlayerRightUnder" Width="172" Height="124" Source="./Images/microLessonSystem_17.png" HorizontalAlignment="Right" Margin="10,7,26,10" VerticalAlignment="Bottom" Visibility="Collapsed"/>
  189. <Label Content="" Grid.Column="0" Height="2" Width="2" HorizontalAlignment="Left" VerticalAlignment="Top" Background="#FF0F0F0F" Margin="1,0,0,0"/>
  190. <Label Content="" Grid.Column="1" Height="2" Width="2" Background="#FF0F0F0F" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,16,0"/>
  191. <Label Content="" Grid.Column="0" Height="2" Width="2" Background="#FF0F0F0F" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="1,0,0,0"/>
  192. <Label Content="" Grid.Column="1" Height="2" Width="2" Background="#FF0F0F0F" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,16,0"/>
  193. </Grid>
  194. <!--页码-->
  195. <Grid Grid.Row="1" x:Name="gridPage" Visibility="Collapsed" Background="#FFFFFF">
  196. <StackPanel Grid.Row="0" Orientation="Horizontal" Background="#FFFFFF" Width="180" HorizontalAlignment="Center"
  197. Height="30" Margin="0,0,0,0" Grid.Column="1" VerticalAlignment="Bottom">
  198. <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
  199. x:Name="last_button"
  200. Width="60" Height="20"
  201. Click="last_button_Click">
  202. <Button.Content>
  203. <StackPanel>
  204. <Image Width="16" Height="12" Source=".\Images\class_p1.png" />
  205. </StackPanel>
  206. </Button.Content>
  207. </Button>
  208. <Grid Width="60" Background="Transparent">
  209. <Grid.RowDefinitions>
  210. <RowDefinition Height="311*"/>
  211. <RowDefinition Height="483*"/>
  212. </Grid.RowDefinitions>
  213. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,-12,0,0" Grid.Row="1" Background="Transparent">
  214. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Background="Transparent">
  215. <TextBlock x:Name="txbCurrpage" Text="{Binding currpage}" TextAlignment="Center" FontSize="15"/>
  216. <TextBlock Text="/" TextAlignment="Center" FontSize="15"/>
  217. <TextBlock Text="{Binding pagenum}" TextAlignment="Center" FontSize="15"/>
  218. </StackPanel>
  219. </StackPanel>
  220. </Grid>
  221. <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
  222. x:Name="next_btn" Background="Transparent"
  223. Width="60" Height="20"
  224. Click="next_btn_Click">
  225. <Button.Content>
  226. <StackPanel>
  227. <Image Width="16" Height="12" Source=".\Images\class_p2.png" />
  228. </StackPanel>
  229. </Button.Content>
  230. </Button>
  231. </StackPanel>
  232. </Grid>
  233. <!--设置-->
  234. <Grid Grid.Row="1" x:Name="gridSetUp" Background="#FFFFFF" Visibility="Collapsed" Width="1276">
  235. <Grid.RowDefinitions>
  236. <RowDefinition Height="90"/>
  237. <RowDefinition Height="70"/>
  238. <RowDefinition Height="50"/>
  239. <RowDefinition Height="70"/>
  240. <RowDefinition Height="70"/>
  241. <RowDefinition Height="70"/>
  242. <RowDefinition Height="70"/>
  243. <RowDefinition Height="*"/>
  244. </Grid.RowDefinitions>
  245. <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,30,0,0">
  246. <TextBlock Text=" 点阵笔" FontSize="16" Foreground="#2D8CF0" Width="80"/>
  247. <TextBlock x:Name="txbNotConnecteds" Text="未连接" FontSize="14" Foreground="#333333" Padding="10,0,0,0"/>
  248. </StackPanel>
  249. <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
  250. <TextBlock Text="视频格式" FontSize="16" Foreground="#2D8CF0" Width="80"/>
  251. <RadioButton x:Name="rbnMP4" Cursor="Hand" Content="MP4" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
  252. <RadioButton x:Name="rbnFLV" Cursor="Hand" Content="FLV" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
  253. <RadioButton x:Name="rbnAVI" Cursor="Hand" Content="AVI" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
  254. </StackPanel>
  255. <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
  256. <TextBlock Text="头像位置" FontSize="16" Foreground="#2D8CF0" Width="80"/>
  257. <RadioButton Cursor="Hand" x:Name="rbnRight" Content="右上" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
  258. <RadioButton Cursor="Hand" x:Name="rbnRightUnder" Content="右下" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
  259. <RadioButton Cursor="Hand" x:Name="rbnLeft" Content="左上" FontSize="14" Foreground="#333333" Margin="20,2,0,0" />
  260. <RadioButton Cursor="Hand" x:Name="rbnLeftUnder" Content="左下" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
  261. </StackPanel>
  262. <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0" Visibility="Collapsed">
  263. <TextBlock Text="视频声音" FontSize="16" Foreground="#2D8CF0" Width="80"/>
  264. <RadioButton x:Name="rbnY" Cursor="Hand" Content="有" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
  265. <RadioButton x:Name="rbnN" Cursor="Hand" Content="无" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
  266. </StackPanel>
  267. <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
  268. <TextBlock x:Name="txbFilePath" Text="文件路径" FontSize="16" Width="80" Foreground="#2D8CF0" Padding="2,26,10,0"/>
  269. <!--输入框-->
  270. <Border Background="#CDD6E0" Width="525" Height="43" CornerRadius="3">
  271. <Label x:Name="txbStoragePath" Content="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="523" Height="42" BorderBrush="{x:Null}" BorderThickness="0"/>
  272. </Border>
  273. <!--浏览按钮-->
  274. <Button Cursor="Hand" x:Name="btnBrowse" Content="打开" FontSize="18" Width="80" Height="43" Margin="18,0,0,0" Click="BtnBrowse_Click">
  275. <Button.Template>
  276. <ControlTemplate TargetType="{x:Type Button}">
  277. <Border
  278. BorderBrush="{TemplateBinding Control.BorderBrush}"
  279. BorderThickness="1"
  280. CornerRadius="2">
  281. <Border.Background>#CDD6E0</Border.Background>
  282. <ContentPresenter
  283. HorizontalAlignment="Center"
  284. VerticalAlignment="Center"
  285. Content="{TemplateBinding ContentControl.Content}" />
  286. </Border>
  287. </ControlTemplate>
  288. </Button.Template>
  289. </Button>
  290. </StackPanel>
  291. <StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,30,0,0">
  292. <TextBlock Text=" 版本号" FontSize="16" Width="80" Foreground="#2D8CF0"/>
  293. <TextBlock x:Name="txbv" Text="V0.0.0" FontSize="16" Foreground="#333333" Padding="10,0,0,0"/>
  294. </StackPanel>
  295. <StackPanel Grid.Row="5" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,30,0,0">
  296. <TextBlock Text="版权所有" FontSize="16" Width="80" Foreground="#2D8CF0"/>
  297. <TextBlock Text="河南星火燎原软件科技有限公司" FontSize="14" Foreground="#333333" Padding="10,0,0,0"/>
  298. </StackPanel>
  299. <!--第四行 开始按钮-->
  300. <Button Cursor="Hand" Grid.Row="6" x:Name="btnSave" Content="保存" FontSize="18" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="115" Height="45" Margin="10,0,10,0" Click="BtnSave_Click">
  301. <Button.Template>
  302. <ControlTemplate TargetType="{x:Type Button}">
  303. <Border
  304. BorderBrush="{TemplateBinding Control.BorderBrush}"
  305. BorderThickness="1"
  306. CornerRadius="2">
  307. <Border.Background>#2D8CF0</Border.Background>
  308. <ContentPresenter
  309. HorizontalAlignment="Center"
  310. VerticalAlignment="Center"
  311. Content="{TemplateBinding ContentControl.Content}" />
  312. </Border>
  313. </ControlTemplate>
  314. </Button.Template>
  315. </Button>
  316. </Grid>
  317. <Grid Grid.Row="2" Background="#EFF1F8" Margin="0,0,0,0">
  318. <StackPanel Orientation="Horizontal" Margin="0,0,0,0">
  319. <TextBlock Text="颜色:" FontSize="14" Padding="10,10,0,0"/>
  320. <Button Cursor="Hand" x:Name="btnWhite" Background="#FFFFFF" Width="20" Height="20" Click="BtnWhite_Click" Margin="0,2,0,0" Visibility="Collapsed"/>
  321. <Button Cursor="Hand" x:Name="btnRed" Background="#FF0000" Width="20" Height="20" Margin="5,2,0,0" Click="BtnRed_Click">
  322. <Image x:Name="imgRed" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Visible"/>
  323. </Button>
  324. <Button Cursor="Hand" x:Name="btnGray" Background="#333333" Width="20" Height="20" Margin="5,2,0,0" Click="BtnGray_Click">
  325. <Image x:Name="imgGray" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
  326. </Button>
  327. <Button Cursor="Hand" x:Name="btnCyanBlue" Background="#63D600" Width="20" Height="20" Margin="5,2,0,0" Click="BtnCyanBlue_Click">
  328. <Image x:Name="imgCyanBlue" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
  329. </Button>
  330. <Button Cursor="Hand" x:Name="btnYellow" Background="#FFBC00" Width="20" Height="20" Margin="5,2,0,0" Click="BtnYellow_Click">
  331. <Image x:Name="imgYellow" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
  332. </Button>
  333. <Button Cursor="Hand" x:Name="btnBlue" Background="#00B4FC" Width="20" Height="20" Margin="5,2,0,0" Click="BtnBlue_Click">
  334. <Image x:Name="imgBlue" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
  335. </Button>
  336. <TextBlock Text="粗细:" FontSize="14" Padding="15,5,0,0" Margin="5,5,0,0"/>
  337. <RadioButton Cursor="Hand" x:Name="rbnFine" Content="细" FontSize="14" Margin="0,10,0,0" IsChecked="True" Click="RbnFine_Click"/>
  338. <RadioButton Cursor="Hand" x:Name="rbnIn" Content="中" FontSize="14" Margin="5,10,0,0" Click="RbnIn_Click"/>
  339. <RadioButton Cursor="Hand" x:Name="rbnCrude" Content="粗" FontSize="14" Margin="5,10,0,0" Click="RbnCrude_Click"/>
  340. <StackPanel Orientation="Horizontal">
  341. <TextBlock Text="摄像头:" FontSize="14" Padding="15,10,0,0"/>
  342. <RadioButton Cursor="Hand" x:Name="rbnOpen" Content="开" FontSize="14" Margin="0,10,0,0" Click="RbnOpen_Click"/>
  343. <RadioButton Cursor="Hand" x:Name="rbnTurnOff" Content="关" FontSize="14" Margin="5,10,0,0" IsChecked="True" Click="RbnTurnOff_Click"/>
  344. </StackPanel>
  345. </StackPanel>
  346. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,5,10,0">
  347. <TextBlock Text="智能笔状态:" FontSize="14" Padding="0,5,0,0"/>
  348. <TextBlock x:Name="txbNotConnected" Text="未连接" FontSize="14" Padding="0,5,5,0"/>
  349. </StackPanel>
  350. </Grid>
  351. </Grid>
  352. </Border>
  353. </Viewbox>
  354. </Window>