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

MainWindow.xaml 96KB

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