123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- <UserControl x:Class="XHWK.WKTool.UControl.Uc_VideoItem"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:XHWK.WKTool.UControl"
- mc:Ignorable="d"
- d:DesignHeight="260" d:DesignWidth="250">
- <Grid>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="10*"/>
- <RowDefinition Height="130*"/>
- <RowDefinition Height="110*"/>
- <RowDefinition Height="10*"/>
- </Grid.RowDefinitions>
- <!--视频缩略图-->
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="20*"/>
- <ColumnDefinition Width="210*"/>
- <ColumnDefinition Width="20*"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="1">
- <Border Background="#dddddd">
- <Button x:Name="BtnVideoPlay" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" HorizontalAlignment="Stretch" Cursor="Hand" Click="BtnVideoPlay_Click" VerticalAlignment="Stretch">
- <Image x:Name="ImgVideo" Cursor="Hand" Stretch="Fill"/>
- </Button>
- </Border>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="75*"/>
- <ColumnDefinition Width="60*"/>
- <ColumnDefinition Width="75*"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="35*"/>
- <RowDefinition Height="60*"/>
- <RowDefinition Height="35*"/>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0" Grid.Column="2">
- <Button Cursor="Hand" x:Name="btnSetUp" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" HorizontalAlignment="Right" VerticalAlignment="Top" Click="Button_Click">
- <Image x:Name="ImgSetUp" Source="/Images/Clip_Clip.png" Visibility="Visible"/>
- </Button>
- </Grid>
- <Grid Grid.Row="1" Grid.Column="1">
- <Border Background="#7FDDDDDD" CornerRadius="30">
- <Image x:Name="ImgVideoPlay" Source="/星火微课;component/Images/VideoList_Play.png" Cursor="Hand" MouseLeftButtonDown="Image_MouseLeftButtonDown" />
- </Border>
- </Grid>
- </Grid>
- </Grid>
- </Grid>
- <!--信息-->
- <Grid Grid.Row="2">
- <Grid.RowDefinitions>
- <RowDefinition Height="5*"></RowDefinition>
- <RowDefinition Height="30*"></RowDefinition>
- <RowDefinition Height="5*"></RowDefinition>
- <RowDefinition Height="30*"></RowDefinition>
- <RowDefinition Height="40*"></RowDefinition>
- </Grid.RowDefinitions>
- <!--名-->
- <Grid Grid.Row="1">
- <TextBlock x:Name="TbName" Text="一二三四五六七八九十一..." TextWrapping="Wrap" Foreground="#FF3492F4" FontSize="{Binding WordSize18}" TextAlignment="Center" ToolTip="" Visibility="Visible" MouseLeftButtonDown="TextBlock_MouseLeftButtonDown"/>
- <Grid x:Name="GridModify" Visibility="Hidden">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="15*"/>
- <ColumnDefinition Width="190*"/>
- <ColumnDefinition Width="30*"/>
- <ColumnDefinition Width="15*"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="1">
- <TextBox x:Name="TxtModify" TextWrapping="Wrap" Text="TextBox" FontSize="{Binding WordSize16}" LostFocus="TxtModify_LostFocus" KeyUp="TxtModify_KeyUp">
- <TextBox.Resources>
- <Style TargetType="{x:Type Border}">
- <Setter Property="CornerRadius" Value="3"/>
- <Setter Property="BorderBrush" Value="#3492F4"/>
- </Style>
- </TextBox.Resources>
- </TextBox>
- </Grid>
- <Grid Grid.Column="2">
- <Button Cursor="Hand" x:Name="BtnNameModifyOK" Background="White" BorderBrush="#FFABADB3" Click="BtnNameModifyOK_Click">
- <Button.Resources>
- <Style TargetType="{x:Type Border}">
- <Setter Property="CornerRadius" Value="3"/>
- <Setter Property="BorderBrush" Value="#3492F4"/>
- </Style>
- </Button.Resources>
- <Image Source="/星火微课;component/Images/VideoList_OK.png"></Image>
- </Button>
- </Grid>
- </Grid>
- </Grid>
- <!--信息-->
- <Grid Grid.Row="3">
- <Label x:Name="lblDateSize" Content="2020-10-10 10:10:00|1000.00MB" Foreground="#FF9A9A9A" FontSize="{Binding WordSize12}" HorizontalContentAlignment="Center"/>
- </Grid>
- <!--按钮-->
- <Grid Grid.Row="4">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="20*"></ColumnDefinition>
- <ColumnDefinition Width="100*"></ColumnDefinition>
- <ColumnDefinition Width="10*"></ColumnDefinition>
- <ColumnDefinition Width="100*"></ColumnDefinition>
- <ColumnDefinition Width="20*"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="1">
- <Border x:Name="BorUploadBtn" CornerRadius="6" Background="#FF3492F4">
- <Button Cursor="Hand" x:Name="BtnUpload" Content="上传" Foreground="White" FontSize="{Binding WordSize18}" Click="BtnUpload_Click" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
- </Border>
- </Grid>
- <Grid Grid.Column="3">
- <Border CornerRadius="6" Background="#FFC3C3C3">
- <Button Cursor="Hand" x:Name="BtnDelVideo" Content="删除" Foreground="White" FontSize="{Binding WordSize18}" Background="Transparent" Click="BtnDelVideo_Click" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
- </Border>
- </Grid>
- </Grid>
- </Grid>
- </Grid>
- </Grid>
- </UserControl>
|