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

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