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

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