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

FileDirectoryWindow.xaml 10KB

4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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"
  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="36"
  35. Margin="0,0,0,0"
  36. Background="{Binding Colour}"
  37. Columns="6"
  38. Rows="1">
  39. <!--题号-->
  40. <TextBlock
  41. HorizontalAlignment="Center"
  42. VerticalAlignment="Center"
  43. FontSize="15"
  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="15"
  52. Text="{Binding VideoName}" />
  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" Visibility="{Binding vis}"/>
  58. <Image Source="./Images/fileDirectory4.png" Margin="6,6,6,6" 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="15"
  74. Text="{Binding VideoSize}" />
  75. <!--最短时长-->
  76. <TextBlock
  77. HorizontalAlignment="Center"
  78. VerticalAlignment="Center"
  79. FontSize="15"
  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="6,6,6,6" Visibility="{Binding vis}"/>
  89. <Image Source="./Images/fileDirectory2.png" Margin="6,6,6,6" 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" Visibility="{Binding vis}"/>
  97. <Image Source="./Images/fileDirectory8.png" Margin="6,6,6,6" 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" Visibility="{Binding vis}"/>
  105. <Image Source="./Images/fileDirectory6.png" Margin="6,6,6,6" Visibility="{Binding cos}"/>
  106. </Grid>
  107. </Button>
  108. </StackPanel>
  109. </Grid>
  110. </UniformGrid>
  111. </DataTemplate>
  112. </Window.Resources>
  113. <Viewbox>
  114. <Grid Height="729" Width="1030" >
  115. <!--分4行-->
  116. <Grid.RowDefinitions>
  117. <RowDefinition Height="45"/>
  118. <RowDefinition Height="*"/>
  119. <RowDefinition Height="80"/>
  120. </Grid.RowDefinitions>
  121. <!--第一行 标题-->
  122. <Border Grid.Row="0" Background="#2D8CF0">
  123. <Grid MouseLeftButtonDown="Window_MouseLeftButtonDown">
  124. <TextBlock Text="文件目录" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
  125. <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"/>
  126. </Grid>
  127. </Border>
  128. <!--第二行 内容-->
  129. <Grid Grid.Row="1" Margin="0,15,0,0">
  130. <Grid.RowDefinitions>
  131. <RowDefinition Height="45"/>
  132. <RowDefinition Height="*"/>
  133. </Grid.RowDefinitions>
  134. <UniformGrid x:Name="uniStatisticsByTitle"
  135. Grid.Row="0"
  136. Margin="10,0,10,0"
  137. Background="#2D8CF0"
  138. Columns="6"
  139. Rows="1">
  140. <TextBlock
  141. HorizontalAlignment="Center"
  142. VerticalAlignment="Center"
  143. FontSize="15"
  144. Text="序号" Foreground="White" />
  145. <TextBlock
  146. HorizontalAlignment="Center"
  147. VerticalAlignment="Center"
  148. FontSize="15"
  149. Text="视频名称" Foreground="White" />
  150. <TextBlock
  151. HorizontalAlignment="Center"
  152. VerticalAlignment="Center"
  153. FontSize="15"
  154. Text="视频时长" Foreground="White" />
  155. <TextBlock
  156. HorizontalAlignment="Center"
  157. VerticalAlignment="Center"
  158. FontSize="15"
  159. Text="视频大小" Foreground="White" />
  160. <TextBlock
  161. HorizontalAlignment="Center"
  162. VerticalAlignment="Center"
  163. FontSize="15"
  164. Text="日期" Foreground="White" />
  165. <TextBlock
  166. HorizontalAlignment="Center"
  167. VerticalAlignment="Center"
  168. FontSize="15"
  169. Text="操作" Foreground="White" />
  170. </UniformGrid>
  171. <ListBox Grid.Row="1"
  172. x:Name="listView1"
  173. BorderThickness="0"
  174. FontSize="20"
  175. ItemContainerStyle="{StaticResource ListBoxItemContainerStyle}"
  176. ItemTemplate="{StaticResource TongjiItem}"
  177. ItemsSource="{Binding menuList}"
  178. ScrollViewer.HorizontalScrollBarVisibility="Disabled"
  179. ScrollViewer.VerticalScrollBarVisibility="Disabled"/>
  180. </Grid>
  181. <!--第三行 删除 上传 按钮-->
  182. <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Center" Height="32">
  183. <TextBlock Text="共" FontSize="20" Padding="0,5,0,0"/>
  184. <TextBlock x:Name="txbSum" Text="0" FontSize="20" Padding="0,5,0,0"/>
  185. <TextBlock Text="条" FontSize="20" Padding="0,5,0,0"/>
  186. <Button Background="Transparent"
  187. Cursor="Hand"
  188. BorderThickness="0">
  189. <Image Source="./Images/class_p1.png"/>
  190. </Button>
  191. <Button Background="Transparent"
  192. Cursor="Hand"
  193. BorderThickness="0" Content="1" FontSize="20" Width="30"/>
  194. <Button Background="Transparent"
  195. Cursor="Hand"
  196. BorderThickness="0" Content="2" FontSize="20" Width="30"/>
  197. <Button Background="Transparent"
  198. Cursor="Hand"
  199. BorderThickness="0" Content="3" FontSize="20" Width="30"/>
  200. <Button Background="Transparent"
  201. Cursor="Hand"
  202. BorderThickness="0">
  203. <Image Source="./Images/class_p2.png"/>
  204. </Button>
  205. </StackPanel>
  206. </Grid>
  207. </Viewbox>
  208. </Window>