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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <Window x:Class="XHWK.WKTool.FileDirectoryWindow"
  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:local="clr-namespace:XHWK.WKTool"
  7. mc:Ignorable="d"
  8. Title="FileDirectoryWindow" Height="729" Width="1030" AllowsTransparency="True"
  9. ShowInTaskbar="False" MouseLeftButtonDown="Window_MouseLeftButtonDown_1" MouseLeftButtonUp="Window_MouseLeftButtonUp"
  10. WindowStartupLocation="CenterOwner"
  11. WindowStyle="None">
  12. <Window.Resources>
  13. <!-- ListBox容器样式 -->
  14. <Style x:Key="ListBoxItemContainerStyle" TargetType="{x:Type ListBoxItem}">
  15. <Setter Property="HorizontalContentAlignment" Value="Stretch" />
  16. <Setter Property="HorizontalAlignment" Value="Stretch" />
  17. <Setter Property="Template">
  18. <Setter.Value>
  19. <ControlTemplate TargetType="{x:Type ListBoxItem}">
  20. <Border
  21. x:Name="itemBox"
  22. Background="Transparent"
  23. BorderBrush="Transparent"
  24. BorderThickness="0">
  25. <ContentPresenter />
  26. </Border>
  27. <ControlTemplate.Triggers />
  28. </ControlTemplate>
  29. </Setter.Value>
  30. </Setter>
  31. </Style>
  32. <DataTemplate x:Key="TongjiItem">
  33. <UniformGrid
  34. Height="50"
  35. Margin="0,0,0,0"
  36. Background="{Binding Colour}"
  37. Columns="5"
  38. Rows="1">
  39. <!--题号-->
  40. <TextBlock
  41. HorizontalAlignment="Center"
  42. VerticalAlignment="Center"
  43. FontSize="16"
  44. Text="{Binding SerialNumber}" />
  45. <Grid>
  46. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"
  47. VerticalAlignment="Center">
  48. <TextBox IsEnabled="{Binding IsEnabled}"
  49. HorizontalAlignment="Center"
  50. VerticalAlignment="Center"
  51. FontSize="16" Height="30" Padding="0,5,0,0"
  52. Text="{Binding VideoName,Mode=TwoWay}" Width="150"/>
  53. <Button x:Name="btnModify" Background="Transparent"
  54. Cursor="Hand"
  55. BorderThickness="0" Click="BtnModify_Click">
  56. <Grid>
  57. <Image Source="./Images/fileDirectory3.png" Margin="6,6,6,6" Height="20" Visibility="{Binding vis}"/>
  58. <Image Source="./Images/fileDirectory4.png" Margin="6,6,6,6" Height="20" Visibility="{Binding cos}"/>
  59. </Grid>
  60. </Button>
  61. </StackPanel>
  62. </Grid>
  63. <!--分值--><!--
  64. <TextBlock
  65. HorizontalAlignment="Center"
  66. VerticalAlignment="Center"
  67. FontSize="15"
  68. Text="{Binding VideoDuration}" />-->
  69. <!--平均时长-->
  70. <TextBlock
  71. HorizontalAlignment="Center"
  72. VerticalAlignment="Center"
  73. FontSize="16"
  74. Text="{Binding VideoSize}" />
  75. <!--最短时长-->
  76. <TextBlock
  77. HorizontalAlignment="Center"
  78. VerticalAlignment="Center"
  79. FontSize="16"
  80. Text="{Binding VideoTime}" />
  81. <Grid>
  82. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"
  83. VerticalAlignment="Center">
  84. <Button x:Name="btnPlay" Background="Transparent"
  85. Cursor="Hand"
  86. BorderThickness="0" Click="BtnPlay_Click">
  87. <Grid>
  88. <Image Source="./Images/fileDirectory1.png" Margin="10" Height="20" Visibility="{Binding vis}"/>
  89. <Image Source="./Images/fileDirectory2.png" Margin="10" Visibility="{Binding cos}"/>
  90. </Grid>
  91. </Button>
  92. <Button x:Name="btnUpload" Background="Transparent"
  93. Cursor="Hand"
  94. BorderThickness="0" Click="BtnUpload_Click">
  95. <Grid>
  96. <Image Source="./Images/fileDirectory7.png" Margin="6,6,6,6" Height="20" Visibility="{Binding vis}"/>
  97. <Image Source="./Images/fileDirectory8.png" Margin="6,6,6,6" Height="20" Visibility="{Binding cos}"/>
  98. </Grid>
  99. </Button>
  100. <Button x:Name="btnDelete" Background="Transparent"
  101. Cursor="Hand"
  102. BorderThickness="0" Click="BtnDelete_Click">
  103. <Grid>
  104. <Image Source="./Images/fileDirectory5.png" Margin="6,6,6,6" Height="20" Visibility="{Binding vis}"/>
  105. <Image Source="./Images/fileDirectory6.png" Margin="6,6,6,6" Height="20" Visibility="{Binding cos}"/>
  106. </Grid>
  107. </Button>
  108. </StackPanel>
  109. </Grid>
  110. </UniformGrid>
  111. </DataTemplate>
  112. </Window.Resources>
  113. <Viewbox>
  114. <Border Background="#fefefe" Height="729" Width="1030">
  115. <Border Background="#fdfdfd" Height="727" Width="1028">
  116. <Border Background="#fcfcfc" Height="725" Width="1026">
  117. <Border Background="#fafafa" Height="723" Width="1024">
  118. <Border Background="#f9f9f9" Height="721" Width="1022">
  119. <Border Background="#f6f6f6" Height="719" Width="1020">
  120. <Border Background="#f3f3f3" Height="717" Width="1018">
  121. <Border Background="#eeeeee" Height="715" Width="1016">
  122. <Border Background="#e9e9e9" Height="713" Width="1014">
  123. <Border Background="#e2e2e2" Height="711" Width="1012">
  124. <Border Background="#dcdcdc" Height="709" Width="1010">
  125. <Border Background="#d3d3d3" Height="707" Width="1008">
  126. <Border Background="#cccccc" Height="705" Width="1006">
  127. <Border Background="#bfbfbf" Height="703" Width="1004">
  128. <Border Background="#aeaeae" Height="701" Width="1002">
  129. <Border Background="#bababa" Height="699" Width="1000">
  130. <Border Background="#e4e4e4" Height="697" Width="998">
  131. <Grid Height="695" Width="998" Background="#FFFFFF" Margin="0,-1,0,0">
  132. <!--分4行-->
  133. <Grid.RowDefinitions>
  134. <RowDefinition Height="45"/>
  135. <RowDefinition Height="*"/>
  136. <RowDefinition Height="30"/>
  137. </Grid.RowDefinitions>
  138. <!--第一行 标题-->
  139. <Border Grid.Row="0" Background="#2D8CF0">
  140. <Grid MouseLeftButtonDown="Window_MouseLeftButtonDown">
  141. <TextBlock Text="文件目录" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
  142. <Button Cursor="Hand" Grid.Row="0" x:Name="btnDown" Content="×" Foreground="#FFFFFF" FontSize="25" Padding="10,0,10,0" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="btnDown_Click"/>
  143. </Grid>
  144. </Border>
  145. <!--第二行 内容-->
  146. <Grid Grid.Row="1" Margin="0,15,0,0">
  147. <Grid.RowDefinitions>
  148. <RowDefinition Height="45"/>
  149. <RowDefinition Height="*"/>
  150. </Grid.RowDefinitions>
  151. <UniformGrid x:Name="uniStatisticsByTitle"
  152. Grid.Row="0"
  153. Margin="10,0,10,0"
  154. Background="#2D8CF0"
  155. Columns="5"
  156. Rows="1">
  157. <TextBlock
  158. HorizontalAlignment="Center"
  159. VerticalAlignment="Center"
  160. FontSize="16"
  161. Text="序号" Foreground="White" />
  162. <TextBlock
  163. HorizontalAlignment="Center"
  164. VerticalAlignment="Center"
  165. FontSize="16"
  166. Text="视频名称" Foreground="White" />
  167. <!--<TextBlock
  168. HorizontalAlignment="Center"
  169. VerticalAlignment="Center"
  170. FontSize="15"
  171. Text="视频时长" Foreground="White" />-->
  172. <TextBlock
  173. HorizontalAlignment="Center"
  174. VerticalAlignment="Center"
  175. FontSize="16"
  176. Text="视频大小" Foreground="White" />
  177. <TextBlock
  178. HorizontalAlignment="Center"
  179. VerticalAlignment="Center"
  180. FontSize="16"
  181. Text="日期" Foreground="White" />
  182. <TextBlock
  183. HorizontalAlignment="Center"
  184. VerticalAlignment="Center"
  185. FontSize="16"
  186. Text="操作" Foreground="White" />
  187. </UniformGrid>
  188. <ListBox Grid.Row="1"
  189. x:Name="listView1"
  190. BorderThickness="0"
  191. FontSize="20"
  192. ItemContainerStyle="{StaticResource ListBoxItemContainerStyle}"
  193. ItemTemplate="{StaticResource TongjiItem}"
  194. ItemsSource="{Binding menuList}"
  195. ScrollViewer.HorizontalScrollBarVisibility="Disabled"
  196. ScrollViewer.VerticalScrollBarVisibility="Disabled"/>
  197. </Grid>
  198. <!--第三行 删除 上传 按钮-->
  199. <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right" Height="32">
  200. <TextBlock Text="共" FontSize="20" Padding="0,5,0,0"/>
  201. <TextBlock x:Name="txbSum" Text="0" FontSize="20" Padding="0,5,0,0"/>
  202. <TextBlock Text="条" FontSize="20" Padding="0,5,0,0"/>
  203. <Button Background="Transparent"
  204. Cursor="Hand"
  205. BorderThickness="0" Content="上一页" FontSize="20" Margin="10,0,0,0" >
  206. <!--<Image Source="./Images/class_p1.png"/>-->
  207. </Button>
  208. <Button Background="Transparent"
  209. Cursor="Hand"
  210. BorderThickness="0" Content="下一页" FontSize="20" Margin="10,0,0,0" >
  211. <!--<Image Source="./Images/class_p2.png"/>-->
  212. </Button>
  213. </StackPanel>
  214. </Grid>
  215. </Border>
  216. </Border>
  217. </Border>
  218. </Border>
  219. </Border>
  220. </Border>
  221. </Border>
  222. </Border>
  223. </Border>
  224. </Border>
  225. </Border>
  226. </Border>
  227. </Border>
  228. </Border>
  229. </Border>
  230. </Border>
  231. </Border>
  232. </Viewbox>
  233. </Window>