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

XHMicroLessonSystemWindow.xaml 112KB

4 年之前
4 年之前
4 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969
  1. <Window
  2. x:Class="XHWK.WKTool.XHMicroLessonSystemWindow"
  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 Grid.Column="2">
  342. <StackPanel Orientation="Horizontal" />
  343. <Button
  344. x:Name="BtnRecord"
  345. Margin="10,5,0,5"
  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 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 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"></ColumnDefinition>
  885. <ColumnDefinition Width="*"></ColumnDefinition>
  886. <ColumnDefinition Width="200"></ColumnDefinition>
  887. </Grid.ColumnDefinitions>
  888. <!-- 页码 -->
  889. <Grid
  890. x:Name="GridPage"
  891. Grid.Column="0"
  892. Grid.Row="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 Margin="5,0,0,0" Content="页码:" VerticalAlignment="Center" ></Label>
  907. <Button
  908. x:Name="last_button"
  909. Width="28"
  910. Height="20"
  911. Click="last_button_Click"
  912. Cursor="Hand"
  913. Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
  914. <StackPanel>
  915. <Image
  916. Width="16"
  917. Height="12"
  918. Source=".\Images\class_p1.png" />
  919. </StackPanel>
  920. </Button>
  921. <Grid
  922. Width="60"
  923. Background="Transparent"
  924. MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
  925. <StackPanel
  926. HorizontalAlignment="Center"
  927. Background="Transparent"
  928. Orientation="Horizontal">
  929. <TextBlock
  930. x:Name="txbCurrpage"
  931. Margin="0"
  932. HorizontalAlignment="Center"
  933. VerticalAlignment="Center"
  934. FontSize="14"
  935. Text="{Binding currpage}"
  936. TextAlignment="Center" />
  937. <TextBlock
  938. HorizontalAlignment="Center"
  939. VerticalAlignment="Center"
  940. FontSize="14"
  941. Text="/"
  942. TextAlignment="Center" />
  943. <TextBlock
  944. x:Name="txbTotalpage"
  945. HorizontalAlignment="Center"
  946. VerticalAlignment="Center"
  947. FontSize="14"
  948. Text="{Binding pagenum}"
  949. TextAlignment="Center" />
  950. </StackPanel>
  951. </Grid>
  952. <Button
  953. x:Name="next_btn"
  954. Width="28"
  955. Height="20"
  956. Background="Transparent"
  957. Click="next_btn_Click"
  958. Cursor="Hand"
  959. Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
  960. <StackPanel>
  961. <Image
  962. Width="16"
  963. Height="12"
  964. Source=".\Images\class_p2.png" />
  965. </StackPanel>
  966. </Button>
  967. </StackPanel>
  968. </Grid>
  969. <StackPanel
  970. Margin="5"
  971. Grid.Column="1"
  972. HorizontalAlignment="Right"
  973. VerticalAlignment="Center"
  974. Orientation="Horizontal">
  975. <TextBlock
  976. Margin="5,0,0,0"
  977. Padding="0,0,0,0"
  978. VerticalAlignment="Center"
  979. FontSize="12"
  980. Text="颜色: " />
  981. <Button
  982. x:Name="btnWhite"
  983. Width="20"
  984. Height="20"
  985. Margin="0,2,0,0"
  986. Background="#FFFFFF"
  987. Click="BtnWhite_Click"
  988. Cursor="Hand"
  989. Visibility="Collapsed" />
  990. <Border
  991. Width="20"
  992. Height="20"
  993. Margin="5,2,0,0"
  994. Background="#666666">
  995. <Button
  996. x:Name="btnRed"
  997. Width="20"
  998. Height="20"
  999. Margin="1,1,1,1"
  1000. HorizontalAlignment="Center"
  1001. Background="#FF0000"
  1002. Click="BtnRed_Click"
  1003. Cursor="Hand"
  1004. Style="{StaticResource NoMouseOverButtonStyle}">
  1005. <Image
  1006. x:Name="imgRed"
  1007. Width="12"
  1008. Source=".\Images\microLessonSystem_999.png"
  1009. Visibility="Visible" />
  1010. </Button>
  1011. </Border>
  1012. <Border
  1013. Width="20"
  1014. Height="20"
  1015. Margin="5,2,0,0"
  1016. Background="#666666">
  1017. <Button
  1018. x:Name="btnGray"
  1019. Width="20"
  1020. Height="20"
  1021. Margin="1,1,1,1"
  1022. Background="#333333"
  1023. Click="BtnGray_Click"
  1024. Cursor="Hand"
  1025. Style="{StaticResource NoMouseOverButtonStyle}">
  1026. <Image
  1027. x:Name="imgGray"
  1028. Width="12"
  1029. Source=".\Images\microLessonSystem_999.png"
  1030. Visibility="Collapsed" />
  1031. </Button>
  1032. </Border>
  1033. <Border
  1034. Width="20"
  1035. Height="20"
  1036. Margin="5,2,0,0"
  1037. Background="#666666">
  1038. <Button
  1039. x:Name="btnCyanBlue"
  1040. Width="20"
  1041. Height="20"
  1042. Margin="1,1,1,1"
  1043. Background="#63D600"
  1044. Click="BtnCyanBlue_Click"
  1045. Cursor="Hand"
  1046. Style="{StaticResource NoMouseOverButtonStyle}">
  1047. <Image
  1048. x:Name="imgCyanBlue"
  1049. Width="12"
  1050. Source=".\Images\microLessonSystem_999.png"
  1051. Visibility="Collapsed" />
  1052. </Button>
  1053. </Border>
  1054. <Border
  1055. Width="20"
  1056. Height="20"
  1057. Margin="5,2,0,0"
  1058. Background="#666666">
  1059. <Button
  1060. x:Name="btnYellow"
  1061. Width="20"
  1062. Height="20"
  1063. Margin="1,1,1,1"
  1064. Background="#FFBC00"
  1065. Click="BtnYellow_Click"
  1066. Cursor="Hand"
  1067. Style="{StaticResource NoMouseOverButtonStyle}">
  1068. <Image
  1069. x:Name="imgYellow"
  1070. Width="12"
  1071. Source=".\Images\microLessonSystem_999.png"
  1072. Visibility="Collapsed" />
  1073. </Button>
  1074. </Border>
  1075. <Border
  1076. Width="20"
  1077. Height="20"
  1078. Margin="5,2,0,0"
  1079. Background="#666666">
  1080. <Button
  1081. x:Name="btnBlue"
  1082. Width="20"
  1083. Height="20"
  1084. Margin="1,1,1,1"
  1085. Background="#00B4FC"
  1086. Click="BtnBlue_Click"
  1087. Cursor="Hand"
  1088. Style="{StaticResource NoMouseOverButtonStyle}">
  1089. <Image
  1090. x:Name="imgBlue"
  1091. Width="12"
  1092. Source=".\Images\microLessonSystem_999.png"
  1093. Visibility="Collapsed" />
  1094. </Button>
  1095. </Border>
  1096. <TextBlock
  1097. Margin="5,0,0,0"
  1098. Padding="0,0,0,0"
  1099. VerticalAlignment="Center"
  1100. FontSize="12"
  1101. Text="粗细: " />
  1102. <RadioButton
  1103. x:Name="rbnFine"
  1104. Margin="0"
  1105. VerticalAlignment="Center"
  1106. Click="RbnFine_Click"
  1107. Content=" 细"
  1108. Cursor="Hand"
  1109. FontSize="12"
  1110. IsChecked="True"
  1111. Style="{StaticResource radBase}" />
  1112. <RadioButton
  1113. x:Name="rbnIn"
  1114. Margin="5,0,0,0"
  1115. VerticalAlignment="Center"
  1116. Click="RbnIn_Click"
  1117. Content=" 中"
  1118. Cursor="Hand"
  1119. FontSize="12"
  1120. Style="{StaticResource radBase}" />
  1121. <RadioButton
  1122. x:Name="rbnCrude"
  1123. Margin="5,0,0,0"
  1124. VerticalAlignment="Center"
  1125. Click="RbnCrude_Click"
  1126. Content=" 粗"
  1127. Cursor="Hand"
  1128. FontSize="12"
  1129. Style="{StaticResource radBase}" />
  1130. </StackPanel>
  1131. <StackPanel
  1132. Margin="5"
  1133. Grid.Column="2"
  1134. HorizontalAlignment="Right"
  1135. VerticalAlignment="Center"
  1136. Orientation="Horizontal">
  1137. <TextBlock
  1138. Padding="5,0,0,0"
  1139. VerticalAlignment="Center"
  1140. FontSize="12"
  1141. Text="摄像头: " />
  1142. <RadioButton
  1143. x:Name="rbnOpen"
  1144. Margin="0,0,0,0"
  1145. VerticalAlignment="Center"
  1146. Click="RbnOpen_Click"
  1147. Content=" 开"
  1148. Cursor="Hand"
  1149. FontSize="12"
  1150. Style="{StaticResource radBase}" />
  1151. <RadioButton
  1152. x:Name="rbnTurnOff"
  1153. Margin="5,0,10,0"
  1154. VerticalAlignment="Center"
  1155. Click="RbnTurnOff_Click"
  1156. Content=" 关"
  1157. Cursor="Hand"
  1158. FontSize="12"
  1159. IsChecked="True"
  1160. Style="{StaticResource radBase}" />
  1161. </StackPanel>
  1162. </Grid>
  1163. </Grid>
  1164. <!-- 设置 955 -->
  1165. <ScrollViewer
  1166. x:Name="gridSetUp"
  1167. VerticalScrollBarVisibility="Auto"
  1168. Visibility="Collapsed">
  1169. <Grid Height="650">
  1170. <Grid Background="#FFFFFF">
  1171. <Grid.RowDefinitions>
  1172. <RowDefinition Height="146" />
  1173. <RowDefinition Height="160*" />
  1174. <RowDefinition Height="100*" />
  1175. <RowDefinition Height="200*" />
  1176. <RowDefinition Height="90*" />
  1177. <RowDefinition Height="205*" />
  1178. </Grid.RowDefinitions>
  1179. <!-- 更换皮肤 h200 -->
  1180. <Grid Grid.Row="0" Margin="100,0">
  1181. <Grid.RowDefinitions>
  1182. <RowDefinition Height="20" />
  1183. <RowDefinition Height="20" />
  1184. <RowDefinition Height="140" />
  1185. <RowDefinition Height="20" />
  1186. </Grid.RowDefinitions>
  1187. <Grid Grid.Row="1" Grid.Column="0">
  1188. <Grid.ColumnDefinitions>
  1189. <ColumnDefinition Width="100" />
  1190. <ColumnDefinition Width="646*" />
  1191. </Grid.ColumnDefinitions>
  1192. <TextBlock
  1193. Grid.Column="0"
  1194. HorizontalAlignment="Right"
  1195. VerticalAlignment="Center"
  1196. FontSize="16"
  1197. Foreground="#333333"
  1198. Text="更换皮肤" />
  1199. </Grid>
  1200. <Grid Grid.Row="2">
  1201. <Grid.ColumnDefinitions>
  1202. <ColumnDefinition Width="100" />
  1203. <ColumnDefinition Width="207*" />
  1204. <ColumnDefinition Width="207*" />
  1205. <ColumnDefinition Width="207*" />
  1206. <ColumnDefinition Width="120*" />
  1207. </Grid.ColumnDefinitions>
  1208. <Grid.RowDefinitions>
  1209. <RowDefinition Height="80" />
  1210. <RowDefinition Height="36" />
  1211. </Grid.RowDefinitions>
  1212. <Grid
  1213. Grid.Row="0"
  1214. Grid.Column="1"
  1215. Margin="5,0">
  1216. <Button
  1217. x:Name="BtnSkinWhite"
  1218. HorizontalAlignment="Stretch"
  1219. VerticalAlignment="Center"
  1220. Click="BtnSkinWhite_Click"
  1221. Cursor="Hand"
  1222. Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
  1223. <Button.Template>
  1224. <ControlTemplate TargetType="{x:Type Button}">
  1225. <StackPanel>
  1226. <Image x:Name="ImgRecord" Source="/SkinImages/Skin/Skin_White.png" />
  1227. </StackPanel>
  1228. <ControlTemplate.Triggers>
  1229. <Trigger Property="IsMouseOver" Value="True">
  1230. <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/Skin/Skin_White_MI.png" />
  1231. </Trigger>
  1232. </ControlTemplate.Triggers>
  1233. </ControlTemplate>
  1234. </Button.Template>
  1235. </Button>
  1236. <Image
  1237. x:Name="SkinSelectWhite"
  1238. Margin="140,0,15,15"
  1239. HorizontalAlignment="Right"
  1240. VerticalAlignment="Bottom"
  1241. Source="/SkinImages/Skin/Skin_Select.png" />
  1242. </Grid>
  1243. <Grid
  1244. Grid.Row="0"
  1245. Grid.Column="2"
  1246. Margin="5,0">
  1247. <Button
  1248. x:Name="BtnSkinTechnologyBlue"
  1249. HorizontalAlignment="Stretch"
  1250. VerticalAlignment="Center"
  1251. Click="BtnSkinTechnologyBlue_Click"
  1252. Cursor="Hand"
  1253. Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
  1254. <Button.Template>
  1255. <ControlTemplate TargetType="{x:Type Button}">
  1256. <StackPanel>
  1257. <Image x:Name="ImgRecord" Source="/SkinImages/Skin/Skin_TechnologyBlue.png" />
  1258. </StackPanel>
  1259. <ControlTemplate.Triggers>
  1260. <Trigger Property="IsMouseOver" Value="True">
  1261. <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/Skin/Skin_TechnologyBlue_MI.png" />
  1262. </Trigger>
  1263. </ControlTemplate.Triggers>
  1264. </ControlTemplate>
  1265. </Button.Template>
  1266. </Button>
  1267. <Image
  1268. x:Name="SkinSelectTechnologyBlue"
  1269. Margin="140,0,15,15"
  1270. HorizontalAlignment="Right"
  1271. VerticalAlignment="Bottom"
  1272. Source="/SkinImages/Skin/Skin_Select.png"
  1273. Visibility="Hidden" />
  1274. </Grid>
  1275. <Grid Grid.Row="1" Grid.Column="1">
  1276. <TextBlock
  1277. HorizontalAlignment="Center"
  1278. VerticalAlignment="Center"
  1279. FontSize="16"
  1280. Foreground="#333333"
  1281. Text="经典白" />
  1282. </Grid>
  1283. <Grid Grid.Row="1" Grid.Column="2">
  1284. <TextBlock
  1285. HorizontalAlignment="Center"
  1286. VerticalAlignment="Center"
  1287. FontSize="16"
  1288. Foreground="#333333"
  1289. Text="科技蓝" />
  1290. </Grid>
  1291. </Grid>
  1292. <Label
  1293. Grid.Row="3"
  1294. Height="1"
  1295. VerticalAlignment="Bottom"
  1296. Background="#FFEFEFEF" />
  1297. </Grid>
  1298. <!-- 视频格式 摄像头位置 h200 -->
  1299. <Grid Grid.Row="1" Margin="100,0">
  1300. <Grid>
  1301. <Grid.ColumnDefinitions>
  1302. <ColumnDefinition Width="100" />
  1303. <ColumnDefinition Width="215*" />
  1304. <ColumnDefinition Width="215*" />
  1305. <ColumnDefinition Width="216*" />
  1306. </Grid.ColumnDefinitions>
  1307. <Grid.RowDefinitions>
  1308. <RowDefinition Height="20*" />
  1309. <RowDefinition Height="60*" />
  1310. <RowDefinition Height="60*" />
  1311. <RowDefinition Height="20*" />
  1312. </Grid.RowDefinitions>
  1313. <Grid Grid.Row="1" Grid.Column="0">
  1314. <TextBlock
  1315. Grid.Row="1"
  1316. Grid.Column="0"
  1317. HorizontalAlignment="Right"
  1318. VerticalAlignment="Center"
  1319. FontSize="16"
  1320. Foreground="#333333"
  1321. Text="视频格式" />
  1322. </Grid>
  1323. <Grid Grid.Row="1" Grid.Column="1">
  1324. <StackPanel
  1325. Margin="15,0,0,0"
  1326. HorizontalAlignment="Left"
  1327. VerticalAlignment="Center"
  1328. Orientation="Horizontal">
  1329. <RadioButton
  1330. x:Name="rbnMP4"
  1331. VerticalAlignment="Top"
  1332. Content=" MP4"
  1333. Cursor="Hand"
  1334. FontSize="16"
  1335. Foreground="#333333"
  1336. IsChecked="True"
  1337. Style="{StaticResource radBase}" />
  1338. <RadioButton
  1339. x:Name="rbnFLV"
  1340. Margin="15,0,0,0"
  1341. VerticalAlignment="Top"
  1342. Content=" FLV"
  1343. Cursor="Hand"
  1344. FontSize="16"
  1345. Foreground="#333333"
  1346. Style="{StaticResource radBase}"
  1347. Visibility="Collapsed" />
  1348. <RadioButton
  1349. x:Name="rbnAVI"
  1350. Margin="15,0,0,0"
  1351. Content=" AVI"
  1352. Cursor="Hand"
  1353. FontSize="16"
  1354. Foreground="#333333"
  1355. Style="{StaticResource radBase}"
  1356. Visibility="Collapsed" />
  1357. </StackPanel>
  1358. </Grid>
  1359. <Grid Grid.Row="1" Grid.Column="2">
  1360. <TextBlock
  1361. HorizontalAlignment="Right"
  1362. VerticalAlignment="Center"
  1363. FontSize="16"
  1364. Foreground="#333333"
  1365. Text="摄像头位置" />
  1366. </Grid>
  1367. <Grid Grid.Row="1" Grid.Column="3">
  1368. <!--<Grid.ColumnDefinitions>
  1369. <ColumnDefinition Width="15*" />
  1370. <ColumnDefinition Width="80*" />
  1371. <ColumnDefinition Width="80*" />
  1372. <ColumnDefinition Width="41*" />
  1373. </Grid.ColumnDefinitions>
  1374. <Grid.RowDefinitions>
  1375. <RowDefinition Height="60*" />
  1376. <RowDefinition Height="60*" />
  1377. </Grid.RowDefinitions>-->
  1378. <StackPanel
  1379. Margin="15,0,0,0"
  1380. HorizontalAlignment="Left"
  1381. VerticalAlignment="Center"
  1382. Orientation="Horizontal">
  1383. <RadioButton
  1384. x:Name="rbnRight"
  1385. Margin="0"
  1386. HorizontalAlignment="Left"
  1387. VerticalAlignment="Center"
  1388. Content=" 右上"
  1389. Cursor="Hand"
  1390. FontSize="16"
  1391. Foreground="#333333"
  1392. GroupName="RbtnCamera"
  1393. IsChecked="True"
  1394. Style="{StaticResource radBase}" />
  1395. <RadioButton
  1396. x:Name="rbnRightUnder"
  1397. Margin="15,0"
  1398. HorizontalAlignment="Left"
  1399. VerticalAlignment="Center"
  1400. Content=" 右下"
  1401. Cursor="Hand"
  1402. FontSize="16"
  1403. Foreground="#333333"
  1404. GroupName="RbtnCamera"
  1405. Style="{StaticResource radBase}" />
  1406. </StackPanel>
  1407. </Grid>
  1408. <Grid Grid.Row="2" Grid.Column="3">
  1409. <StackPanel
  1410. Margin="15,0,0,0"
  1411. HorizontalAlignment="Left"
  1412. VerticalAlignment="Center"
  1413. Orientation="Horizontal">
  1414. <RadioButton
  1415. x:Name="rbnLeft"
  1416. Margin="0"
  1417. HorizontalAlignment="Left"
  1418. VerticalAlignment="Center"
  1419. Content=" 左上"
  1420. Cursor="Hand"
  1421. FontSize="16"
  1422. Foreground="#333333"
  1423. GroupName="RbtnCamera"
  1424. Style="{StaticResource radBase}" />
  1425. <RadioButton
  1426. x:Name="rbnLeftUnder"
  1427. Margin="15,0"
  1428. HorizontalAlignment="Left"
  1429. VerticalAlignment="Center"
  1430. Content=" 左下"
  1431. Cursor="Hand"
  1432. FontSize="16"
  1433. Foreground="#333333"
  1434. GroupName="RbtnCamera"
  1435. Style="{StaticResource radBase}" />
  1436. </StackPanel>
  1437. </Grid>
  1438. <Grid Grid.Row="2" Grid.Column="0">
  1439. <TextBlock
  1440. HorizontalAlignment="Right"
  1441. VerticalAlignment="Center"
  1442. FontSize="16"
  1443. Foreground="#333333"
  1444. Text="录屏工具栏" />
  1445. </Grid>
  1446. <Grid Grid.Row="2" Grid.Column="1">
  1447. <StackPanel
  1448. Margin="15,0,0,0"
  1449. HorizontalAlignment="Left"
  1450. VerticalAlignment="Center"
  1451. Orientation="Horizontal">
  1452. <RadioButton
  1453. x:Name="rbnHide"
  1454. VerticalAlignment="Top"
  1455. Content=" 隐藏"
  1456. Cursor="Hand"
  1457. FontSize="16"
  1458. Foreground="#333333"
  1459. IsChecked="True"
  1460. Style="{StaticResource radBase}" />
  1461. <RadioButton
  1462. x:Name="rbnvisi"
  1463. Margin="15,0,0,0"
  1464. VerticalAlignment="Top"
  1465. Content=" 显示"
  1466. Cursor="Hand"
  1467. FontSize="16"
  1468. Foreground="#333333"
  1469. Style="{StaticResource radBase}" />
  1470. </StackPanel>
  1471. </Grid>
  1472. <Grid Grid.Row="2" Grid.Column="2" />
  1473. </Grid>
  1474. <Label
  1475. Height="1"
  1476. VerticalAlignment="Bottom"
  1477. Background="#FFEFEFEF" />
  1478. </Grid>
  1479. <!-- 地址修改 h305 -->
  1480. <Grid Grid.Row="2" Margin="100,0">
  1481. <Grid>
  1482. <Grid.ColumnDefinitions>
  1483. <ColumnDefinition Width="100" />
  1484. <ColumnDefinition Width="430*" />
  1485. <ColumnDefinition Width="215*" />
  1486. </Grid.ColumnDefinitions>
  1487. <Grid.RowDefinitions>
  1488. <RowDefinition Height="20*" />
  1489. <RowDefinition Height="60*" />
  1490. <RowDefinition Height="20*" />
  1491. </Grid.RowDefinitions>
  1492. <!-- 地址 废弃2021年7月9日赵耀 -->
  1493. <Grid Visibility="Collapsed" />
  1494. <Grid Grid.Row="1" Grid.Column="0">
  1495. <TextBlock
  1496. Padding="0,0,0,0"
  1497. HorizontalAlignment="Right"
  1498. VerticalAlignment="Center"
  1499. FontSize="16"
  1500. Foreground="#333333"
  1501. Text="文件路径" />
  1502. </Grid>
  1503. <Grid Grid.Row="1" Grid.Column="1">
  1504. <Grid>
  1505. <Border
  1506. Height="30"
  1507. Margin="10,0,0,0"
  1508. BorderBrush="#FFE3E3E3"
  1509. BorderThickness="1"
  1510. CornerRadius="1">
  1511. <Label
  1512. x:Name="txbStoragePath"
  1513. Margin="10,0"
  1514. Background="#FFFFFF"
  1515. BorderBrush="{x:Null}"
  1516. BorderThickness="0"
  1517. Content="D:\"
  1518. FontSize="14"
  1519. Foreground="#333333" />
  1520. </Border>
  1521. </Grid>
  1522. </Grid>
  1523. <Grid Grid.Row="1" Grid.Column="2">
  1524. <Grid.ColumnDefinitions>
  1525. <ColumnDefinition Width="76" />
  1526. <ColumnDefinition Width="76" />
  1527. </Grid.ColumnDefinitions>
  1528. <!-- 浏览按钮 -->
  1529. <Button
  1530. x:Name="btnBrowse"
  1531. Grid.Column="0"
  1532. Width="66"
  1533. Height="30"
  1534. HorizontalAlignment="Stretch"
  1535. VerticalAlignment="Stretch"
  1536. Background="#3f6fff"
  1537. Click="BtnBrowse_Click"
  1538. Content="浏览"
  1539. Cursor="Hand"
  1540. FontSize="14"
  1541. Foreground="#FFFFFF" />
  1542. <!-- 打开按钮 -->
  1543. <Button
  1544. x:Name="btnOpen"
  1545. Grid.Column="1"
  1546. Width="66"
  1547. Height="30"
  1548. HorizontalAlignment="Stretch"
  1549. VerticalAlignment="Stretch"
  1550. Background="#3f6fff"
  1551. Click="btnOpen_Click"
  1552. Content="打开"
  1553. Cursor="Hand"
  1554. FontSize="14"
  1555. Foreground="#FFFFFF" />
  1556. </Grid>
  1557. </Grid>
  1558. <Label
  1559. Height="1"
  1560. VerticalAlignment="Bottom"
  1561. Background="#FFEFEFEF" />
  1562. </Grid>
  1563. <!-- 版权 快捷键 版本号 h200 -->
  1564. <Grid Grid.Row="3" Margin="100,0">
  1565. <Grid.ColumnDefinitions>
  1566. <ColumnDefinition Width="100" />
  1567. <ColumnDefinition Width="215*" />
  1568. <ColumnDefinition Width="215*" />
  1569. <ColumnDefinition Width="215*" />
  1570. </Grid.ColumnDefinitions>
  1571. <Grid.RowDefinitions>
  1572. <RowDefinition Height="20*" />
  1573. <RowDefinition Height="60*" />
  1574. <RowDefinition Height="60*" />
  1575. <RowDefinition Height="60*" />
  1576. </Grid.RowDefinitions>
  1577. <Grid Grid.Row="1" Grid.Column="0">
  1578. <TextBlock
  1579. Padding="0,0,0,0"
  1580. HorizontalAlignment="Right"
  1581. VerticalAlignment="Center"
  1582. FontSize="16"
  1583. Foreground="#FF666666"
  1584. Text="录屏快捷键" />
  1585. </Grid>
  1586. <Grid
  1587. Grid.Row="1"
  1588. Grid.Column="1"
  1589. Grid.ColumnSpan="3">
  1590. <TextBlock
  1591. Margin="20,0,0,0"
  1592. VerticalAlignment="Center"
  1593. FontSize="16"
  1594. Foreground="#FF666666"
  1595. Text="开始/暂停:Ctrl+F5 停止:Ctrl+S 退出讲评:鼠标右键" />
  1596. </Grid>
  1597. <Grid Grid.Row="2" Grid.Column="0">
  1598. <TextBlock
  1599. HorizontalAlignment="Right"
  1600. VerticalAlignment="Center"
  1601. FontSize="16"
  1602. Foreground="#FF666666"
  1603. Text="版权所有" />
  1604. </Grid>
  1605. <Grid
  1606. Grid.Row="2"
  1607. Grid.Column="1"
  1608. Grid.ColumnSpan="3">
  1609. <TextBlock
  1610. Margin="20,0,0,0"
  1611. VerticalAlignment="Center"
  1612. FontSize="16"
  1613. Foreground="#FF666666"
  1614. Text="河南星火燎原软件科技有限公司" />
  1615. </Grid>
  1616. <Grid Grid.Row="3" Grid.Column="0">
  1617. <TextBlock
  1618. x:Name="txbVersion"
  1619. Margin="0,0,0,0"
  1620. HorizontalAlignment="Right"
  1621. VerticalAlignment="Center"
  1622. FontSize="16"
  1623. Foreground="#FF666666"
  1624. Text="正式版" />
  1625. </Grid>
  1626. <Grid Grid.Row="3" Grid.Column="1">
  1627. <TextBlock
  1628. x:Name="txbv"
  1629. Margin="20,0,0,0"
  1630. VerticalAlignment="Center"
  1631. FontSize="16"
  1632. Foreground="#FF666666"
  1633. Text="V0.0.0" />
  1634. </Grid>
  1635. </Grid>
  1636. <!-- 按钮 h50 -->
  1637. <Grid Grid.Row="4" Margin="100,0">
  1638. <Grid.ColumnDefinitions>
  1639. <ColumnDefinition Width="215*" />
  1640. <ColumnDefinition Width="530*" />
  1641. <ColumnDefinition Width="180*" />
  1642. </Grid.ColumnDefinitions>
  1643. <Grid.RowDefinitions>
  1644. <RowDefinition Height="50*" />
  1645. </Grid.RowDefinitions>
  1646. <Grid Grid.Column="2">
  1647. <!-- 保存 -->
  1648. <Button
  1649. x:Name="btnSave"
  1650. Width="76"
  1651. Height="30"
  1652. HorizontalAlignment="Stretch"
  1653. VerticalAlignment="Center"
  1654. Background="#3f6fff"
  1655. Click="BtnSave_Click"
  1656. Content="保存"
  1657. Cursor="Hand"
  1658. FontSize="14"
  1659. Foreground="#FFFFFF" />
  1660. </Grid>
  1661. <Grid
  1662. Grid.Row="0"
  1663. Grid.Column="0"
  1664. Visibility="Collapsed">
  1665. <TextBlock
  1666. Margin="0,30,0,0"
  1667. HorizontalAlignment="Right"
  1668. FontSize="16"
  1669. Foreground="#333333"
  1670. Text="设备"
  1671. Visibility="Hidden" />
  1672. <TextBlock
  1673. x:Name="txbNotConnecteds"
  1674. Margin="30,30,0,0"
  1675. FontSize="14"
  1676. Foreground="#333333"
  1677. Text="未连接"
  1678. Visibility="Hidden" />
  1679. </Grid>
  1680. </Grid>
  1681. </Grid>
  1682. </Grid>
  1683. </ScrollViewer>
  1684. <!-- 我的 -->
  1685. <Grid
  1686. x:Name="GridMyVideo"
  1687. Margin="0"
  1688. Background="White"
  1689. Visibility="Collapsed">
  1690. <Grid.RowDefinitions>
  1691. <RowDefinition Height="905*" />
  1692. <RowDefinition Height="50*" />
  1693. </Grid.RowDefinitions>
  1694. <Label
  1695. x:Name="lblVideoMess"
  1696. Grid.Row="0"
  1697. Margin="0,0,0,100"
  1698. HorizontalAlignment="Center"
  1699. VerticalAlignment="Center"
  1700. Content="暂无微课录制信息,请录制并等待保存完成后重试!"
  1701. FontSize="20"
  1702. Visibility="Hidden" />
  1703. <Button
  1704. x:Name="BtnVideoUpPage"
  1705. Grid.Row="1"
  1706. Width="60"
  1707. Margin="0,0,150,12"
  1708. HorizontalAlignment="Center"
  1709. VerticalAlignment="Bottom"
  1710. Background="{x:Null}"
  1711. BorderBrush="{x:Null}"
  1712. Click="BtnVideoUpPage_Click"
  1713. Content="上一页"
  1714. Cursor="Hand"
  1715. FontSize="16"
  1716. Foreground="#FF333333" />
  1717. <Label
  1718. x:Name="lblVideoPageNum"
  1719. Grid.Row="1"
  1720. Margin="0,0,0,10"
  1721. HorizontalAlignment="Center"
  1722. VerticalAlignment="Bottom"
  1723. Content="100/100"
  1724. FontSize="14"
  1725. Foreground="#FF333333" />
  1726. <Button
  1727. x:Name="BtnVideoDownPage"
  1728. Grid.Row="1"
  1729. Width="60"
  1730. Margin="150,0,0,12"
  1731. HorizontalAlignment="Center"
  1732. VerticalAlignment="Bottom"
  1733. Background="{x:Null}"
  1734. BorderBrush="{x:Null}"
  1735. Click="BtnVideoDownPage_Click"
  1736. Content="下一页"
  1737. Cursor="Hand"
  1738. FontSize="16"
  1739. Foreground="#FF333333" />
  1740. </Grid>
  1741. <!-- 打印 -->
  1742. <Grid
  1743. x:Name="GridPrintContent"
  1744. Background="White"
  1745. Visibility="Collapsed">
  1746. <Grid.RowDefinitions>
  1747. <RowDefinition Height="905*" />
  1748. <RowDefinition Height="50*" />
  1749. </Grid.RowDefinitions>
  1750. <Grid Grid.Row="0">
  1751. <Border BorderBrush="#FFDCDCDC" BorderThickness="1">
  1752. <ScrollViewer VerticalScrollBarVisibility="Visible">
  1753. <Image x:Name="imgPri" />
  1754. </ScrollViewer>
  1755. </Border>
  1756. </Grid>
  1757. </Grid>
  1758. </Grid>
  1759. </Grid>
  1760. </Grid>
  1761. <!-- 打印相关 -->
  1762. <Border
  1763. x:Name="GridPrintingTitle"
  1764. Grid.Column="1"
  1765. Width="446"
  1766. Height="188"
  1767. BorderBrush="#eeeeee"
  1768. BorderThickness="1"
  1769. Visibility="Collapsed">
  1770. <Grid Background="#ffffff">
  1771. <Grid.RowDefinitions>
  1772. <RowDefinition Height="42" />
  1773. <RowDefinition Height="*" />
  1774. <RowDefinition Height="64" />
  1775. </Grid.RowDefinitions>
  1776. <Grid Grid.Row="0" Background="#3F6FFF">
  1777. <TextBlock
  1778. Margin="10,0,0,0"
  1779. VerticalAlignment="Center"
  1780. FontSize="16"
  1781. Foreground="White"
  1782. Text="打印机" />
  1783. <Button
  1784. Grid.Row="0"
  1785. Width="46"
  1786. HorizontalAlignment="Right"
  1787. VerticalAlignment="Stretch"
  1788. Click="BtnPrintCloseClick"
  1789. Content="×"
  1790. Cursor="Hand"
  1791. FontSize="30"
  1792. Foreground="White" />
  1793. </Grid>
  1794. <Grid Grid.Row="1" Height="46">
  1795. <Grid.ColumnDefinitions>
  1796. <ColumnDefinition Width="Auto" />
  1797. <ColumnDefinition Width="*" />
  1798. </Grid.ColumnDefinitions>
  1799. <TextBlock
  1800. Grid.Column="0"
  1801. Margin="10,0,0,0"
  1802. HorizontalAlignment="Left"
  1803. VerticalAlignment="Center"
  1804. FontSize="16"
  1805. Style="{DynamicResource TxbMesColor}"
  1806. Text="打印机" />
  1807. <ComboBox
  1808. x:Name="cmbClass"
  1809. Grid.Column="1"
  1810. Height="36"
  1811. Margin="10,0,10,0"
  1812. HorizontalAlignment="Stretch"
  1813. HorizontalContentAlignment="Center"
  1814. VerticalContentAlignment="Center"
  1815. Background="White"
  1816. BorderThickness="0"
  1817. Cursor="Hand"
  1818. DisplayMemberPath="Value"
  1819. FontSize="16"
  1820. SelectedValuePath="Key"
  1821. Style="{StaticResource stlComboBox}"
  1822. Text="请选择" />
  1823. </Grid>
  1824. <Grid Grid.Row="2">
  1825. <Grid.ColumnDefinitions>
  1826. <ColumnDefinition Width="30" />
  1827. <ColumnDefinition Width="Auto" />
  1828. <ColumnDefinition Width="*" />
  1829. <ColumnDefinition Width="86" />
  1830. <ColumnDefinition Width="86" />
  1831. </Grid.ColumnDefinitions>
  1832. <Image
  1833. Grid.Column="0"
  1834. Width="20"
  1835. Height="20"
  1836. Margin="10,0,0,0"
  1837. HorizontalAlignment="Center"
  1838. VerticalAlignment="Center"
  1839. Source="./Images/shuoming.png" />
  1840. <Button
  1841. x:Name="btnPrintExplain"
  1842. Grid.Column="1"
  1843. Height="36"
  1844. Margin="6,0,0,0"
  1845. HorizontalAlignment="Stretch"
  1846. VerticalAlignment="Stretch"
  1847. Click="btnPrintExplain_Click"
  1848. Content="打印说明"
  1849. Cursor="Hand"
  1850. FontSize="14"
  1851. Foreground="#3F6FFF"
  1852. IsDefault="True" />
  1853. <Button
  1854. Grid.Column="3"
  1855. Width="76"
  1856. Height="30"
  1857. Margin="0,0,10,0"
  1858. HorizontalAlignment="Stretch"
  1859. VerticalAlignment="Stretch"
  1860. Background="#3F6FFF"
  1861. Click="Print_No_Code_Click"
  1862. Content="普通打印"
  1863. Cursor="Hand"
  1864. FontSize="12"
  1865. Foreground="White"
  1866. IsDefault="True" />
  1867. <Button
  1868. x:Name="btnPrint_Print"
  1869. Grid.Column="4"
  1870. Width="76"
  1871. Height="30"
  1872. Margin="0,0,10,0"
  1873. HorizontalAlignment="Stretch"
  1874. VerticalAlignment="Stretch"
  1875. Background="#3F6FFF"
  1876. Click="BtnPrint_Print_Click"
  1877. Content="铺码打印"
  1878. Cursor="Hand"
  1879. FontSize="12"
  1880. Foreground="White"
  1881. IsDefault="True" />
  1882. </Grid>
  1883. </Grid>
  1884. </Border>
  1885. <Grid
  1886. x:Name="GridPrintMask"
  1887. Background="#4C000000"
  1888. Visibility="Collapsed">
  1889. <Grid.ColumnDefinitions>
  1890. <ColumnDefinition Width="15*" />
  1891. <ColumnDefinition Width="70*" />
  1892. <ColumnDefinition Width="15*" />
  1893. </Grid.ColumnDefinitions>
  1894. <Grid.RowDefinitions>
  1895. <RowDefinition Height="35*" />
  1896. <RowDefinition Height="100" />
  1897. <RowDefinition Height="45*" />
  1898. </Grid.RowDefinitions>
  1899. <Grid Grid.Row="1" Grid.Column="1">
  1900. <Label
  1901. x:Name="LabPrintMessage"
  1902. Height="35"
  1903. Margin="0,10,0,0"
  1904. HorizontalAlignment="Center"
  1905. VerticalAlignment="Top"
  1906. Content="打印中..."
  1907. FontSize="22"
  1908. Foreground="#FFF9F7F7" />
  1909. <ProgressBar
  1910. x:Name="pgbProcess"
  1911. Grid.Row="0"
  1912. Height="20"
  1913. Margin="50,20,50,0"
  1914. BorderBrush="#4597FF"
  1915. Foreground="#4597FF"
  1916. Visibility="Visible" />
  1917. <Label
  1918. x:Name="lbProcess"
  1919. Grid.Row="0"
  1920. Width="60"
  1921. Height="30"
  1922. Margin="0,20,0,0"
  1923. HorizontalAlignment="Center"
  1924. Content=""
  1925. FontSize="16"
  1926. Foreground="White"
  1927. Visibility="Visible" />
  1928. </Grid>
  1929. </Grid>
  1930. </Grid>
  1931. </Window>