星火微课系统客户端
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

XHMicroLessonSystemWindow.xaml 38KB

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