123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- <Window x:Class="XHWK.WKTool.FileDirectoryWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:XHWK.WKTool"
- mc:Ignorable="d"
- Title="FileDirectoryWindow" Height="729" Width="1030" AllowsTransparency="True"
- ShowInTaskbar="False" MouseLeftButtonDown="Window_MouseLeftButtonDown_1" MouseLeftButtonUp="Window_MouseLeftButtonUp"
- WindowStartupLocation="CenterOwner"
- WindowStyle="None">
- <Window.Resources>
- <!-- ListBox容器样式 -->
- <Style x:Key="ListBoxItemContainerStyle" TargetType="{x:Type ListBoxItem}">
- <Setter Property="HorizontalContentAlignment" Value="Stretch" />
- <Setter Property="HorizontalAlignment" Value="Stretch" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBoxItem}">
- <Border
- x:Name="itemBox"
- Background="Transparent"
- BorderBrush="Transparent"
- BorderThickness="0">
- <ContentPresenter />
- </Border>
- <ControlTemplate.Triggers />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <DataTemplate x:Key="TongjiItem">
- <UniformGrid
- Height="36"
- Margin="0,0,0,0"
- Background="{Binding Colour}"
- Columns="5"
- Rows="1">
- <!--题号-->
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="15"
- Text="{Binding SerialNumber}" />
- <Grid>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <TextBox IsEnabled="{Binding IsEnabled}"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="15"
- Text="{Binding VideoName,Mode=TwoWay}" />
- <Button x:Name="btnModify" Background="Transparent"
- Cursor="Hand"
- BorderThickness="0" Click="BtnModify_Click">
- <Grid>
- <Image Source="./Images/fileDirectory3.png" Margin="6,6,6,6" Visibility="{Binding vis}"/>
- <Image Source="./Images/fileDirectory4.png" Margin="6,6,6,6" Visibility="{Binding cos}"/>
- </Grid>
- </Button>
- </StackPanel>
- </Grid>
-
-
- <!--分值--><!--
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="15"
- Text="{Binding VideoDuration}" />-->
-
- <!--平均时长-->
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="15"
- Text="{Binding VideoSize}" />
- <!--最短时长-->
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="15"
- Text="{Binding VideoTime}" />
-
- <Grid>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <Button x:Name="btnPlay" Background="Transparent"
- Cursor="Hand"
- BorderThickness="0" Click="BtnPlay_Click">
- <Grid>
- <Image Source="./Images/fileDirectory1.png" Margin="6,6,6,6" Visibility="{Binding vis}"/>
- <Image Source="./Images/fileDirectory2.png" Margin="6,6,6,6" Visibility="{Binding cos}"/>
- </Grid>
- </Button>
- <Button x:Name="btnUpload" Background="Transparent"
- Cursor="Hand"
- BorderThickness="0" Click="BtnUpload_Click">
- <Grid>
- <Image Source="./Images/fileDirectory7.png" Margin="6,6,6,6" Visibility="{Binding vis}"/>
- <Image Source="./Images/fileDirectory8.png" Margin="6,6,6,6" Visibility="{Binding cos}"/>
- </Grid>
- </Button>
- <Button x:Name="btnDelete" Background="Transparent"
- Cursor="Hand"
- BorderThickness="0" Click="BtnDelete_Click">
- <Grid>
- <Image Source="./Images/fileDirectory5.png" Margin="6,6,6,6" Visibility="{Binding vis}"/>
- <Image Source="./Images/fileDirectory6.png" Margin="6,6,6,6" Visibility="{Binding cos}"/>
- </Grid>
- </Button>
- </StackPanel>
- </Grid>
-
-
- </UniformGrid>
- </DataTemplate>
- </Window.Resources>
- <Viewbox>
- <Grid Height="729" Width="1030" >
- <!--分4行-->
- <Grid.RowDefinitions>
- <RowDefinition Height="45"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="30"/>
- </Grid.RowDefinitions>
- <!--第一行 标题-->
- <Border Grid.Row="0" Background="#2D8CF0">
- <Grid MouseLeftButtonDown="Window_MouseLeftButtonDown">
- <TextBlock Text="文件目录" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
- <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"/>
- </Grid>
- </Border>
- <!--第二行 内容-->
- <Grid Grid.Row="1" Margin="0,15,0,0">
- <Grid.RowDefinitions>
- <RowDefinition Height="45"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <UniformGrid x:Name="uniStatisticsByTitle"
- Grid.Row="0"
- Margin="10,0,10,0"
- Background="#2D8CF0"
- Columns="5"
- Rows="1">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="15"
- Text="序号" Foreground="White" />
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="15"
- Text="视频名称" Foreground="White" />
- <!--<TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="15"
- Text="视频时长" Foreground="White" />-->
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="15"
- Text="视频大小" Foreground="White" />
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="15"
- Text="日期" Foreground="White" />
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="15"
- Text="操作" Foreground="White" />
- </UniformGrid>
- <ListBox Grid.Row="1"
- x:Name="listView1"
- BorderThickness="0"
- FontSize="20"
- ItemContainerStyle="{StaticResource ListBoxItemContainerStyle}"
- ItemTemplate="{StaticResource TongjiItem}"
- ItemsSource="{Binding menuList}"
- ScrollViewer.HorizontalScrollBarVisibility="Disabled"
- ScrollViewer.VerticalScrollBarVisibility="Disabled"/>
- </Grid>
- <!--第三行 删除 上传 按钮-->
- <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right" Height="32">
- <TextBlock Text="共" FontSize="20" Padding="0,5,0,0"/>
- <TextBlock x:Name="txbSum" Text="0" FontSize="20" Padding="0,5,0,0"/>
- <TextBlock Text="条" FontSize="20" Padding="0,5,0,0"/>
- <Button Background="Transparent"
- Cursor="Hand"
- BorderThickness="0" Content="上一页" FontSize="20" Margin="10,0,0,0" >
- <!--<Image Source="./Images/class_p1.png"/>-->
- </Button>
- <Button Background="Transparent"
- Cursor="Hand"
- BorderThickness="0" Content="下一页" FontSize="20" Margin="10,0,0,0" >
- <!--<Image Source="./Images/class_p2.png"/>-->
- </Button>
- </StackPanel>
-
- </Grid>
- </Viewbox>
- </Window>
|