星火微课系统客户端
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

XHMicroLessonSystemWindow.xaml 53KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734
  1. <Window x:Class="XHWK.WKTool.XHMicroLessonSystemWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:input="clr-namespace:System.Windows.Input;assembly=PresentationCore"
  7. xmlns:wfi ="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
  8. xmlns:aforge ="clr-namespace:AForge.Controls;assembly=AForge.Controls"
  9. xmlns:gifLib="http://wpfanimatedgif.codeplex.com"
  10. xmlns:local="clr-namespace:XHWK.WKTool"
  11. mc:Ignorable="d"
  12. Title="星火微课系统" Height="1036" Width="1290"
  13. WindowStyle="None" WindowStartupLocation="CenterScreen" AllowsTransparency="True" Background="Transparent" ShowInTaskbar="True" ResizeMode="CanMinimize" BorderThickness="7" MouseLeftButtonDown="Window_MouseLeftButtonDown_1" Loaded="Window_Loaded">
  14. <Window.Effect>
  15. <DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
  16. </Window.Effect>
  17. <!--<Grid>
  18. <Border CornerRadius="0,0,0,0"
  19. Background="White"
  20. BorderBrush="Gray"
  21. BorderThickness="1"
  22. Margin="10,10,10,10">
  23. <Border.Effect>
  24. <DropShadowEffect Color="Gray" BlurRadius="10" ShadowDepth="0" Opacity="0.8" />
  25. </Border.Effect>
  26. </Border>
  27. </Grid>-->
  28. <Window.Resources>
  29. <Style x:Key="radBase" TargetType="RadioButton">
  30. <Setter Property="IsChecked" Value="False"/>
  31. <Setter Property="Background" Value="Transparent"/>
  32. <Setter Property="Foreground" Value="#555"/>
  33. <Setter Property="Template">
  34. <Setter.Value>
  35. <ControlTemplate TargetType="RadioButton">
  36. <DockPanel Background="{TemplateBinding Background}" ToolTip="{TemplateBinding Content}" LastChildFill="False" Width="{TemplateBinding Width}">
  37. <Image Margin="2 0 0 0" DockPanel.Dock="Left" x:Name="_img" Stretch="None" Source="./Images/rdo_no.png"/>
  38. <TextBlock DockPanel.Dock="Left" Margin="3 0 0 0" VerticalAlignment="Center" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Content}" />
  39. </DockPanel>
  40. <ControlTemplate.Triggers>
  41. <Trigger Property="IsChecked" Value="true">
  42. <Setter TargetName="_img" Property="Source" Value="./Images/rdo_yes.png"/>
  43. </Trigger>
  44. </ControlTemplate.Triggers>
  45. </ControlTemplate>
  46. </Setter.Value>
  47. </Setter>
  48. </Style>
  49. <Style x:Key="NoMouseOverButtonStyle" TargetType="{x:Type Button}">
  50. <Setter Property="BorderThickness" Value="1"/>
  51. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
  52. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  53. <Setter Property="VerticalContentAlignment" Value="Center"/>
  54. <Setter Property="Padding" Value="1"/>
  55. <Setter Property="Template">
  56. <Setter.Value>
  57. <ControlTemplate TargetType="{x:Type Button}">
  58. <Border x:Name="Chrome" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
  59. <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  60. </Border>
  61. </ControlTemplate>
  62. </Setter.Value>
  63. </Setter>
  64. </Style>
  65. <!-- ListBox容器样式 -->
  66. <Style x:Key="ListBoxItemContainerStyle" TargetType="{x:Type ListBoxItem}">
  67. <Setter Property="HorizontalContentAlignment" Value="Stretch" />
  68. <Setter Property="HorizontalAlignment" Value="Stretch" />
  69. <Setter Property="Template">
  70. <Setter.Value>
  71. <ControlTemplate TargetType="{x:Type ListBoxItem}">
  72. <Border
  73. x:Name="itemBox"
  74. Background="Transparent"
  75. BorderBrush="Transparent"
  76. BorderThickness="0">
  77. <ContentPresenter />
  78. </Border>
  79. <ControlTemplate.Triggers />
  80. </ControlTemplate>
  81. </Setter.Value>
  82. </Setter>
  83. </Style>
  84. <DataTemplate x:Key="TongjiItem">
  85. <UniformGrid
  86. Height="50"
  87. Margin="0,0,0,0"
  88. Background="{Binding Colour}"
  89. Columns="5"
  90. Rows="1">
  91. <!--题号-->
  92. <TextBlock
  93. HorizontalAlignment="Center"
  94. VerticalAlignment="Center"
  95. FontSize="16"
  96. Text="{Binding SerialNumber}" />
  97. <Grid>
  98. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"
  99. VerticalAlignment="Center">
  100. <TextBox IsEnabled="{Binding IsEnabled,Mode=TwoWay}"
  101. HorizontalAlignment="Center"
  102. VerticalAlignment="Center"
  103. FontSize="16" Height="30" Padding="0,5,0,0"
  104. Text="{Binding VideoName,Mode=TwoWay}" Width="150"/>
  105. <Button x:Name="btnModify" Background="Transparent"
  106. Cursor="Hand"
  107. BorderThickness="0" Click="BtnModify_Click">
  108. <Grid>
  109. <Image Source="./Images/fileDirectory3.png" Margin="6,6,6,6" Height="20"/>
  110. <Image Source="./Images/fileDirectory4.png" Margin="6,6,6,6" Height="20"/>
  111. </Grid>
  112. </Button>
  113. </StackPanel>
  114. </Grid>
  115. <!--分值-->
  116. <!--
  117. <TextBlock
  118. HorizontalAlignment="Center"
  119. VerticalAlignment="Center"
  120. FontSize="15"
  121. Text="{Binding VideoDuration}" />-->
  122. <!--平均时长-->
  123. <TextBlock
  124. HorizontalAlignment="Center"
  125. VerticalAlignment="Center"
  126. FontSize="16"
  127. Text="{Binding VideoSize}" />
  128. <!--最短时长-->
  129. <TextBlock
  130. HorizontalAlignment="Center"
  131. VerticalAlignment="Center"
  132. FontSize="16"
  133. Text="{Binding VideoTime}" />
  134. <Grid>
  135. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"
  136. VerticalAlignment="Center">
  137. <Button x:Name="btnPlay" Background="Transparent"
  138. Cursor="Hand"
  139. BorderThickness="0" Click="BtnPlay_Click">
  140. <Grid>
  141. <Image Source="./Images/fileDirectory1.png" Margin="10" Height="20"/>
  142. <Image Source="./Images/fileDirectory2.png" Margin="10" Height="20"/>
  143. </Grid>
  144. </Button>
  145. <Button x:Name="btnUpload" Background="Transparent"
  146. Cursor="Hand"
  147. BorderThickness="0" Click="BtnUploads_Click">
  148. <Grid>
  149. <Image Source="./Images/fileDirectory7.png" Margin="6,6,6,6" Height="20" Visibility="{Binding Visi}"/>
  150. <Image Source="./Images/fileDirectory8.png" Margin="6,6,6,6" Height="20" Visibility="{Binding Coll}"/>
  151. </Grid>
  152. </Button>
  153. <Button x:Name="btnDelete" Background="Transparent"
  154. Cursor="Hand"
  155. BorderThickness="0" Click="BtnDelete_Click">
  156. <Grid>
  157. <Image Source="./Images/fileDirectory5.png" Margin="6,6,6,6" Height="20"/>
  158. <Image Source="./Images/fileDirectory6.png" Margin="6,6,6,6" Height="20"/>
  159. </Grid>
  160. </Button>
  161. </StackPanel>
  162. </Grid>
  163. </UniformGrid>
  164. </DataTemplate>
  165. </Window.Resources>
  166. <Window.BorderBrush>
  167. <RadialGradientBrush>
  168. <GradientStop Offset="0.997" Color="#001B1919"/>
  169. <GradientStop Color="Black"/>
  170. </RadialGradientBrush>
  171. </Window.BorderBrush>
  172. <Viewbox>
  173. <Grid x:Name="GridContent" Height="1030" Width="1276">
  174. <!--分3行-->
  175. <Grid.RowDefinitions>
  176. <RowDefinition Height="auto"/>
  177. <RowDefinition Height="*"/>
  178. <RowDefinition Height="auto"/>
  179. </Grid.RowDefinitions>
  180. <Grid Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown" Margin="0,0,0,0" MinHeight="100px" MouseDown="Grid_MouseDown">
  181. <Grid.RowDefinitions>
  182. <RowDefinition Height="auto"/>
  183. <RowDefinition Height="auto"/>
  184. </Grid.RowDefinitions>
  185. <!--第一行-->
  186. <StackPanel Grid.Row="0" Orientation="Horizontal" Margin="10,2,10,0">
  187. <Image Source="./Images/microLessonSystem_0.png"/>
  188. <TextBlock Text="星火微课系统" FontSize="14" Padding="5,2,0,0" Foreground="#FFFFFF"/>
  189. </StackPanel>
  190. <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Right" Margin="10,2,20,0">
  191. <Button Cursor="Hand" x:Name="btnLoginType" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,10,0" Click="BtnLoginType_Click">
  192. <StackPanel Orientation="Horizontal">
  193. <Image Source="./Images/microLessonSystem_9.png"/>
  194. <TextBlock x:Name="txbLoginType" Text="未登录" FontSize="14" Padding="5,0,0,0" Foreground="#FFFFFF"
  195. />
  196. </StackPanel>
  197. </Button>
  198. <Button Cursor="Hand" x:Name="btnShrink" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnShrink_Click" Margin="8,0,8,0">
  199. <Image Source="./Images/microLessonSystem_19.png"/>
  200. </Button>
  201. <!--<Button Cursor="Hand" x:Name="btnEnlarge" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="8,0,8,0">
  202. <Image Source="./Images/microLessonSystem_8.png"/>
  203. </Button>-->
  204. <Button Cursor="Hand" x:Name="btnDown" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click" >
  205. <Image Source="./Images/microLessonSystem_10.png"/>
  206. </Button>
  207. </StackPanel>
  208. <!--第二行-->
  209. <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,0,0,0" HorizontalAlignment="Left">
  210. <Button Cursor="Hand" x:Name="btnScreenRecording" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnScreenRecording_Click" Margin="30,0,0,0">
  211. <StackPanel Orientation="Vertical">
  212. <Image x:Name="ImgScreenRecording" Source="./Images/microLessonSystem_2.png"/>
  213. <Image x:Name="ImgScreenRecordingTwo" Source="./Images/microLessonSystem_3.png" Visibility="Collapsed"/>
  214. <TextBlock x:Name="TxbRecordScreenWord" Text="录屏" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  215. </StackPanel>
  216. </Button>
  217. <Button Cursor="Hand" x:Name="btnScreenshot" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="30,0,0,0" Click="BtnScreenshot_Click">
  218. <StackPanel Orientation="Vertical">
  219. <Image x:Name="ImgScreenshot" Source="./Images/microLessonSystem_12.png"/>
  220. <Image x:Name="ImgScreenshotTwo" Source="./Images/microLessonSystem_11.png" Visibility="Collapsed"/>
  221. <TextBlock Text="截图" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  222. </StackPanel>
  223. </Button>
  224. <Button Cursor="Hand" x:Name="btnImport" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnImport_Click" Margin="30,0,0,0">
  225. <StackPanel Orientation="Vertical">
  226. <Image x:Name="ImgImport" Source="./Images/microLessonSystem_6.png"/>
  227. <Image x:Name="ImgImportTwo" Source="./Images/microLessonSystem_7.png" Visibility="Collapsed"/>
  228. <TextBlock Text="导入" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  229. </StackPanel>
  230. </Button>
  231. <Button Cursor="Hand" x:Name="BtnRecord" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="100,0,0,0" Click="BtnRecord_Click">
  232. <StackPanel Orientation="Vertical">
  233. <Image x:Name="ImgRecord" Source="./Images/microLessonSystem_14.png"/>
  234. <Image x:Name="ImgRecordTwo" Source="./Images/microLessonSystem_13.png" Visibility="Collapsed"/>
  235. <TextBlock x:Name="TxbRecordingWord" Text="录制" Padding="0,6,0,0" FontSize="14" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  236. </StackPanel>
  237. </Button>
  238. <Button Cursor="Hand" x:Name="btnStop" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnStop_Click" Margin="30,0,0,0">
  239. <StackPanel Orientation="Vertical">
  240. <Image x:Name="ImgStop" Source="./Images/microLessonSystem_21.png"/>
  241. <Image x:Name="ImgStopTwo" Source="./Images/microLessonSystem_20.png" Visibility="Collapsed"/>
  242. <TextBlock Text="停止" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  243. </StackPanel>
  244. </Button>
  245. <TextBlock x:Name="txbTime" Text="" FontSize="20" Foreground="#FFFFFF" Margin="20,20,0,0"/>
  246. </StackPanel>
  247. <StackPanel Grid.Row="1" HorizontalAlignment="Center">
  248. <TextBlock x:Name="txbType" Text="" FontSize="20" Foreground="#FFFFFF" Margin="60,25,0,0"/>
  249. </StackPanel>
  250. <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,10,5">
  251. <Button Cursor="Hand" x:Name="btnAdd" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnAdd_Click" Margin="0,0,30,0">
  252. <StackPanel Orientation="Vertical">
  253. <Image x:Name="ImgAdd" Source="./Images/microLessonSystem_25.png" Visibility="Visible"/>
  254. <Image x:Name="ImgAddTwo" Source="./Images/microLessonSystem_24.png" Visibility="Collapsed"/>
  255. <TextBlock Text="加页" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  256. </StackPanel>
  257. </Button>
  258. <Button Cursor="Hand" x:Name="btnPrint" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnPrint_Click">
  259. <StackPanel Orientation="Vertical">
  260. <Image x:Name="ImgPrint" Source="./Images/microLessonSystem_4.png" Visibility="Collapsed"/>
  261. <Image x:Name="ImgPrintTwo" Source="./Images/microLessonSystem_5.png" Visibility="Visible"/>
  262. <TextBlock Text="打印" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  263. </StackPanel>
  264. </Button>
  265. <!--<Button Cursor="Hand" x:Name="btnUpload" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnUpload_Click" Margin="0,0,30,0">
  266. <StackPanel Orientation="Vertical">
  267. <Image x:Name="ImgUpload" Source="./Images/microLessonSystem_15.png" Visibility="Collapsed"/>
  268. <Image x:Name="ImgUploadTwo" Source="./Images/microLessonSystem_16.png" Visibility="Visible"/>
  269. <TextBlock Text="上传" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  270. </StackPanel>
  271. </Button>-->
  272. <Button Cursor="Hand" x:Name="btnUpload" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnUpload_Click">
  273. <StackPanel Orientation="Vertical">
  274. <Image x:Name="ImgUpload" Source="./Images/microLessonSystem_22.png" Visibility="Visible"/>
  275. <Image x:Name="ImgUploadTwo" Source="./Images/microLessonSystem_1.png" Visibility="Collapsed"/>
  276. <TextBlock Text="我的" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  277. </StackPanel>
  278. </Button>
  279. <Button Cursor="Hand" x:Name="btnSetUp" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,30,0" Click="BtnSetUp_Click">
  280. <StackPanel Orientation="Vertical">
  281. <Image x:Name="ImgSetUp" Source="./Images/microLessonSystem_18.png" Visibility="Visible"/>
  282. <Image x:Name="ImgSetUpTwo" Source="./Images/microLessonSystem_17.png" Visibility="Collapsed"/>
  283. <TextBlock Text="设置" FontSize="14" Padding="0,6,0,0" Foreground="#FFFFFF" HorizontalAlignment="Center"/>
  284. </StackPanel>
  285. </Button>
  286. </StackPanel>
  287. </Grid>
  288. <!--主内容-->
  289. <Border Grid.Row="1">
  290. <Grid Grid.Row="1" x:Name="GridMain" Visibility="Visible" MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
  291. <ScrollViewer x:Name="scroMain" VerticalScrollBarVisibility="Visible" MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
  292. <Grid x:Name="gridM" Margin="0,0,0,0" Background="#FFFFFF" Visibility="Visible" Width="auto" Height="1780" MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
  293. <Grid>
  294. <Border Grid.Row="1" CornerRadius="5">
  295. <Grid x:Name="IMG" Margin="0,0,0,0">
  296. <Grid.Resources>
  297. <TransformGroup x:Key="Imageview">
  298. <ScaleTransform/>
  299. <TranslateTransform/>
  300. </TransformGroup>
  301. </Grid.Resources>
  302. <!--<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Disabled" Cursor="SizeAll"
  303. Margin="0,0,0,0" Focusable="False" x:Name="BackFrame">
  304. <ContentControl MouseLeftButtonDown="IMG1_MouseLeftButtonDown"
  305. MouseLeftButtonUp="IMG1_MouseLeftButtonUp"
  306. MouseMove="IMG1_MouseMove"
  307. MouseWheel="IMG1_MouseWheel" >
  308. </ContentControl>
  309. </ScrollViewer>-->
  310. <!--图片表框 -->
  311. <Rectangle x:Name="RectImgBorder" Cursor="SizeAll" Fill="#00000000" HorizontalAlignment="Left" Stroke="#2D8CF0" VerticalAlignment="Top" Width="300" Height="300" Visibility="Hidden" Margin="373,175,0,0" StrokeThickness="4" StrokeDashArray="4 4" SnapsToDevicePixels="True"/>
  312. <Image x:Name="imgCanvas" Height="0" VerticalAlignment="Top" HorizontalAlignment="Left" Stretch="Fill" MouseDown="PicEMap_MouseDown" RenderTransform="{StaticResource Imageview}" MouseLeftButtonDown="imgCanvas_MouseLeftButtonDown" Focusable="True" MouseMove="imgCanvas_MouseMove" MouseUp="imgCanvas_MouseUp"/>
  313. <!--四个点 -->
  314. <Canvas>
  315. <Thumb x:Name="RectLeftUp" Cursor="SizeNWSE" HorizontalAlignment="Left" Height="20" VerticalAlignment="Top" Width="20" Visibility="Hidden" Canvas.Left="314" Canvas.Top="157" Background="White" BorderBrush="#2D8CF0" BorderThickness="2" DragDelta="RectRightUp_DragDelta" DragStarted="RectRightUp_DragStarted" DragCompleted="RectRightUp_DragCompleted"/>
  316. <Thumb x:Name="RectRightUp" Cursor="SizeNESW" HorizontalAlignment="Left" Height="20" VerticalAlignment="Top" Width="20" Visibility="Hidden" Canvas.Left="775" Canvas.Top="157" Background="White" BorderBrush="#2D8CF0" BorderThickness="2" DragDelta="RectRightUp_DragDelta" DragStarted="RectRightUp_DragStarted" DragCompleted="RectRightUp_DragCompleted"/>
  317. <Thumb x:Name="RectLeftDown" Cursor="SizeNESW" HorizontalAlignment="Left" Height="20" VerticalAlignment="Top" Width="20" Visibility="Hidden" Canvas.Left="314" Canvas.Top="508" Background="White" BorderBrush="#2D8CF0" BorderThickness="2" DragDelta="RectRightUp_DragDelta" DragStarted="RectRightUp_DragStarted" DragCompleted="RectRightUp_DragCompleted"/>
  318. <Thumb x:Name="RectRightDown" Cursor="SizeNWSE" HorizontalAlignment="Left" Height="20" VerticalAlignment="Top" Width="20" Visibility="Hidden" Canvas.Left="775" Canvas.Top="508" Background="White" BorderBrush="#2D8CF0" BorderThickness="2" DragDelta="RectRightUp_DragDelta" DragStarted="RectRightUp_DragStarted" DragCompleted="RectRightUp_DragCompleted"/>
  319. </Canvas>
  320. </Grid>
  321. </Border>
  322. </Grid>
  323. <Image x:Name="imgDocumentation" Visibility="Visible" Stretch="Fill"/>
  324. <!--<Grid Width="auto" Height="auto" HorizontalAlignment="Center" VerticalAlignment="Center">
  325. <Border BorderBrush="#FF171515" BorderThickness="2">
  326. <Image x:Name="imgDocumentation" Visibility="Visible" Stretch="Fill"/>
  327. </Border>
  328. </Grid>-->
  329. <Image x:Name="imgPPT" Visibility="Visible" VerticalAlignment="Top"/>
  330. <!--导入图片-->
  331. <!--<Button Cursor="Hand" x:Name="btnOk" Height="50" Width="50" Content="√" FontSize="26" Background="#2E8CF0" Foreground="#FFFFFF" Click="btnOk_Click" Visibility="Collapsed"/>-->
  332. <InkCanvas Grid.Row="0" x:Name="blackboard_canvas" Background="Transparent" Visibility="Collapsed" Grid.ColumnSpan="2"/>
  333. <!--摄像头-->
  334. <!--<wfi:WindowsFormsHost Grid.Row="0" Grid.Column="1" x:Name="wfhCamera" Height="124" Width="172" HorizontalAlignment="Right" Margin="0,10,30.10,0" VerticalAlignment="Top">
  335. <aforge:VideoSourcePlayer x:Name="player" Height="124" Width="172" />
  336. </wfi:WindowsFormsHost>-->
  337. <!--<Image x:Name="imgLoad"
  338. Width="300"
  339. Height="300"
  340. gifLib:ImageBehavior.AnimatedSource="./Images/img_load.gif" VerticalAlignment="Top" Margin="0,200,0,0" Visibility="Visible"/>-->
  341. </Grid>
  342. </ScrollViewer>
  343. <Image x:Name="imgPlayerLeft" Width="172" Height="124" Source="./Images/microLessonSystem_17.png" HorizontalAlignment="Left" Margin="10,7,10,10" VerticalAlignment="Top" Visibility="Collapsed"/>
  344. <Image x:Name="imgPlayerRight" Width="172" Height="124" Source="./Images/microLessonSystem_17.png" HorizontalAlignment="Right" Margin="10,7,26,10" VerticalAlignment="Top" Visibility="Collapsed"/>
  345. <Image x:Name="imgPlayerLeftUnder" Width="172" Height="124" Source="./Images/microLessonSystem_17.png" HorizontalAlignment="Left" Margin="10,7,10,10" VerticalAlignment="Bottom" Visibility="Collapsed"/>
  346. <Image x:Name="imgPlayerRightUnder" Width="172" Height="124" Source="./Images/microLessonSystem_17.png" HorizontalAlignment="Right" Margin="10,7,26,10" VerticalAlignment="Bottom" Visibility="Collapsed"/>
  347. <Label Content="" Grid.Column="0" Height="2" Width="2" HorizontalAlignment="Left" VerticalAlignment="Top" Background="#FF0F0F0F" Margin="1,0,0,0"/>
  348. <Label Content="" Grid.Column="1" Height="2" Width="2" Background="#FF0F0F0F" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,16,0"/>
  349. <Label Content="" Grid.Column="0" Height="2" Width="2" Background="#FF0F0F0F" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="1,0,0,0"/>
  350. <Label Content="" Grid.Column="1" Height="2" Width="2" Background="#FF0F0F0F" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,16,0"/>
  351. <!--<TextBlock x:Name="txbTime" Text="123456" FontSize="20" Foreground="#000000" Margin="0,0,0,10" HorizontalAlignment="Left" VerticalAlignment="Bottom"/>-->
  352. </Grid>
  353. </Border>
  354. <!--设置-->
  355. <ScrollViewer x:Name="gridSetUp" Grid.Row="1" VerticalScrollBarVisibility="Auto" Visibility="Collapsed">
  356. <Grid Grid.Row="1" Background="#FFFFFF" >
  357. <Grid.RowDefinitions>
  358. <RowDefinition Height="80"/>
  359. <RowDefinition Height="50"/>
  360. <RowDefinition Height="50"/>
  361. <RowDefinition Height="50"/>
  362. <RowDefinition Height="50"/>
  363. <RowDefinition Height="50"/>
  364. <RowDefinition Height="50"/>
  365. <RowDefinition Height="50"/>
  366. <RowDefinition Height="50"/>
  367. <RowDefinition Height="50"/>
  368. <RowDefinition Height="50"/>
  369. <RowDefinition Height="*"/>
  370. </Grid.RowDefinitions>
  371. <Grid.ColumnDefinitions>
  372. <ColumnDefinition Width="100"/>
  373. <ColumnDefinition Width="*"/>
  374. </Grid.ColumnDefinitions>
  375. <TextBlock Grid.Row="0" Grid.Column="0" Text="设备" FontSize="16" Foreground="#333333" HorizontalAlignment="Right" Margin="0,30,0,0"/>
  376. <TextBlock Grid.Row="0" Grid.Column="1" x:Name="txbNotConnecteds" Text="未连接" FontSize="14" Foreground="#333333" Margin="30,30,0,0"/>
  377. <TextBlock Grid.Row="1" Grid.Column="0" Text="视频格式" FontSize="16" Foreground="#333333" HorizontalAlignment="Right"/>
  378. <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
  379. <RadioButton x:Name="rbnMP4" Cursor="Hand" Style="{StaticResource radBase}" Content=" MP4" FontSize="14" Foreground="#333333" VerticalAlignment="Top" IsChecked="True"/>
  380. <RadioButton x:Name="rbnFLV" Cursor="Hand" Style="{StaticResource radBase}" Content=" FLV" FontSize="14" Foreground="#333333" VerticalAlignment="Top" Margin="20,0,0,0"/>
  381. <RadioButton x:Name="rbnAVI" Cursor="Hand" Style="{StaticResource radBase}" Content=" AVI" FontSize="14" Foreground="#333333" Margin="20,-26,0,0" Visibility="Collapsed"/>
  382. </StackPanel>
  383. <TextBlock Grid.Row="2" Grid.Column="0" Text="录屏工具栏" FontSize="16" Foreground="#333333" HorizontalAlignment="Right"/>
  384. <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
  385. <RadioButton x:Name="rbnHide" Cursor="Hand" Style="{StaticResource radBase}" Content=" 隐藏" FontSize="14" Foreground="#333333" VerticalAlignment="Top" IsChecked="True"/>
  386. <RadioButton x:Name="rbnvisi" Cursor="Hand" Style="{StaticResource radBase}" Content=" 显示" FontSize="14" Foreground="#333333" VerticalAlignment="Top" Margin="20,0,0,0"/>
  387. </StackPanel>
  388. <TextBlock Grid.Row="3" Grid.Column="0" Text="摄像头位置" FontSize="16" Foreground="#333333" HorizontalAlignment="Right"/>
  389. <StackPanel Grid.Row="3" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
  390. <RadioButton Cursor="Hand" x:Name="rbnRight" Style="{StaticResource radBase}" Content=" 右上" FontSize="14" Foreground="#333333" VerticalAlignment="Top" Margin="0,0,0,0" IsChecked="True"/>
  391. <RadioButton Cursor="Hand" x:Name="rbnRightUnder" Style="{StaticResource radBase}" Content=" 右下" FontSize="14" Foreground="#333333" VerticalAlignment="Top" Margin="20,0,0,0"/>
  392. <RadioButton Cursor="Hand" x:Name="rbnLeft" Style="{StaticResource radBase}" Content=" 左上" FontSize="14" Foreground="#333333" VerticalAlignment="Top" Margin="20,0,0,0" />
  393. <RadioButton Cursor="Hand" x:Name="rbnLeftUnder" Style="{StaticResource radBase}" Content=" 左下" FontSize="14" Foreground="#333333" VerticalAlignment="Top" Margin="20,0,0,0"/>
  394. </StackPanel>
  395. <StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0" Visibility="Collapsed">
  396. <TextBlock Text="视频声音" FontSize="16" Foreground="#2D8CF0" Width="80"/>
  397. <RadioButton x:Name="rbnY" Cursor="Hand" Content="有" FontSize="14" Foreground="#333333" Margin="10,2,0,0" IsChecked="True"/>
  398. <RadioButton x:Name="rbnN" Cursor="Hand" Content="无" FontSize="14" Foreground="#333333" Margin="20,2,0,0"/>
  399. </StackPanel>
  400. <!--接口地址-->
  401. <TextBlock Grid.Row="4" Grid.Column="0" Text="接口地址" FontSize="16" Foreground="#333333" HorizontalAlignment="Right" Padding="0,0,0,0"/>
  402. <StackPanel Grid.Row="4" Grid.Column="1" Orientation="Horizontal" Margin="30,0,0,0">
  403. <TextBlock Text="http://" FontSize="14" Padding="0,0,5,0"/>
  404. <TextBox x:Name="txbInterfaceAddress" FontSize="14" Width="467" Height="30" Margin="0,-30,0,0" VerticalContentAlignment="Center" Padding="5,0,0,0"/>
  405. </StackPanel>
  406. <!--上传地址-->
  407. <TextBlock Grid.Row="5" Grid.Column="0" Text="上传地址" FontSize="16" Foreground="#333333" HorizontalAlignment="Right" Padding="0,0,0,0"/>
  408. <StackPanel Grid.Row="5" Grid.Column="1" Orientation="Horizontal" Margin="30,0,0,0">
  409. <TextBlock Text="http://" FontSize="14" Padding="0,0,5,0"/>
  410. <TextBox x:Name="txbImageUploadAddress" FontSize="14" Margin="0,-30,0,0" Width="467" Height="30" VerticalContentAlignment="Center" Padding="5,0,0,0"/>
  411. </StackPanel>
  412. <!--下载地址-->
  413. <TextBlock Grid.Row="6" Grid.Column="0" Text="下载地址" FontSize="16" Foreground="#333333" HorizontalAlignment="Right" Padding="0,0,0,0"/>
  414. <StackPanel Grid.Row="6" Grid.Column="1" Orientation="Horizontal" Margin="30,0,0,0">
  415. <TextBlock Text="http://" FontSize="14" Padding="0,0,5,0"/>
  416. <TextBox x:Name="txbPictureShowsAddress" FontSize="14" Margin="0,-30,0,0" Width="467" Height="30" VerticalContentAlignment="Center" Padding="5,0,0,0"/>
  417. </StackPanel>
  418. <TextBlock Grid.Row="7" Grid.Column="0" x:Name="txbFilePath" Text="文件路径" FontSize="16" HorizontalAlignment="Right" Foreground="#333333" Padding="0,0,0,0" />
  419. <StackPanel Grid.Row="7" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
  420. <Border Background="#CDD6E0" Width="515" Height="30" CornerRadius="3" Margin="0,-30,0,0">
  421. <Label x:Name="txbStoragePath" Background="#FFFFFF" Margin="0,0,0,0" Content="D:\" FontSize="14" Foreground="#333333" Padding="10,7,2,2" Width="513" Height="28" BorderBrush="{x:Null}" BorderThickness="0"/>
  422. </Border>
  423. <!--浏览按钮-->
  424. <Button Cursor="Hand" x:Name="btnBrowse" Content="浏览" FontSize="14" Width="80" Height="30" Margin="18,-30,0,0" Click="BtnBrowse_Click">
  425. <Button.Template>
  426. <ControlTemplate TargetType="{x:Type Button}">
  427. <Border
  428. BorderBrush="{TemplateBinding BorderBrush}"
  429. BorderThickness="1"
  430. CornerRadius="2">
  431. <Border.Background>
  432. <Brush>#EBEFF3</Brush>
  433. </Border.Background>
  434. <ContentPresenter
  435. HorizontalAlignment="Center"
  436. VerticalAlignment="Center"
  437. Content="{TemplateBinding Content}" />
  438. </Border>
  439. </ControlTemplate>
  440. </Button.Template>
  441. </Button>
  442. <!--打开按钮-->
  443. <Button Cursor="Hand" x:Name="btnOpen" Content="打开文件位置" FontSize="14" Width="100" Height="30" Margin="18,-30,0,0" Click="btnOpen_Click">
  444. <Button.Template>
  445. <ControlTemplate TargetType="{x:Type Button}">
  446. <Border
  447. BorderBrush="{TemplateBinding BorderBrush}"
  448. BorderThickness="1"
  449. CornerRadius="2">
  450. <Border.Background>
  451. <Brush>#EBEFF3</Brush>
  452. </Border.Background>
  453. <ContentPresenter
  454. HorizontalAlignment="Center"
  455. VerticalAlignment="Center"
  456. Content="{TemplateBinding Content}" />
  457. </Border>
  458. </ControlTemplate>
  459. </Button.Template>
  460. </Button>
  461. </StackPanel>
  462. <TextBlock Grid.Row="8" Grid.Column="0" Text="录屏快捷键" FontSize="16" HorizontalAlignment="Right" Foreground="#333333" Margin="0,0,0,0"/>
  463. <StackPanel Grid.Row="8" Grid.Column="1">
  464. <TextBlock FontSize="14" Foreground="#333333" Text="开始/暂停:Ctrl+F5 停止:Ctrl+S 退出讲评:鼠标右键" Margin="30,0,0,0"/>
  465. </StackPanel>
  466. <TextBlock Grid.Row="10" Grid.Column="0" x:Name="txbVersion" Text="正式版:" FontSize="16" HorizontalAlignment="Right" Foreground="#333333" Margin="0,0,0,0"/>
  467. <StackPanel Grid.Row="10" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
  468. <TextBlock x:Name="txbv" Text="V0.0.0" FontSize="16" Foreground="#333333"/>
  469. </StackPanel>
  470. <TextBlock Grid.Row="9" Grid.Column="0" Text="版权所有" FontSize="16" HorizontalAlignment="Right" Foreground="#333333" Margin="0,0,0,0"/>
  471. <StackPanel Grid.Row="9" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="30,0,0,0">
  472. <TextBlock Text="河南星火燎原软件科技有限公司" FontSize="14" Foreground="#333333"/>
  473. </StackPanel>
  474. <!--第四行 开始按钮-->
  475. <Button Cursor="Hand" Grid.Row="10" Grid.ColumnSpan="2" x:Name="btnSave" Content="保存" FontSize="18" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="115" Height="45" Margin="10,10,10,10" Click="BtnSave_Click">
  476. <Button.Template>
  477. <ControlTemplate TargetType="{x:Type Button}">
  478. <Border
  479. BorderBrush="{TemplateBinding BorderBrush}"
  480. BorderThickness="1"
  481. CornerRadius="2">
  482. <Border.Background>
  483. <Brush>#2D8CF0</Brush>
  484. </Border.Background>
  485. <ContentPresenter
  486. HorizontalAlignment="Center"
  487. VerticalAlignment="Center"
  488. Content="{TemplateBinding Content}" />
  489. </Border>
  490. </ControlTemplate>
  491. </Button.Template>
  492. </Button>
  493. </Grid>
  494. </ScrollViewer>
  495. <!--上传-->
  496. <Grid Grid.Row="1" x:Name="gridUpload" Visibility="Hidden">
  497. <Border Background="#EFF1F8">
  498. <Grid Background="#FFFFFF" Margin="0,0,0,0">
  499. <!--分4行-->
  500. <Grid.RowDefinitions>
  501. <RowDefinition Height="*"/>
  502. <RowDefinition Height="30"/>
  503. </Grid.RowDefinitions>
  504. <!--第二行 内容-->
  505. <Grid Grid.Row="0" Margin="0,0,0,0">
  506. <Grid.RowDefinitions>
  507. <RowDefinition Height="45"/>
  508. <RowDefinition Height="*"/>
  509. </Grid.RowDefinitions>
  510. <UniformGrid x:Name="uniStatisticsByTitle"
  511. Grid.Row="0"
  512. Margin="0,0,0,0"
  513. Background="#E6F0FF"
  514. Columns="5"
  515. Rows="1">
  516. <TextBlock
  517. HorizontalAlignment="Center"
  518. VerticalAlignment="Center"
  519. FontSize="16"
  520. Text="序号" />
  521. <TextBlock
  522. HorizontalAlignment="Center"
  523. VerticalAlignment="Center"
  524. FontSize="16"
  525. Text="视频名称"/>
  526. <!--<TextBlock
  527. HorizontalAlignment="Center"
  528. VerticalAlignment="Center"
  529. FontSize="15"
  530. Text="视频时长" Foreground="White" />-->
  531. <TextBlock
  532. HorizontalAlignment="Center"
  533. VerticalAlignment="Center"
  534. FontSize="16"
  535. Text="视频大小"/>
  536. <TextBlock
  537. HorizontalAlignment="Center"
  538. VerticalAlignment="Center"
  539. FontSize="16"
  540. Text="日期"/>
  541. <TextBlock
  542. HorizontalAlignment="Center"
  543. VerticalAlignment="Center"
  544. FontSize="16"
  545. Text="操作"/>
  546. </UniformGrid>
  547. <ListBox Grid.Row="1" Margin="0,0,0,0"
  548. x:Name="listView1"
  549. BorderThickness="0"
  550. FontSize="20"
  551. ItemContainerStyle="{StaticResource ListBoxItemContainerStyle}"
  552. ItemTemplate="{StaticResource TongjiItem}"
  553. ItemsSource="{Binding menuList}"
  554. ScrollViewer.HorizontalScrollBarVisibility="Disabled"
  555. ScrollViewer.VerticalScrollBarVisibility="Disabled"/>
  556. </Grid>
  557. <StackPanel Grid.Row="3" x:Name="stpUp" Orientation="Horizontal" Background="Transparent" Width="180" HorizontalAlignment="Center"
  558. Height="30" Margin="0,0,0,0" Grid.Column="1" VerticalAlignment="Bottom">
  559. <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
  560. x:Name="btnLastPage"
  561. Width="60" Height="20"
  562. Click="BtnLastPage_Click">
  563. <StackPanel>
  564. <Image Width="16" Height="12" Source=".\Images\class_p1.png" />
  565. </StackPanel>
  566. </Button>
  567. <Grid Width="60" Background="Transparent">
  568. <Grid.RowDefinitions>
  569. <RowDefinition Height="311*"/>
  570. <RowDefinition Height="483*"/>
  571. </Grid.RowDefinitions>
  572. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,-12,0,0" Grid.Row="1" Background="Transparent">
  573. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Background="Transparent">
  574. <TextBlock x:Name="txbCurrpageTwo" TextAlignment="Center" FontSize="15"/>
  575. <TextBlock Text="/" TextAlignment="Center" FontSize="15"/>
  576. <TextBlock x:Name="txbPageNumTwo" TextAlignment="Center" FontSize="15"/>
  577. </StackPanel>
  578. </StackPanel>
  579. </Grid>
  580. <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
  581. x:Name="btnNextPage" Background="Transparent"
  582. Width="60" Height="20"
  583. Click="BtnNextPage_Click">
  584. <StackPanel>
  585. <Image Width="16" Height="12" Source=".\Images\class_p2.png" />
  586. </StackPanel>
  587. </Button>
  588. </StackPanel>
  589. </Grid>
  590. </Border>
  591. </Grid>
  592. <Grid x:Name="GridMyVideo" Grid.Row="1" Margin="0" Background="White" Visibility="Hidden">
  593. <Grid.RowDefinitions>
  594. <RowDefinition Height="*"/>
  595. <RowDefinition Height="50"/>
  596. </Grid.RowDefinitions>
  597. <Label x:Name="lblVideoMess" Grid.Row="0" Content="暂无微课录制信息,请录制并等待保存完成后重试!" HorizontalAlignment="Center" Margin="0,0,0,100" VerticalAlignment="Center" FontSize="20" Visibility="Hidden"/>
  598. <Button x:Name="BtnVideoUpPage" Content="上一页" Cursor="Hand" HorizontalAlignment="Center" Margin="0,0,150,12" Grid.Row="1" VerticalAlignment="Bottom" Width="60" Background="{x:Null}" BorderBrush="{x:Null}" FontSize="16" Foreground="#FF333333" Click="BtnVideoUpPage_Click"/>
  599. <Label x:Name="lblVideoPageNum" Grid.Row="1" FontSize="14" Content="100/100" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0,0,0,10" Foreground="#FF333333" />
  600. <Button x:Name="BtnVideoDownPage" Content="下一页" Cursor="Hand" HorizontalAlignment="Center" Margin="150,0,0,12" Grid.Row="1" VerticalAlignment="Bottom" Width="60" Background="{x:Null}" BorderBrush="{x:Null}" FontSize="16" Foreground="#FF333333" Click="BtnVideoDownPage_Click"/>
  601. </Grid>
  602. <Grid Grid.Row="2" Background="#EFF1F8" Margin="0,0,0,0">
  603. <StackPanel Orientation="Horizontal" Margin="0,5,0,5">
  604. <TextBlock Text="颜色: " FontSize="14" Padding="0,0,0,0" Margin="5,4,0,0"/>
  605. <Button Cursor="Hand" x:Name="btnWhite" Background="#FFFFFF" Width="20" Height="20" Click="BtnWhite_Click" Margin="0,2,0,0" Visibility="Collapsed"/>
  606. <Border Background="#666666" Width="20" Height="20" Margin="5,2,0,0">
  607. <Button Cursor="Hand" x:Name="btnRed" Width="20" Height="20" Background="#FF0000" Margin="1,1,1,1" HorizontalAlignment="Center" Click="BtnRed_Click" Style="{StaticResource NoMouseOverButtonStyle}">
  608. <Image x:Name="imgRed" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Visible"/>
  609. </Button>
  610. </Border>
  611. <Border Background="#666666" Width="20" Height="20" Margin="5,2,0,0">
  612. <Button Cursor="Hand" x:Name="btnGray" Background="#333333" Width="20" Height="20" Margin="1,1,1,1" Click="BtnGray_Click" Style="{StaticResource NoMouseOverButtonStyle}">
  613. <Image x:Name="imgGray" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
  614. </Button>
  615. </Border>
  616. <Border Background="#666666" Width="20" Height="20" Margin="5,2,0,0">
  617. <Button Cursor="Hand" x:Name="btnCyanBlue" Background="#63D600" Width="20" Height="20" Margin="1,1,1,1" Click="BtnCyanBlue_Click" Style="{StaticResource NoMouseOverButtonStyle}">
  618. <Image x:Name="imgCyanBlue" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
  619. </Button>
  620. </Border>
  621. <Border Background="#666666" Width="20" Height="20" Margin="5,2,0,0">
  622. <Button Cursor="Hand" x:Name="btnYellow" Background="#FFBC00" Width="20" Height="20" Margin="1,1,1,1" Click="BtnYellow_Click" Style="{StaticResource NoMouseOverButtonStyle}">
  623. <Image x:Name="imgYellow" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
  624. </Button>
  625. </Border>
  626. <Border Background="#666666" Width="20" Height="20" Margin="5,2,0,0">
  627. <Button Cursor="Hand" x:Name="btnBlue" Background="#00B4FC" Width="20" Height="20" Margin="1,1,1,1" Click="BtnBlue_Click" Style="{StaticResource NoMouseOverButtonStyle}">
  628. <Image x:Name="imgBlue" Source=".\Images\microLessonSystem_999.png" Width="12" Visibility="Collapsed"/>
  629. </Button>
  630. </Border>
  631. <TextBlock Text="粗细: " FontSize="14" Padding="0,0,0,0" Margin="5,4,0,0"/>
  632. <RadioButton Cursor="Hand" x:Name="rbnFine" Content=" 细" Style="{StaticResource radBase}" FontSize="14" Margin="0,4,0,0" IsChecked="True" Click="RbnFine_Click"/>
  633. <RadioButton Cursor="Hand" x:Name="rbnIn" Content=" 中" Style="{StaticResource radBase}" FontSize="14" Margin="5,4,0,0" Click="RbnIn_Click"/>
  634. <RadioButton Cursor="Hand" x:Name="rbnCrude" Content=" 粗" Style="{StaticResource radBase}" FontSize="14" Margin="5,4,0,0" Click="RbnCrude_Click"/>
  635. </StackPanel>
  636. <!--页码-->
  637. <Grid Grid.Row="1" x:Name="gridPage" Visibility="Hidden" MouseLeftButtonDown="Window_MouseLeftButtonDown_1" HorizontalAlignment="Center" Margin="95,0,0,0">
  638. <StackPanel Grid.Row="0" Orientation="Horizontal" Background="Transparent" Width="220" HorizontalAlignment="Center" Height="30" Margin="0,0,0,0" Grid.Column="1" VerticalAlignment="Bottom">
  639. <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
  640. x:Name="last_button"
  641. Width="28" Height="20"
  642. Click="last_button_Click">
  643. <StackPanel>
  644. <Image Width="16" Height="12" Source=".\Images\class_p1.png" />
  645. </StackPanel>
  646. </Button>
  647. <Grid Width="60" Background="Transparent" MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
  648. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Background="Transparent">
  649. <TextBlock x:Name="txbCurrpage" Text="{Binding currpage}" TextAlignment="Center" FontSize="15" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0"/>
  650. <TextBlock Text="/" TextAlignment="Center" FontSize="15" HorizontalAlignment="Center" VerticalAlignment="Center" />
  651. <TextBlock x:Name="txbTotalpage" Text="{Binding pagenum}" TextAlignment="Center" FontSize="15" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  652. </StackPanel>
  653. </Grid>
  654. <Button Cursor="Hand" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
  655. x:Name="next_btn" Background="Transparent"
  656. Width="28" Height="20"
  657. Click="next_btn_Click">
  658. <StackPanel>
  659. <Image Width="16" Height="12" Source=".\Images\class_p2.png" />
  660. </StackPanel>
  661. </Button>
  662. <TextBlock Text="转" Height="22" Margin="0,5,3,0" FontSize="15"></TextBlock>
  663. <!--<TextBox x:Name="txtJump" Text="123" Height="17" Width="25" Visibility="Visible" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0" input:InputMethod.IsInputMethodEnabled="False" PreviewTextInput="txtJump_PreviewTextInput" KeyDown="txtJump_KeyDown"/>-->
  664. <!--<Button Cursor="Hand" Visibility="Visible" x:Name="BtnJumpPage" HorizontalAlignment="Left" VerticalAlignment="Center" Width="17" Height="17" Background="White" BorderBrush="#FFABADB3" Margin="24,0,0,0" Click="BtnJumpPage_Click">
  665. <Button.Resources>
  666. <Style TargetType="{x:Type Border}">
  667. <Setter Property="CornerRadius" Value="0"/>
  668. <Setter Property="BorderBrush" Value="#3492F4"/>
  669. </Style>
  670. </Button.Resources>
  671. <Image Source="/星火微课;component/Images/VideoList_OK.png" Margin="2,2,2,2"></Image>
  672. </Button>-->
  673. <ComboBox Cursor="Hand" Width="55" Height="24" x:Name="CbxPageList" VerticalContentAlignment="Center" BorderThickness="1" FontSize="15" SelectedIndex="-1"
  674. DisplayMemberPath="PageName" SelectedValuePath="PageCode" SelectionChanged="CbxPageList_SelectionChanged" VerticalAlignment="Center" HorizontalAlignment="Center">
  675. <ComboBox.Background>
  676. <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
  677. <GradientStop Color="#FFF0F0F0" Offset="0"/>
  678. <GradientStop Color="#FFE5E5E5" Offset="1"/>
  679. </LinearGradientBrush>
  680. </ComboBox.Background>
  681. </ComboBox>
  682. <TextBlock Text="页" Height="22" Margin="3,5,0,0" FontSize="15"></TextBlock>
  683. </StackPanel>
  684. </Grid>
  685. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,5,5,5">
  686. <TextBlock Text="摄像头: " FontSize="14" Padding="5,4,0,0"/>
  687. <RadioButton Cursor="Hand" x:Name="rbnOpen" Content=" 开" Style="{StaticResource radBase}" FontSize="14" Margin="0,4,0,0" Click="RbnOpen_Click"/>
  688. <RadioButton Cursor="Hand" x:Name="rbnTurnOff" Content=" 关" Style="{StaticResource radBase}" FontSize="14" Margin="5,4,10,0" IsChecked="True" Click="RbnTurnOff_Click"/>
  689. <TextBlock Text="设备: " FontSize="14" Padding="0,4,0,0"/>
  690. <TextBlock x:Name="txbNotConnected" Text="未连接" FontSize="14" Padding="0,4,5,0"/>
  691. </StackPanel>
  692. </Grid>
  693. </Grid>
  694. </Viewbox>
  695. </Window>