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

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