星火微课系统客户端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

MainWindow.xaml 109KB

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