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

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