123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- <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="50"
- Margin="0,0,0,0"
- Background="{Binding Colour}"
- Columns="5"
- Rows="1">
- <!--题号-->
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- Text="{Binding SerialNumber}" />
- <Grid>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <TextBox IsEnabled="{Binding IsEnabled}"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16" Height="30" Padding="0,5,0,0"
- Text="{Binding VideoName,Mode=TwoWay}" Width="150"/>
- <Button x:Name="btnModify" Background="Transparent"
- Cursor="Hand"
- BorderThickness="0" Click="BtnModify_Click">
- <Grid>
- <Image Source="./Images/fileDirectory3.png" Margin="6,6,6,6" Height="20" Visibility="{Binding vis}"/>
- <Image Source="./Images/fileDirectory4.png" Margin="6,6,6,6" Height="20" Visibility="{Binding cos}"/>
- </Grid>
- </Button>
- </StackPanel>
- </Grid>
-
-
- <!--分值--><!--
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="15"
- Text="{Binding VideoDuration}" />-->
-
- <!--平均时长-->
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- Text="{Binding VideoSize}" />
- <!--最短时长-->
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- 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="10" Height="20" Visibility="{Binding vis}"/>
- <Image Source="./Images/fileDirectory2.png" Margin="10" 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" Height="20" Visibility="{Binding vis}"/>
- <Image Source="./Images/fileDirectory8.png" Margin="6,6,6,6" Height="20" 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" Height="20" Visibility="{Binding vis}"/>
- <Image Source="./Images/fileDirectory6.png" Margin="6,6,6,6" Height="20" Visibility="{Binding cos}"/>
- </Grid>
- </Button>
- </StackPanel>
- </Grid>
-
-
- </UniformGrid>
- </DataTemplate>
- </Window.Resources>
- <Viewbox>
- <Border Background="#fefefe" Height="729" Width="1030">
- <Border Background="#fdfdfd" Height="727" Width="1028">
- <Border Background="#fcfcfc" Height="725" Width="1026">
- <Border Background="#fafafa" Height="723" Width="1024">
- <Border Background="#f9f9f9" Height="721" Width="1022">
- <Border Background="#f6f6f6" Height="719" Width="1020">
- <Border Background="#f3f3f3" Height="717" Width="1018">
- <Border Background="#eeeeee" Height="715" Width="1016">
- <Border Background="#e9e9e9" Height="713" Width="1014">
- <Border Background="#e2e2e2" Height="711" Width="1012">
- <Border Background="#dcdcdc" Height="709" Width="1010">
- <Border Background="#d3d3d3" Height="707" Width="1008">
- <Border Background="#cccccc" Height="705" Width="1006">
- <Border Background="#bfbfbf" Height="703" Width="1004">
- <Border Background="#aeaeae" Height="701" Width="1002">
- <Border Background="#bababa" Height="699" Width="1000">
- <Border Background="#e4e4e4" Height="697" Width="998">
- <Grid Height="695" Width="998" Background="#FFFFFF" Margin="0,-1,0,0">
- <!--分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="16"
- Text="序号" Foreground="White" />
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- Text="视频名称" Foreground="White" />
- <!--<TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="15"
- Text="视频时长" Foreground="White" />-->
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- Text="视频大小" Foreground="White" />
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- Text="日期" Foreground="White" />
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- 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>
- </Border>
- </Border>
- </Border>
- </Border>
- </Border>
- </Border>
- </Border>
- </Border>
- </Border>
- </Border>
- </Border>
- </Border>
- </Border>
- </Border>
- </Border>
- </Border>
- </Border>
- </Viewbox>
- </Window>
|