星火微课系统客户端
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

MainWindow.xaml 96KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714
  1. <Window
  2. x:Class="XHWK.WKTool.MainWindow"
  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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:view="clr-namespace:XHWK.WKTool.View"
  8. Title="星火微课系统"
  9. Width="950"
  10. Height="700"
  11. Closed="Window_Closed"
  12. Loaded="Window_Loaded"
  13. MouseLeftButtonDown="Window_MouseLeftButtonDown_1"
  14. ResizeMode="CanMinimize"
  15. ShowInTaskbar="True"
  16. Style="{StaticResource ZWinStyle}"
  17. WindowStartupLocation="CenterScreen"
  18. WindowStyle="SingleBorderWindow"
  19. mc:Ignorable="d">
  20. <Window.Resources>
  21. <Style x:Key="RadBase" TargetType="RadioButton">
  22. <Setter Property="IsChecked" Value="False" />
  23. <Setter Property="Background" Value="Transparent" />
  24. <Setter Property="Foreground" Value="#555" />
  25. <Setter Property="Template">
  26. <Setter.Value>
  27. <ControlTemplate TargetType="RadioButton">
  28. <DockPanel
  29. Width="{TemplateBinding Width}"
  30. Background="{TemplateBinding Background}"
  31. LastChildFill="False"
  32. ToolTip="{TemplateBinding Content}">
  33. <Image
  34. x:Name="_img"
  35. Height="12"
  36. Margin="4,0,0,0"
  37. VerticalAlignment="Center"
  38. DockPanel.Dock="Left"
  39. Source="./Images/rdo_no.png"
  40. Stretch="Fill" />
  41. <TextBlock
  42. Margin="2,0,0,0"
  43. VerticalAlignment="Center"
  44. DockPanel.Dock="Left"
  45. Foreground="{TemplateBinding Foreground}"
  46. Text="{TemplateBinding Content}" />
  47. </DockPanel>
  48. <ControlTemplate.Triggers>
  49. <Trigger Property="IsChecked" Value="true">
  50. <Setter TargetName="_img" Property="Source" Value="./Images/rdo_yes.png" />
  51. </Trigger>
  52. </ControlTemplate.Triggers>
  53. </ControlTemplate>
  54. </Setter.Value>
  55. </Setter>
  56. </Style>
  57. <Style x:Key="NoMouseOverButtonStyle" TargetType="{x:Type Button}">
  58. <Setter Property="BorderThickness" Value="1" />
  59. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
  60. <Setter Property="HorizontalContentAlignment" Value="Center" />
  61. <Setter Property="VerticalContentAlignment" Value="Center" />
  62. <Setter Property="Padding" Value="1" />
  63. <Setter Property="Template">
  64. <Setter.Value>
  65. <ControlTemplate TargetType="{x:Type Button}">
  66. <Border
  67. x:Name="Chrome"
  68. Background="{TemplateBinding Background}"
  69. BorderBrush="{TemplateBinding BorderBrush}"
  70. SnapsToDevicePixels="true">
  71. <ContentPresenter
  72. Margin="{TemplateBinding Padding}"
  73. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  74. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  75. RecognizesAccessKey="True"
  76. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  77. </Border>
  78. </ControlTemplate>
  79. </Setter.Value>
  80. </Setter>
  81. </Style>
  82. <!-- ListBox容器样式 -->
  83. <!-- 摄像头样式 -->
  84. </Window.Resources>
  85. <Grid>
  86. <!-- 内容区 上:标题栏 下:工具栏和录制区域 -->
  87. <Grid
  88. x:Name="GridContent"
  89. HorizontalAlignment="Stretch"
  90. Background="#FFF1F2F8">
  91. <Grid.RowDefinitions>
  92. <RowDefinition Height="60*" />
  93. <RowDefinition Height="10*" />
  94. <RowDefinition Height="955*" />
  95. </Grid.RowDefinitions>
  96. <!-- 标题栏 左:logo 右:可变工具栏 -->
  97. <Grid
  98. x:Name="GridTitle"
  99. Grid.Row="0"
  100. Background="White"
  101. MouseLeftButtonDown="Window_MouseLeftButtonDown">
  102. <Grid Background="{DynamicResource BackTitle}">
  103. <Grid.ColumnDefinitions>
  104. <ColumnDefinition Width="200*" />
  105. <ColumnDefinition Width="926*" />
  106. <ColumnDefinition Width="160*" />
  107. </Grid.ColumnDefinitions>
  108. <!-- LOGO -->
  109. <Grid Grid.Column="0">
  110. <StackPanel
  111. Margin="10,0"
  112. HorizontalAlignment="Left"
  113. Orientation="Horizontal">
  114. <Image
  115. Margin="10"
  116. VerticalAlignment="Center"
  117. Source="./Images/APP.png" />
  118. <TextBlock
  119. x:Name="TxbTitleName"
  120. Margin="10,0,0,0"
  121. HorizontalAlignment="Left"
  122. VerticalAlignment="Center"
  123. FontSize="18"
  124. FontWeight="Bold"
  125. Style="{DynamicResource LogoColor}"
  126. Text="星火微课" />
  127. </StackPanel>
  128. </Grid>
  129. <!-- 录制相关Title 926 -->
  130. <Grid
  131. x:Name="GridRecordingTitle"
  132. Grid.Column="1"
  133. Visibility="Visible">
  134. <Grid.ColumnDefinitions>
  135. <ColumnDefinition Width="200*" />
  136. <ColumnDefinition Width="476*" />
  137. <ColumnDefinition Width="160*" />
  138. <ColumnDefinition Width="160*" />
  139. </Grid.ColumnDefinitions>
  140. <!-- 智能笔连接状态 -->
  141. <Grid Grid.Column="0">
  142. <!--<TextBlock Text="设备: " FontSize="14" Padding="0,4,0,0" />-->
  143. <StackPanel
  144. Margin="0"
  145. HorizontalAlignment="Center"
  146. VerticalAlignment="Center"
  147. Orientation="Horizontal">
  148. <Image
  149. x:Name="ImgPenState"
  150. Width="20"
  151. Style="{DynamicResource TitlePenState}" />
  152. <TextBlock
  153. x:Name="TxbNotConnected"
  154. Margin="5,0,0,0"
  155. Padding="0"
  156. VerticalAlignment="Center"
  157. Background="{x:Null}"
  158. FontSize="14"
  159. FontWeight="Bold"
  160. Style="{DynamicResource PenStateColor}"
  161. Text="未连接" />
  162. </StackPanel>
  163. </Grid>
  164. <!-- 倒计时 -->
  165. <Grid Grid.Column="1">
  166. <Label
  167. Width="2"
  168. Margin="0,15"
  169. HorizontalAlignment="Left"
  170. Background="#FFE5E5E5" />
  171. <StackPanel
  172. Margin="0"
  173. HorizontalAlignment="Center"
  174. VerticalAlignment="Center"
  175. Orientation="Horizontal">
  176. <Image
  177. x:Name="ImgLzImg"
  178. Width="20"
  179. Style="{DynamicResource TitleLZTimeImg}" />
  180. <TextBlock
  181. x:Name="TxbTime"
  182. Margin="10,0"
  183. HorizontalAlignment="Center"
  184. VerticalAlignment="Center"
  185. FontSize="18"
  186. Foreground="#FFFF0000"
  187. Text="00:00" />
  188. <TextBlock
  189. x:Name="TxbType"
  190. Margin="10,0"
  191. HorizontalAlignment="Center"
  192. VerticalAlignment="Center"
  193. FontSize="18"
  194. Style="{DynamicResource TxbMesColor}"
  195. Text="准备就绪" />
  196. </StackPanel>
  197. <Label
  198. Width="2"
  199. Margin="0,15"
  200. HorizontalAlignment="Right"
  201. Background="#FFE5E5E5" />
  202. </Grid>
  203. <!-- 录屏按钮 -->
  204. <Grid Name="StartPauseGrid" Grid.Column="2">
  205. <StackPanel Orientation="Horizontal" />
  206. <Button
  207. x:Name="BtnRecord"
  208. Margin="5,0"
  209. HorizontalAlignment="Stretch"
  210. VerticalAlignment="Center"
  211. Click="BtnRecord_Click"
  212. Cursor="Hand"
  213. FontSize="14"
  214. Template="{DynamicResource SkinBtnRecord}" />
  215. <Button
  216. x:Name="BtnRecordSuspend"
  217. Margin="5,0"
  218. HorizontalAlignment="Stretch"
  219. VerticalAlignment="Center"
  220. Click="BtnRecord_Click"
  221. Cursor="Hand"
  222. FontSize="14"
  223. Template="{DynamicResource SkinBtnRecordSuspend}"
  224. Visibility="Collapsed" />
  225. </Grid>
  226. <Grid Name="StopGrid" Grid.Column="3">
  227. <Button
  228. x:Name="BtnStop"
  229. Margin="5,0"
  230. HorizontalAlignment="Stretch"
  231. VerticalAlignment="Center"
  232. Click="BtnStop_Click"
  233. Cursor="Hand"
  234. FontSize="14"
  235. Template="{DynamicResource SkinBtnRecordStop}" />
  236. </Grid>
  237. </Grid>
  238. <!-- 关闭 -->
  239. <Grid Name="CloseGrid" Grid.Column="2">
  240. <Label
  241. Width="2"
  242. Margin="0,15"
  243. HorizontalAlignment="Left"
  244. Background="#FFE5E5E5" />
  245. <Button
  246. x:Name="BtnClose"
  247. Margin="20,0,10,0"
  248. HorizontalAlignment="Stretch"
  249. VerticalAlignment="Center"
  250. Click="BtnClose_Click"
  251. Cursor="Hand"
  252. FontSize="14"
  253. Template="{DynamicResource SkinBtnClose}" />
  254. </Grid>
  255. <!-- 测试 -->
  256. <Grid Grid.Column="2" Visibility="Collapsed">
  257. <Label
  258. Width="2"
  259. Margin="0,15"
  260. HorizontalAlignment="Left"
  261. Background="#FFE5E5E5" />
  262. <Button
  263. Margin="35,0,15,0"
  264. HorizontalAlignment="Stretch"
  265. VerticalAlignment="Center"
  266. Click="BtnClose_Click"
  267. Cursor="Hand"
  268. FontSize="16">
  269. <Button.Template>
  270. <ControlTemplate TargetType="{x:Type Button}">
  271. <Grid>
  272. <Grid.ColumnDefinitions>
  273. <ColumnDefinition Width="23*" />
  274. <ColumnDefinition Width="72*" />
  275. </Grid.ColumnDefinitions>
  276. <Image
  277. x:Name="ImgSetUp"
  278. Grid.ColumnSpan="2"
  279. Source="/SkinImages/White/Toolbar_LZ_N.png" />
  280. <Label
  281. x:Name="Word"
  282. Grid.Column="1"
  283. HorizontalAlignment="Center"
  284. VerticalAlignment="Center"
  285. Content="关闭程序"
  286. FontSize="{TemplateBinding FontSize}"
  287. Foreground="#FFEFEFEF" />
  288. </Grid>
  289. <ControlTemplate.Triggers>
  290. <Trigger Property="IsMouseOver" Value="True">
  291. <Setter TargetName="ImgSetUp" Property="Source" Value="/SkinImages/TechnologyBlue/HM_Close_MI.png" />
  292. <Setter TargetName="Word" Property="Foreground" Value="#FFFFFFFF" />
  293. </Trigger>
  294. </ControlTemplate.Triggers>
  295. </ControlTemplate>
  296. </Button.Template>
  297. </Button>
  298. </Grid>
  299. </Grid>
  300. </Grid>
  301. <Grid Grid.Row="1" />
  302. <!-- 工具栏和录制区域 H965 -->
  303. <Grid Grid.Row="2">
  304. <Grid.ColumnDefinitions>
  305. <ColumnDefinition Width="180*" />
  306. <ColumnDefinition Width="10*" />
  307. <ColumnDefinition Width="1061*" />
  308. </Grid.ColumnDefinitions>
  309. <!-- 工具栏 W200 H955 -->
  310. <Grid
  311. x:Name="GridToolbars"
  312. Grid.Column="0"
  313. Background="White">
  314. <Grid Background="{DynamicResource BackTool}">
  315. <Grid.RowDefinitions>
  316. <RowDefinition Height="160*" />
  317. <RowDefinition Height="85*" />
  318. <RowDefinition Height="85*" />
  319. <RowDefinition Height="85*" />
  320. <RowDefinition Height="85*" />
  321. <RowDefinition Height="85*" />
  322. <RowDefinition Height="85*" />
  323. <RowDefinition Height="85*" />
  324. <RowDefinition Height="85*" />
  325. <RowDefinition Height="115*" />
  326. </Grid.RowDefinitions>
  327. <!-- 头像 -->
  328. <Grid Grid.Row="0">
  329. <!-- 登录状态 -->
  330. <view:ZRoundButton
  331. x:Name="BtnLoginType"
  332. HorizontalAlignment="Center"
  333. VerticalAlignment="Center"
  334. Click="BtnLoginType_Click"
  335. Cursor="Hand">
  336. <StackPanel>
  337. <Border
  338. x:Name="ImgHeadImgN"
  339. Width="70"
  340. Height="70"
  341. CornerRadius="50">
  342. <Border.Background>
  343. <ImageBrush ImageSource="/BlackImages/HM_HeadImg_N.png" />
  344. </Border.Background>
  345. </Border>
  346. <Border
  347. x:Name="ImgHeadImg"
  348. Width="70"
  349. Height="70"
  350. CornerRadius="50"
  351. Visibility="Collapsed">
  352. <Border.Background>
  353. <ImageBrush x:Name="ImgHead" ImageSource="/BlackImages/HM_HeadImg.png" />
  354. </Border.Background>
  355. </Border>
  356. <TextBlock
  357. x:Name="TxbLoginType"
  358. Margin="0,10,0,0"
  359. HorizontalAlignment="Center"
  360. FontSize="14"
  361. Style="{DynamicResource LoginTypeColor}"
  362. Text="未登录" />
  363. </StackPanel>
  364. </view:ZRoundButton>
  365. </Grid>
  366. <!-- 录屏 -->
  367. <Grid Grid.Row="1">
  368. <Button
  369. x:Name="BtnScreenRecording"
  370. Padding="0"
  371. HorizontalAlignment="Stretch"
  372. VerticalAlignment="Stretch"
  373. HorizontalContentAlignment="Stretch"
  374. VerticalContentAlignment="Stretch"
  375. Click="BtnScreenRecording_Click"
  376. Cursor="Hand"
  377. FontSize="16"
  378. Template="{DynamicResource SkinBtnScreenRecording}" />
  379. </Grid>
  380. <!-- 截图 -->
  381. <Grid Grid.Row="2">
  382. <Button
  383. x:Name="BtnScreenshot"
  384. Padding="0"
  385. HorizontalAlignment="Stretch"
  386. VerticalAlignment="Stretch"
  387. Click="BtnScreenshot_Click"
  388. Cursor="Hand"
  389. FontSize="16"
  390. Template="{DynamicResource SkinBtnScreenshot}" />
  391. </Grid>
  392. <!-- 导入 -->
  393. <Grid Grid.Row="3">
  394. <Button
  395. x:Name="BtnImport"
  396. HorizontalAlignment="Stretch"
  397. VerticalAlignment="Stretch"
  398. Click="BtnImport_Click"
  399. Cursor="Hand"
  400. FontSize="16"
  401. Template="{DynamicResource SkinBtnImport}" />
  402. </Grid>
  403. <!-- 加页 -->
  404. <Grid Grid.Row="4">
  405. <Button
  406. x:Name="BtnAdd"
  407. HorizontalAlignment="Stretch"
  408. VerticalAlignment="Stretch"
  409. Click="BtnAdd_Click"
  410. Cursor="Hand"
  411. FontSize="16"
  412. Template="{DynamicResource SkinBtnAdd}" />
  413. </Grid>
  414. <!-- 打印 -->
  415. <Grid Grid.Row="5">
  416. <Button
  417. x:Name="BtnPrint"
  418. HorizontalAlignment="Stretch"
  419. VerticalAlignment="Stretch"
  420. Click="BtnPrint_Click"
  421. Cursor="Hand"
  422. FontSize="16"
  423. Template="{DynamicResource SkinBtnPrint}" />
  424. </Grid>
  425. <!-- 我的 -->
  426. <Grid Grid.Row="6">
  427. <Button
  428. x:Name="BtnUpload"
  429. HorizontalAlignment="Stretch"
  430. VerticalAlignment="Stretch"
  431. Click="BtnUpload_Click"
  432. Cursor="Hand"
  433. FontSize="16"
  434. Template="{DynamicResource SkinBtnMy}" />
  435. </Grid>
  436. <!-- 检测 -->
  437. <Grid Grid.Row="7">
  438. <Button
  439. x:Name="BtnDevice"
  440. HorizontalAlignment="Stretch"
  441. VerticalAlignment="Stretch"
  442. Click="BtnDevice_Click"
  443. Cursor="Hand"
  444. FontSize="16"
  445. Template="{DynamicResource SkinBtnDevice}" />
  446. </Grid>
  447. <!-- 设置 -->
  448. <Grid Grid.Row="8">
  449. <Button
  450. x:Name="BtnSetUp"
  451. HorizontalAlignment="Stretch"
  452. VerticalAlignment="Stretch"
  453. Click="BtnSetUp_Click"
  454. Cursor="Hand"
  455. FontSize="16"
  456. Template="{DynamicResource SkinBtnSetUp}" />
  457. </Grid>
  458. <!-- 测试 -->
  459. <Grid
  460. Grid.Row="9"
  461. Height="85"
  462. VerticalAlignment="Top"
  463. Visibility="Collapsed">
  464. <Button
  465. HorizontalAlignment="Stretch"
  466. VerticalAlignment="Stretch"
  467. Click="BtnSetUp_Click"
  468. Cursor="Hand"
  469. FontSize="18">
  470. <Button.Template>
  471. <ControlTemplate TargetType="{x:Type Button}">
  472. <Grid>
  473. <Grid.ColumnDefinitions>
  474. <ColumnDefinition Width="100*" />
  475. <ColumnDefinition Width="60*" />
  476. <ColumnDefinition Width="40*" />
  477. </Grid.ColumnDefinitions>
  478. <Image
  479. x:Name="ImgScreenRecording"
  480. Grid.ColumnSpan="3"
  481. Source="/SkinImages/White/Toolbar_SZ.png" />
  482. <Label
  483. x:Name="WordScreenRecording"
  484. Grid.Column="1"
  485. HorizontalAlignment="Center"
  486. VerticalAlignment="Center"
  487. Content="设置"
  488. FontSize="{TemplateBinding FontSize}"
  489. Foreground="#FF333333" />
  490. </Grid>
  491. <ControlTemplate.Triggers>
  492. <Trigger Property="IsMouseOver" Value="True">
  493. <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/White/Toolbar_LP_MI.png" />
  494. </Trigger>
  495. <Trigger Property="IsPressed" Value="True">
  496. <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/White/Toolbar_LP_CL.png" />
  497. <Setter TargetName="WordScreenRecording" Property="Foreground" Value="#FFFFFFFF" />
  498. </Trigger>
  499. <Trigger Property="IsEnabled" Value="False">
  500. <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/White/Toolbar_LP_N.png" />
  501. <Setter TargetName="WordScreenRecording" Property="Foreground" Value="#FFC3C3C3" />
  502. </Trigger>
  503. </ControlTemplate.Triggers>
  504. </ControlTemplate>
  505. </Button.Template>
  506. </Button>
  507. </Grid>
  508. </Grid>
  509. </Grid>
  510. <Grid Grid.Column="1" />
  511. <!-- 主显示区域 -->
  512. <Grid Grid.Column="2">
  513. <!-- 录制区域 -->
  514. <Grid x:Name="GridRecordingArea" Visibility="Visible">
  515. <Grid.RowDefinitions>
  516. <RowDefinition Height="905*" />
  517. <RowDefinition Height="3*" />
  518. <RowDefinition Height="47*" />
  519. </Grid.RowDefinitions>
  520. <!-- 录制区域 -->
  521. <Grid Grid.Row="0">
  522. <!-- 录制区 -->
  523. <Border>
  524. <Grid
  525. x:Name="GridMain"
  526. MouseLeftButtonDown="Window_MouseLeftButtonDown_1"
  527. Visibility="Visible">
  528. <ScrollViewer
  529. x:Name="ScroMain"
  530. MouseLeftButtonDown="Window_MouseLeftButtonDown_1"
  531. VerticalScrollBarVisibility="Visible">
  532. <Grid
  533. x:Name="GridM"
  534. Width="auto"
  535. Height="1780"
  536. Margin="0,0,0,0"
  537. Background="#FFFFFF"
  538. MouseLeftButtonDown="Window_MouseLeftButtonDown_1"
  539. Visibility="Visible">
  540. <Grid>
  541. <Border CornerRadius="5">
  542. <Grid x:Name="Img" Margin="0,0,0,0">
  543. <Grid.Resources>
  544. <TransformGroup x:Key="Imageview">
  545. <ScaleTransform />
  546. <TranslateTransform />
  547. </TransformGroup>
  548. </Grid.Resources>
  549. <!-- 图片表框 -->
  550. <Rectangle
  551. x:Name="RectImgBorder"
  552. Width="300"
  553. Height="300"
  554. Margin="373,175,0,0"
  555. HorizontalAlignment="Left"
  556. VerticalAlignment="Top"
  557. Cursor="SizeAll"
  558. Fill="#00000000"
  559. SnapsToDevicePixels="True"
  560. Stroke="#3f6fff"
  561. StrokeDashArray="4 4"
  562. StrokeThickness="4"
  563. Visibility="Hidden" />
  564. <Image
  565. x:Name="ImgCanvas"
  566. Height="0"
  567. HorizontalAlignment="Left"
  568. VerticalAlignment="Top"
  569. Focusable="True"
  570. MouseDown="PicEMap_MouseDown"
  571. MouseLeftButtonDown="imgCanvas_MouseLeftButtonDown"
  572. MouseMove="imgCanvas_MouseMove"
  573. MouseUp="imgCanvas_MouseUp"
  574. RenderTransform="{StaticResource Imageview}"
  575. Stretch="Fill" />
  576. <!-- 四个点 -->
  577. <Canvas>
  578. <Thumb
  579. x:Name="RectLeftUp"
  580. Canvas.Left="314"
  581. Canvas.Top="157"
  582. Width="20"
  583. Height="20"
  584. HorizontalAlignment="Left"
  585. VerticalAlignment="Top"
  586. Background="White"
  587. BorderBrush="#3f6fff"
  588. BorderThickness="2"
  589. Cursor="SizeNWSE"
  590. DragCompleted="RectRightUp_DragCompleted"
  591. DragDelta="RectRightUp_DragDelta"
  592. DragStarted="RectRightUp_DragStarted"
  593. Visibility="Hidden" />
  594. <Thumb
  595. x:Name="RectRightUp"
  596. Canvas.Left="775"
  597. Canvas.Top="157"
  598. Width="20"
  599. Height="20"
  600. HorizontalAlignment="Left"
  601. VerticalAlignment="Top"
  602. Background="White"
  603. BorderBrush="#3f6fff"
  604. BorderThickness="2"
  605. Cursor="SizeNESW"
  606. DragCompleted="RectRightUp_DragCompleted"
  607. DragDelta="RectRightUp_DragDelta"
  608. DragStarted="RectRightUp_DragStarted"
  609. Visibility="Hidden" />
  610. <Thumb
  611. x:Name="RectLeftDown"
  612. Canvas.Left="314"
  613. Canvas.Top="508"
  614. Width="20"
  615. Height="20"
  616. HorizontalAlignment="Left"
  617. VerticalAlignment="Top"
  618. Background="White"
  619. BorderBrush="#3f6fff"
  620. BorderThickness="2"
  621. Cursor="SizeNESW"
  622. DragCompleted="RectRightUp_DragCompleted"
  623. DragDelta="RectRightUp_DragDelta"
  624. DragStarted="RectRightUp_DragStarted"
  625. Visibility="Hidden" />
  626. <Thumb
  627. x:Name="RectRightDown"
  628. Canvas.Left="775"
  629. Canvas.Top="508"
  630. Width="20"
  631. Height="20"
  632. HorizontalAlignment="Left"
  633. VerticalAlignment="Top"
  634. Background="White"
  635. BorderBrush="#3f6fff"
  636. BorderThickness="2"
  637. Cursor="SizeNWSE"
  638. DragCompleted="RectRightUp_DragCompleted"
  639. DragDelta="RectRightUp_DragDelta"
  640. DragStarted="RectRightUp_DragStarted"
  641. Visibility="Hidden" />
  642. </Canvas>
  643. </Grid>
  644. </Border>
  645. </Grid>
  646. <Image
  647. x:Name="ImgDocumentation"
  648. Grid.RowSpan="2"
  649. Stretch="Fill"
  650. Visibility="Visible" />
  651. <Image
  652. x:Name="ImgPpt"
  653. VerticalAlignment="Top"
  654. Visibility="Visible" />
  655. <!-- 导入图片 -->
  656. <InkCanvas
  657. x:Name="BlackboardCanvas"
  658. Grid.Row="0"
  659. Background="Transparent"
  660. Visibility="Collapsed" />
  661. <!-- 摄像头 -->
  662. </Grid>
  663. </ScrollViewer>
  664. <Image
  665. x:Name="HeadImg"
  666. Width="172"
  667. Height="124"
  668. Margin="10,7,10,10"
  669. HorizontalAlignment="Left"
  670. VerticalAlignment="Top"
  671. RenderTransformOrigin="0.5,0.5"
  672. Visibility="Collapsed">
  673. <Image.RenderTransform>
  674. <ScaleTransform ScaleX="-1" />
  675. </Image.RenderTransform>
  676. </Image>
  677. </Grid>
  678. </Border>
  679. </Grid>
  680. <Grid Grid.Row="1" />
  681. <!-- 底部工具栏 -->
  682. <Grid
  683. x:Name="GridBottomToolbars"
  684. Grid.Row="2"
  685. Background="#FFFFFFFF"
  686. Visibility="Visible">
  687. <Grid.ColumnDefinitions>
  688. <ColumnDefinition Width="200" />
  689. <ColumnDefinition Width="*" />
  690. <ColumnDefinition Width="200" />
  691. </Grid.ColumnDefinitions>
  692. <!-- 页码 -->
  693. <Grid
  694. x:Name="GridPage"
  695. Grid.Row="0"
  696. Grid.Column="0"
  697. HorizontalAlignment="Left"
  698. VerticalAlignment="Center"
  699. MouseLeftButtonDown="Window_MouseLeftButtonDown_1"
  700. Visibility="Collapsed">
  701. <StackPanel
  702. Grid.Row="0"
  703. Height="30"
  704. Margin="0,0,0,0"
  705. HorizontalAlignment="Center"
  706. VerticalAlignment="Bottom"
  707. Background="Transparent"
  708. Orientation="Horizontal">
  709. <Label
  710. Margin="5,0,0,0"
  711. VerticalAlignment="Center"
  712. Content="页码:" />
  713. <Button
  714. x:Name="LastButton"
  715. Width="28"
  716. Height="20"
  717. Click="last_button_Click"
  718. Cursor="Hand">
  719. <StackPanel>
  720. <Image
  721. Width="16"
  722. Height="12"
  723. Source=".\Images\class_p1.png" />
  724. </StackPanel>
  725. </Button>
  726. <Grid
  727. Width="60"
  728. Background="Transparent"
  729. MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
  730. <StackPanel
  731. HorizontalAlignment="Center"
  732. Background="Transparent"
  733. Orientation="Horizontal">
  734. <TextBlock
  735. x:Name="TxbCurrpage"
  736. Margin="0"
  737. HorizontalAlignment="Center"
  738. VerticalAlignment="Center"
  739. FontSize="14"
  740. Text="{Binding currpage}"
  741. TextAlignment="Center" />
  742. <TextBlock
  743. HorizontalAlignment="Center"
  744. VerticalAlignment="Center"
  745. FontSize="14"
  746. Text="/"
  747. TextAlignment="Center" />
  748. <TextBlock
  749. x:Name="TxbTotalpage"
  750. HorizontalAlignment="Center"
  751. VerticalAlignment="Center"
  752. FontSize="14"
  753. Text="{Binding pagenum}"
  754. TextAlignment="Center" />
  755. </StackPanel>
  756. </Grid>
  757. <Button
  758. x:Name="NextBtn"
  759. Width="28"
  760. Height="20"
  761. Background="Transparent"
  762. Click="next_btn_Click"
  763. Cursor="Hand">
  764. <StackPanel>
  765. <Image
  766. Width="16"
  767. Height="12"
  768. Source=".\Images\class_p2.png" />
  769. </StackPanel>
  770. </Button>
  771. </StackPanel>
  772. </Grid>
  773. <StackPanel
  774. Grid.Column="1"
  775. Margin="5"
  776. HorizontalAlignment="Right"
  777. VerticalAlignment="Center"
  778. Orientation="Horizontal">
  779. <TextBlock
  780. Margin="5,0,0,0"
  781. Padding="0,0,0,0"
  782. VerticalAlignment="Center"
  783. FontSize="12"
  784. Text="颜色: " />
  785. <Button
  786. x:Name="BtnWhite"
  787. Width="20"
  788. Height="20"
  789. Margin="0,2,0,0"
  790. Background="#FFFFFF"
  791. Click="BtnWhite_Click"
  792. Cursor="Hand"
  793. Visibility="Collapsed" />
  794. <Border
  795. Width="20"
  796. Height="20"
  797. Margin="5,2,0,0">
  798. <Button
  799. x:Name="BtnRed"
  800. Width="20"
  801. Height="20"
  802. Margin="1,1,1,1"
  803. HorizontalAlignment="Center"
  804. Background="#FF0000"
  805. Click="BtnRed_Click"
  806. Cursor="Hand"
  807. Style="{StaticResource NoMouseOverButtonStyle}">
  808. <Image
  809. x:Name="ImgRed"
  810. Width="12"
  811. Source=".\Images\microLessonSystem_999.png"
  812. Visibility="Visible" />
  813. </Button>
  814. </Border>
  815. <Border
  816. Width="20"
  817. Height="20"
  818. Margin="5,2,0,0">
  819. <Button
  820. x:Name="BtnGray"
  821. Width="20"
  822. Height="20"
  823. Margin="1,1,1,1"
  824. Background="#333333"
  825. Click="BtnGray_Click"
  826. Cursor="Hand"
  827. Style="{StaticResource NoMouseOverButtonStyle}">
  828. <Image
  829. x:Name="ImgGray"
  830. Width="12"
  831. Source=".\Images\microLessonSystem_999.png"
  832. Visibility="Collapsed" />
  833. </Button>
  834. </Border>
  835. <Border
  836. Width="20"
  837. Height="20"
  838. Margin="5,2,0,0">
  839. <Button
  840. x:Name="BtnCyanBlue"
  841. Width="20"
  842. Height="20"
  843. Margin="1,1,1,1"
  844. Background="#63D600"
  845. Click="BtnCyanBlue_Click"
  846. Cursor="Hand"
  847. Style="{StaticResource NoMouseOverButtonStyle}">
  848. <Image
  849. x:Name="ImgCyanBlue"
  850. Width="12"
  851. Source=".\Images\microLessonSystem_999.png"
  852. Visibility="Collapsed" />
  853. </Button>
  854. </Border>
  855. <Border
  856. Width="20"
  857. Height="20"
  858. Margin="5,2,0,0">
  859. <Button
  860. x:Name="BtnYellow"
  861. Width="20"
  862. Height="20"
  863. Margin="1,1,1,1"
  864. Background="#FFBC00"
  865. Click="BtnYellow_Click"
  866. Cursor="Hand"
  867. Style="{StaticResource NoMouseOverButtonStyle}">
  868. <Image
  869. x:Name="ImgYellow"
  870. Width="12"
  871. Source=".\Images\microLessonSystem_999.png"
  872. Visibility="Collapsed" />
  873. </Button>
  874. </Border>
  875. <Border
  876. Width="20"
  877. Height="20"
  878. Margin="5,2,0,0">
  879. <Button
  880. x:Name="BtnBlue"
  881. Width="20"
  882. Height="20"
  883. Margin="1,1,1,1"
  884. Background="#00B4FC"
  885. Click="BtnBlue_Click"
  886. Cursor="Hand"
  887. Style="{StaticResource NoMouseOverButtonStyle}">
  888. <Image
  889. x:Name="ImgBlue"
  890. Width="12"
  891. Source=".\Images\microLessonSystem_999.png"
  892. Visibility="Collapsed" />
  893. </Button>
  894. </Border>
  895. <TextBlock
  896. Margin="5,0,0,0"
  897. Padding="0,0,0,0"
  898. VerticalAlignment="Center"
  899. FontSize="12"
  900. Text="粗细: " />
  901. <RadioButton
  902. x:Name="RbnFine"
  903. Margin="0"
  904. VerticalAlignment="Center"
  905. Click="RbnFine_Click"
  906. Content=" 细"
  907. Cursor="Hand"
  908. FontSize="12"
  909. IsChecked="True"
  910. Style="{StaticResource RadBase}" />
  911. <RadioButton
  912. x:Name="RbnIn"
  913. Margin="5,0,0,0"
  914. VerticalAlignment="Center"
  915. Click="RbnIn_Click"
  916. Content=" 中"
  917. Cursor="Hand"
  918. FontSize="12"
  919. Style="{StaticResource RadBase}" />
  920. <RadioButton
  921. x:Name="RbnCrude"
  922. Margin="5,0,0,0"
  923. VerticalAlignment="Center"
  924. Click="RbnCrude_Click"
  925. Content=" 粗"
  926. Cursor="Hand"
  927. FontSize="12"
  928. Style="{StaticResource RadBase}" />
  929. </StackPanel>
  930. <StackPanel
  931. Name="SheXiangTouSp"
  932. Grid.Column="2"
  933. Margin="5"
  934. HorizontalAlignment="Right"
  935. VerticalAlignment="Center"
  936. Orientation="Horizontal">
  937. <TextBlock
  938. Padding="5,0,0,0"
  939. VerticalAlignment="Center"
  940. FontSize="12"
  941. Text="摄像头: " />
  942. <RadioButton
  943. x:Name="RbnOpen"
  944. Margin="0,0,0,0"
  945. VerticalAlignment="Center"
  946. Click="RbnOpen_Click"
  947. Content=" 开"
  948. Cursor="Hand"
  949. FontSize="12"
  950. Style="{StaticResource RadBase}" />
  951. <RadioButton
  952. x:Name="RbnTurnOff"
  953. Margin="5,0,10,0"
  954. VerticalAlignment="Center"
  955. Click="RbnTurnOff_Click"
  956. Content=" 关"
  957. Cursor="Hand"
  958. FontSize="12"
  959. IsChecked="True"
  960. Style="{StaticResource RadBase}" />
  961. </StackPanel>
  962. </Grid>
  963. </Grid>
  964. <!-- 设置 955 -->
  965. <ScrollViewer
  966. x:Name="GridSetUp"
  967. VerticalScrollBarVisibility="Auto"
  968. Visibility="Collapsed">
  969. <Grid Height="650">
  970. <Grid Background="#FFFFFF">
  971. <Grid.RowDefinitions>
  972. <RowDefinition Height="146" />
  973. <RowDefinition Height="160*" />
  974. <RowDefinition Height="100*" />
  975. <RowDefinition Height="200*" />
  976. <RowDefinition Height="90*" />
  977. <RowDefinition Height="205*" />
  978. </Grid.RowDefinitions>
  979. <!-- 更换皮肤 h200 -->
  980. <Grid Grid.Row="0" Margin="100,0">
  981. <Grid.RowDefinitions>
  982. <RowDefinition Height="20" />
  983. <RowDefinition Height="20" />
  984. <RowDefinition Height="140" />
  985. <RowDefinition Height="20" />
  986. </Grid.RowDefinitions>
  987. <Grid Grid.Row="1" Grid.Column="0">
  988. <Grid.ColumnDefinitions>
  989. <ColumnDefinition Width="100" />
  990. <ColumnDefinition Width="646*" />
  991. </Grid.ColumnDefinitions>
  992. <TextBlock
  993. Grid.Column="0"
  994. HorizontalAlignment="Right"
  995. VerticalAlignment="Center"
  996. FontSize="16"
  997. Foreground="#333333"
  998. Text="更换皮肤" />
  999. </Grid>
  1000. <Grid Grid.Row="2">
  1001. <Grid.ColumnDefinitions>
  1002. <ColumnDefinition Width="100" />
  1003. <ColumnDefinition Width="207*" />
  1004. <ColumnDefinition Width="207*" />
  1005. <ColumnDefinition Width="207*" />
  1006. <ColumnDefinition Width="120*" />
  1007. </Grid.ColumnDefinitions>
  1008. <Grid.RowDefinitions>
  1009. <RowDefinition Height="80" />
  1010. <RowDefinition Height="36" />
  1011. </Grid.RowDefinitions>
  1012. <Grid
  1013. Grid.Row="0"
  1014. Grid.Column="1"
  1015. Margin="5,0">
  1016. <Button
  1017. x:Name="BtnSkinWhite"
  1018. HorizontalAlignment="Stretch"
  1019. VerticalAlignment="Center"
  1020. Click="BtnSkinWhite_Click"
  1021. Cursor="Hand">
  1022. <Button.Template>
  1023. <ControlTemplate TargetType="{x:Type Button}">
  1024. <StackPanel>
  1025. <Image x:Name="ImgRecord" Source="/SkinImages/Skin/Skin_White.png" />
  1026. </StackPanel>
  1027. <ControlTemplate.Triggers>
  1028. <Trigger Property="IsMouseOver" Value="True">
  1029. <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/Skin/Skin_White_MI.png" />
  1030. </Trigger>
  1031. </ControlTemplate.Triggers>
  1032. </ControlTemplate>
  1033. </Button.Template>
  1034. </Button>
  1035. <Image
  1036. x:Name="SkinSelectWhite"
  1037. Margin="140,0,15,15"
  1038. HorizontalAlignment="Right"
  1039. VerticalAlignment="Bottom"
  1040. Source="/SkinImages/Skin/Skin_Select.png" />
  1041. </Grid>
  1042. <Grid
  1043. Grid.Row="0"
  1044. Grid.Column="2"
  1045. Margin="5,0">
  1046. <Button
  1047. x:Name="BtnSkinTechnologyBlue"
  1048. HorizontalAlignment="Stretch"
  1049. VerticalAlignment="Center"
  1050. Click="BtnSkinTechnologyBlue_Click"
  1051. Cursor="Hand">
  1052. <Button.Template>
  1053. <ControlTemplate TargetType="{x:Type Button}">
  1054. <StackPanel>
  1055. <Image x:Name="ImgRecord" Source="/SkinImages/Skin/Skin_TechnologyBlue.png" />
  1056. </StackPanel>
  1057. <ControlTemplate.Triggers>
  1058. <Trigger Property="IsMouseOver" Value="True">
  1059. <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/Skin/Skin_TechnologyBlue_MI.png" />
  1060. </Trigger>
  1061. </ControlTemplate.Triggers>
  1062. </ControlTemplate>
  1063. </Button.Template>
  1064. </Button>
  1065. <Image
  1066. x:Name="SkinSelectTechnologyBlue"
  1067. Margin="140,0,15,15"
  1068. HorizontalAlignment="Right"
  1069. VerticalAlignment="Bottom"
  1070. Source="/SkinImages/Skin/Skin_Select.png"
  1071. Visibility="Hidden" />
  1072. </Grid>
  1073. <Grid Grid.Row="1" Grid.Column="1">
  1074. <TextBlock
  1075. HorizontalAlignment="Center"
  1076. VerticalAlignment="Center"
  1077. FontSize="16"
  1078. Foreground="#333333"
  1079. Text="经典白" />
  1080. </Grid>
  1081. <Grid Grid.Row="1" Grid.Column="2">
  1082. <TextBlock
  1083. HorizontalAlignment="Center"
  1084. VerticalAlignment="Center"
  1085. FontSize="16"
  1086. Foreground="#333333"
  1087. Text="科技蓝" />
  1088. </Grid>
  1089. </Grid>
  1090. <Label
  1091. Grid.Row="3"
  1092. Height="1"
  1093. VerticalAlignment="Bottom"
  1094. Background="#FFEFEFEF" />
  1095. </Grid>
  1096. <!-- 视频格式 摄像头位置 h200 -->
  1097. <Grid Grid.Row="1" Margin="100,0">
  1098. <Grid>
  1099. <Grid.ColumnDefinitions>
  1100. <ColumnDefinition Width="100" />
  1101. <ColumnDefinition Width="215*" />
  1102. <ColumnDefinition Width="215*" />
  1103. <ColumnDefinition Width="216*" />
  1104. </Grid.ColumnDefinitions>
  1105. <Grid.RowDefinitions>
  1106. <RowDefinition Height="20*" />
  1107. <RowDefinition Height="60*" />
  1108. <RowDefinition Height="60*" />
  1109. <RowDefinition Height="20*" />
  1110. </Grid.RowDefinitions>
  1111. <Grid Grid.Row="1" Grid.Column="0">
  1112. <TextBlock
  1113. Grid.Column="0"
  1114. HorizontalAlignment="Right"
  1115. VerticalAlignment="Center"
  1116. FontSize="16"
  1117. Foreground="#333333"
  1118. Text="视频格式" />
  1119. </Grid>
  1120. <Grid Grid.Row="1" Grid.Column="1">
  1121. <StackPanel
  1122. Margin="15,0,0,0"
  1123. HorizontalAlignment="Left"
  1124. VerticalAlignment="Center"
  1125. Orientation="Horizontal">
  1126. <RadioButton
  1127. x:Name="RbnMp4"
  1128. VerticalAlignment="Top"
  1129. Content=" MP4"
  1130. Cursor="Hand"
  1131. FontSize="16"
  1132. Foreground="#333333"
  1133. IsChecked="True"
  1134. Style="{StaticResource RadBase}" />
  1135. <RadioButton
  1136. x:Name="RbnFlv"
  1137. Margin="15,0,0,0"
  1138. VerticalAlignment="Top"
  1139. Content=" FLV"
  1140. Cursor="Hand"
  1141. FontSize="16"
  1142. Foreground="#333333"
  1143. Style="{StaticResource RadBase}"
  1144. Visibility="Collapsed" />
  1145. <RadioButton
  1146. x:Name="RbnAvi"
  1147. Margin="15,0,0,0"
  1148. Content=" AVI"
  1149. Cursor="Hand"
  1150. FontSize="16"
  1151. Foreground="#333333"
  1152. Style="{StaticResource RadBase}"
  1153. Visibility="Collapsed" />
  1154. </StackPanel>
  1155. </Grid>
  1156. <Grid Grid.Row="1" Grid.Column="2">
  1157. <TextBlock
  1158. HorizontalAlignment="Right"
  1159. VerticalAlignment="Center"
  1160. FontSize="16"
  1161. Foreground="#333333"
  1162. Text="头像位置" />
  1163. </Grid>
  1164. <Grid Grid.Row="1" Grid.Column="3">
  1165. <StackPanel
  1166. Margin="15,0,0,0"
  1167. HorizontalAlignment="Left"
  1168. VerticalAlignment="Center"
  1169. Orientation="Horizontal">
  1170. <RadioButton
  1171. x:Name="RbnLeft"
  1172. Margin="0"
  1173. HorizontalAlignment="Left"
  1174. VerticalAlignment="Center"
  1175. Content=" 左上"
  1176. Cursor="Hand"
  1177. FontSize="16"
  1178. Foreground="#333333"
  1179. GroupName="RbtnCamera"
  1180. Style="{StaticResource RadBase}" />
  1181. <RadioButton
  1182. x:Name="RbnRight"
  1183. Margin="15,0,0,0"
  1184. HorizontalAlignment="Right"
  1185. VerticalAlignment="Center"
  1186. Content=" 右上"
  1187. Cursor="Hand"
  1188. FontSize="16"
  1189. Foreground="#333333"
  1190. GroupName="RbtnCamera"
  1191. IsChecked="True"
  1192. Style="{StaticResource RadBase}" />
  1193. </StackPanel>
  1194. </Grid>
  1195. <Grid Grid.Row="2" Grid.Column="3">
  1196. <StackPanel
  1197. Margin="15,0,0,0"
  1198. HorizontalAlignment="Left"
  1199. VerticalAlignment="Center"
  1200. Orientation="Horizontal">
  1201. <RadioButton
  1202. x:Name="RbnLeftUnder"
  1203. HorizontalAlignment="Left"
  1204. VerticalAlignment="Center"
  1205. Content=" 左下"
  1206. Cursor="Hand"
  1207. FontSize="16"
  1208. Foreground="#333333"
  1209. GroupName="RbtnCamera"
  1210. Style="{StaticResource RadBase}" />
  1211. <RadioButton
  1212. x:Name="RbnRightUnder"
  1213. Margin="15,0"
  1214. HorizontalAlignment="Left"
  1215. VerticalAlignment="Center"
  1216. Content=" 右下"
  1217. Cursor="Hand"
  1218. FontSize="16"
  1219. Foreground="#333333"
  1220. GroupName="RbtnCamera"
  1221. Style="{StaticResource RadBase}" />
  1222. </StackPanel>
  1223. </Grid>
  1224. <Grid Grid.Row="2" Grid.Column="0">
  1225. <TextBlock
  1226. HorizontalAlignment="Right"
  1227. VerticalAlignment="Center"
  1228. FontSize="16"
  1229. Foreground="#333333"
  1230. Text="录屏工具栏" />
  1231. </Grid>
  1232. <Grid Grid.Row="2" Grid.Column="1">
  1233. <StackPanel
  1234. Margin="15,0,0,0"
  1235. HorizontalAlignment="Left"
  1236. VerticalAlignment="Center"
  1237. Orientation="Horizontal">
  1238. <RadioButton
  1239. x:Name="RbnHide"
  1240. VerticalAlignment="Top"
  1241. Content=" 隐藏"
  1242. Cursor="Hand"
  1243. FontSize="16"
  1244. Foreground="#333333"
  1245. IsChecked="True"
  1246. Style="{StaticResource RadBase}" />
  1247. <RadioButton
  1248. x:Name="Rbnvisi"
  1249. Margin="15,0,0,0"
  1250. VerticalAlignment="Top"
  1251. Content=" 显示"
  1252. Cursor="Hand"
  1253. FontSize="16"
  1254. Foreground="#333333"
  1255. Style="{StaticResource RadBase}" />
  1256. </StackPanel>
  1257. </Grid>
  1258. <Grid Grid.Row="2" Grid.Column="2" />
  1259. </Grid>
  1260. <Label
  1261. Height="1"
  1262. VerticalAlignment="Bottom"
  1263. Background="#FFEFEFEF" />
  1264. </Grid>
  1265. <!-- 地址修改 h305 -->
  1266. <Grid Grid.Row="2" Margin="100,0">
  1267. <Grid>
  1268. <Grid.ColumnDefinitions>
  1269. <ColumnDefinition Width="100" />
  1270. <ColumnDefinition Width="430*" />
  1271. <ColumnDefinition Width="215*" />
  1272. </Grid.ColumnDefinitions>
  1273. <Grid.RowDefinitions>
  1274. <RowDefinition Height="20*" />
  1275. <RowDefinition Height="60*" />
  1276. <RowDefinition Height="20*" />
  1277. </Grid.RowDefinitions>
  1278. <!-- 地址 废弃2021年7月9日赵耀 -->
  1279. <Grid Visibility="Collapsed" />
  1280. <Grid Grid.Row="1" Grid.Column="0">
  1281. <TextBlock
  1282. Padding="0,0,0,0"
  1283. HorizontalAlignment="Right"
  1284. VerticalAlignment="Center"
  1285. FontSize="16"
  1286. Foreground="#333333"
  1287. Text="文件路径" />
  1288. </Grid>
  1289. <Grid Grid.Row="1" Grid.Column="1">
  1290. <Grid>
  1291. <Border
  1292. Height="30"
  1293. Margin="10,0,0,0"
  1294. BorderBrush="#FFE3E3E3"
  1295. BorderThickness="1"
  1296. CornerRadius="1">
  1297. <Label
  1298. x:Name="TxbStoragePath"
  1299. Margin="10,0"
  1300. Background="#FFFFFF"
  1301. BorderBrush="{x:Null}"
  1302. BorderThickness="0"
  1303. Content="D:\"
  1304. FontSize="14"
  1305. Foreground="#333333" />
  1306. </Border>
  1307. </Grid>
  1308. </Grid>
  1309. <Grid Grid.Row="1" Grid.Column="2">
  1310. <Grid.ColumnDefinitions>
  1311. <ColumnDefinition Width="76" />
  1312. <ColumnDefinition Width="76" />
  1313. </Grid.ColumnDefinitions>
  1314. <!-- 浏览按钮 -->
  1315. <Button
  1316. x:Name="BtnBrowse"
  1317. Grid.Column="0"
  1318. Width="66"
  1319. Height="30"
  1320. HorizontalAlignment="Stretch"
  1321. VerticalAlignment="Stretch"
  1322. Background="#3f6fff"
  1323. Click="BtnBrowse_Click"
  1324. Content="浏览"
  1325. Cursor="Hand"
  1326. FontSize="14"
  1327. Foreground="#FFFFFF" />
  1328. <!-- 打开按钮 -->
  1329. <Button
  1330. x:Name="BtnOpen"
  1331. Grid.Column="1"
  1332. Width="66"
  1333. Height="30"
  1334. HorizontalAlignment="Stretch"
  1335. VerticalAlignment="Stretch"
  1336. Background="#3f6fff"
  1337. Click="btnOpen_Click"
  1338. Content="打开"
  1339. Cursor="Hand"
  1340. FontSize="14"
  1341. Foreground="#FFFFFF" />
  1342. </Grid>
  1343. </Grid>
  1344. <Label
  1345. Height="1"
  1346. VerticalAlignment="Bottom"
  1347. Background="#FFEFEFEF" />
  1348. </Grid>
  1349. <!-- 版权 快捷键 版本号 h200 -->
  1350. <Grid Grid.Row="3" Margin="100,0">
  1351. <Grid.ColumnDefinitions>
  1352. <ColumnDefinition Width="100" />
  1353. <ColumnDefinition Width="215*" />
  1354. <ColumnDefinition Width="215*" />
  1355. <ColumnDefinition Width="215*" />
  1356. </Grid.ColumnDefinitions>
  1357. <Grid.RowDefinitions>
  1358. <RowDefinition Height="20*" />
  1359. <RowDefinition Height="60*" />
  1360. <RowDefinition Height="60*" />
  1361. <RowDefinition Height="60*" />
  1362. </Grid.RowDefinitions>
  1363. <Grid Grid.Row="1" Grid.Column="0">
  1364. <TextBlock
  1365. Padding="0,0,0,0"
  1366. HorizontalAlignment="Right"
  1367. VerticalAlignment="Center"
  1368. FontSize="16"
  1369. Foreground="#FF666666"
  1370. Text="录屏快捷键" />
  1371. </Grid>
  1372. <Grid
  1373. Grid.Row="1"
  1374. Grid.Column="1"
  1375. Grid.ColumnSpan="3">
  1376. <TextBlock
  1377. Margin="20,0,0,0"
  1378. VerticalAlignment="Center"
  1379. FontSize="16"
  1380. Foreground="#FF666666"
  1381. Text="开始/暂停:Ctrl+F5 停止:Ctrl+F6 退出讲评:鼠标右键" />
  1382. </Grid>
  1383. <Grid Grid.Row="2" Grid.Column="0">
  1384. <TextBlock
  1385. HorizontalAlignment="Right"
  1386. VerticalAlignment="Center"
  1387. FontSize="16"
  1388. Foreground="#FF666666"
  1389. Text="版权所有" />
  1390. </Grid>
  1391. <Grid
  1392. Grid.Row="2"
  1393. Grid.Column="1"
  1394. Grid.ColumnSpan="3">
  1395. <TextBlock
  1396. Margin="20,0,0,0"
  1397. VerticalAlignment="Center"
  1398. FontSize="16"
  1399. Foreground="#FF666666"
  1400. Text="河南星火燎原软件科技有限公司" />
  1401. </Grid>
  1402. <Grid Grid.Row="3" Grid.Column="0">
  1403. <TextBlock
  1404. Margin="0,0,0,0"
  1405. HorizontalAlignment="Right"
  1406. VerticalAlignment="Center"
  1407. FontSize="16"
  1408. Foreground="#FF666666"
  1409. Text="版本" />
  1410. </Grid>
  1411. <Grid Grid.Row="3" Grid.Column="1">
  1412. <TextBlock
  1413. x:Name="Txbv"
  1414. Margin="20,0,0,0"
  1415. VerticalAlignment="Center"
  1416. FontSize="16"
  1417. Foreground="#FF666666"
  1418. Text="V0.0.0" />
  1419. </Grid>
  1420. </Grid>
  1421. <!-- 按钮 h50 -->
  1422. <Grid Grid.Row="4" Margin="100,0">
  1423. <Grid.ColumnDefinitions>
  1424. <ColumnDefinition Width="215*" />
  1425. <ColumnDefinition Width="530*" />
  1426. <ColumnDefinition Width="180*" />
  1427. </Grid.ColumnDefinitions>
  1428. <Grid.RowDefinitions>
  1429. <RowDefinition Height="50*" />
  1430. </Grid.RowDefinitions>
  1431. <Grid Grid.Column="2">
  1432. <!-- 保存 -->
  1433. <Button
  1434. x:Name="BtnSave"
  1435. Width="76"
  1436. Height="30"
  1437. HorizontalAlignment="Stretch"
  1438. VerticalAlignment="Center"
  1439. Background="#3f6fff"
  1440. Click="BtnSave_Click"
  1441. Content="保存"
  1442. Cursor="Hand"
  1443. FontSize="14"
  1444. Foreground="#FFFFFF" />
  1445. </Grid>
  1446. <Grid
  1447. Grid.Row="0"
  1448. Grid.Column="0"
  1449. Visibility="Collapsed">
  1450. <TextBlock
  1451. Margin="0,30,0,0"
  1452. HorizontalAlignment="Right"
  1453. FontSize="16"
  1454. Foreground="#333333"
  1455. Text="设备"
  1456. Visibility="Hidden" />
  1457. <TextBlock
  1458. x:Name="TxbNotConnecteds"
  1459. Margin="30,30,0,0"
  1460. FontSize="14"
  1461. Foreground="#333333"
  1462. Text="未连接"
  1463. Visibility="Hidden" />
  1464. </Grid>
  1465. </Grid>
  1466. </Grid>
  1467. </Grid>
  1468. </ScrollViewer>
  1469. <!-- 我的 -->
  1470. <Grid
  1471. x:Name="GridMyVideo"
  1472. Margin="0"
  1473. Background="White"
  1474. Visibility="Collapsed">
  1475. <Grid.RowDefinitions>
  1476. <RowDefinition Height="905*" />
  1477. <RowDefinition Height="50*" />
  1478. </Grid.RowDefinitions>
  1479. <Label
  1480. x:Name="LblVideoMess"
  1481. Grid.Row="0"
  1482. Margin="0,0,0,100"
  1483. HorizontalAlignment="Center"
  1484. VerticalAlignment="Center"
  1485. Content="暂无微课录制信息,请录制并等待保存完成后重试!"
  1486. FontSize="20"
  1487. Visibility="Hidden" />
  1488. <Button
  1489. x:Name="BtnVideoUpPage"
  1490. Grid.Row="1"
  1491. Width="60"
  1492. Margin="0,0,150,12"
  1493. HorizontalAlignment="Center"
  1494. VerticalAlignment="Bottom"
  1495. Background="{x:Null}"
  1496. BorderBrush="{x:Null}"
  1497. Click="BtnVideoUpPage_Click"
  1498. Content="上一页"
  1499. Cursor="Hand"
  1500. FontSize="16"
  1501. Foreground="#FF333333" />
  1502. <Label
  1503. x:Name="LblVideoPageNum"
  1504. Grid.Row="1"
  1505. Margin="0,0,0,10"
  1506. HorizontalAlignment="Center"
  1507. VerticalAlignment="Bottom"
  1508. Content="100/100"
  1509. FontSize="14"
  1510. Foreground="#FF333333" />
  1511. <Button
  1512. x:Name="BtnVideoDownPage"
  1513. Grid.Row="1"
  1514. Width="60"
  1515. Margin="150,0,0,12"
  1516. HorizontalAlignment="Center"
  1517. VerticalAlignment="Bottom"
  1518. Background="{x:Null}"
  1519. BorderBrush="{x:Null}"
  1520. Click="BtnVideoDownPage_Click"
  1521. Content="下一页"
  1522. Cursor="Hand"
  1523. FontSize="16"
  1524. Foreground="#FF333333" />
  1525. </Grid>
  1526. <!-- 打印 -->
  1527. <Grid
  1528. x:Name="GridPrintContent"
  1529. Background="White"
  1530. Visibility="Collapsed">
  1531. <Grid.RowDefinitions>
  1532. <RowDefinition Height="905*" />
  1533. <RowDefinition Height="50*" />
  1534. </Grid.RowDefinitions>
  1535. <Grid Grid.Row="0">
  1536. <Border BorderBrush="#FFDCDCDC" BorderThickness="1">
  1537. <ScrollViewer VerticalScrollBarVisibility="Visible">
  1538. <Image x:Name="ImgPri" />
  1539. </ScrollViewer>
  1540. </Border>
  1541. </Grid>
  1542. </Grid>
  1543. </Grid>
  1544. </Grid>
  1545. </Grid>
  1546. <!-- 打印相关 -->
  1547. <Border
  1548. x:Name="GridPrintingTitle"
  1549. Width="446"
  1550. Height="108"
  1551. BorderBrush="#eeeeee"
  1552. BorderThickness="1"
  1553. Visibility="Collapsed">
  1554. <Grid Background="#ffffff">
  1555. <Grid.RowDefinitions>
  1556. <RowDefinition Height="40" />
  1557. <RowDefinition Height="64" />
  1558. </Grid.RowDefinitions>
  1559. <Grid Grid.Row="0" Background="#3F6FFF">
  1560. <TextBlock
  1561. Margin="10,0,0,0"
  1562. VerticalAlignment="Center"
  1563. FontSize="16"
  1564. Foreground="White"
  1565. Text="打印" />
  1566. <Button
  1567. Grid.Row="0"
  1568. Width="46"
  1569. Margin="0,-2,0,0"
  1570. HorizontalAlignment="Right"
  1571. VerticalContentAlignment="Center"
  1572. Click="BtnPrintCloseClick"
  1573. Content="×"
  1574. Cursor="Hand"
  1575. FontSize="30"
  1576. Foreground="White" />
  1577. </Grid>
  1578. <Grid Grid.Row="1">
  1579. <Grid.ColumnDefinitions>
  1580. <ColumnDefinition Width="30" />
  1581. <ColumnDefinition Width="Auto" />
  1582. <ColumnDefinition Width="*" />
  1583. <ColumnDefinition Width="Auto" />
  1584. <ColumnDefinition Width="Auto" />
  1585. </Grid.ColumnDefinitions>
  1586. <Image
  1587. Grid.Column="0"
  1588. Width="20"
  1589. Height="20"
  1590. Margin="10,0,0,0"
  1591. HorizontalAlignment="Center"
  1592. VerticalAlignment="Center"
  1593. Source="./Images/shuoming.png" />
  1594. <Button
  1595. x:Name="BtnPrintExplain"
  1596. Grid.Column="1"
  1597. Height="36"
  1598. Margin="6,0,0,0"
  1599. HorizontalAlignment="Stretch"
  1600. VerticalAlignment="Stretch"
  1601. Click="btnPrintExplain_Click"
  1602. Content="打印说明"
  1603. Cursor="Hand"
  1604. FontSize="16"
  1605. Foreground="#3F6FFF"
  1606. IsDefault="True" />
  1607. <Button
  1608. Grid.Column="3"
  1609. Width="100"
  1610. Height="36"
  1611. Margin="0,0,10,0"
  1612. HorizontalAlignment="Stretch"
  1613. VerticalAlignment="Center"
  1614. Background="#3F6FFF"
  1615. Click="Print_No_Code_Click"
  1616. Content="普通打印"
  1617. Cursor="Hand"
  1618. FontSize="16"
  1619. Foreground="White"
  1620. IsDefault="True" />
  1621. <Button
  1622. x:Name="BtnPrintPrint"
  1623. Grid.Column="4"
  1624. Width="100"
  1625. Height="36"
  1626. Margin="0,0,10,0"
  1627. HorizontalAlignment="Stretch"
  1628. VerticalAlignment="Stretch"
  1629. Background="#3F6FFF"
  1630. Click="BtnPrint_Print_Click"
  1631. Content="铺码打印"
  1632. Cursor="Hand"
  1633. FontSize="16"
  1634. Foreground="White"
  1635. IsDefault="True" />
  1636. </Grid>
  1637. </Grid>
  1638. </Border>
  1639. <Grid
  1640. x:Name="GridPrintMask"
  1641. Background="#4C000000"
  1642. Visibility="Collapsed">
  1643. <Grid.ColumnDefinitions>
  1644. <ColumnDefinition Width="15*" />
  1645. <ColumnDefinition Width="70*" />
  1646. <ColumnDefinition Width="15*" />
  1647. </Grid.ColumnDefinitions>
  1648. <Grid.RowDefinitions>
  1649. <RowDefinition Height="35*" />
  1650. <RowDefinition Height="100" />
  1651. <RowDefinition Height="45*" />
  1652. </Grid.RowDefinitions>
  1653. <Grid Grid.Row="1" Grid.Column="1">
  1654. <Label
  1655. x:Name="LabPrintMessage"
  1656. Height="35"
  1657. Margin="0,10,0,0"
  1658. HorizontalAlignment="Center"
  1659. VerticalAlignment="Top"
  1660. Content="打印中..."
  1661. FontSize="22"
  1662. Foreground="#FFF9F7F7" />
  1663. <ProgressBar
  1664. x:Name="PgbProcess"
  1665. Grid.Row="0"
  1666. Height="20"
  1667. Margin="50,20,50,0"
  1668. BorderBrush="#4597FF"
  1669. Foreground="#4597FF"
  1670. Visibility="Visible" />
  1671. <Label
  1672. x:Name="LbProcess"
  1673. Grid.Row="0"
  1674. Width="60"
  1675. Height="30"
  1676. Margin="0,20,0,0"
  1677. HorizontalAlignment="Center"
  1678. Content=""
  1679. FontSize="16"
  1680. Foreground="White"
  1681. Visibility="Visible" />
  1682. </Grid>
  1683. </Grid>
  1684. </Grid>
  1685. </Window>