星火微课系统客户端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Uc_VideoItem.xaml 4.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <UserControl x:Class="XHWK.WKTool.UControl.Uc_VideoItem"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:XHWK.WKTool.UControl"
  7. mc:Ignorable="d"
  8. d:DesignHeight="260" d:DesignWidth="250">
  9. <Grid>
  10. <Border Background="#dddddd" Width="202" Height="128" Margin="25,10,25,0" VerticalAlignment="Top">
  11. <Button x:Name="BtnVideoPlay"
  12. Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" HorizontalAlignment="Center" Width="200" Height="130" Margin="1,1,1,1" Cursor="Hand" Click="BtnVideoPlay_Click">
  13. <Image x:Name="ImgVideo" VerticalAlignment="Top" Width="200" Height="130" Margin="0,0,0,0" Cursor="Hand" Stretch="Fill"/>
  14. </Button>
  15. </Border>
  16. <Border Background="#dddddd" VerticalAlignment="Top" Width="60" Height="60" Margin="0,50,0,0" CornerRadius="30" >
  17. <Image x:Name="ImgVideoPlay" Source="/星火微课;component/Images/VideoList_Play.png" HorizontalAlignment="Center" Width="58" Height="58" Margin="1,1,1,1" Cursor="Hand" MouseLeftButtonDown="Image_MouseLeftButtonDown" />
  18. </Border>
  19. <TextBlock x:Name="TbName" Text="一二三四五六七八九十一..." HorizontalAlignment="Center" Margin="15,150,15,0" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="#FF3492F4" FontSize="18" TextAlignment="Center" ToolTip="" Visibility="Visible" MouseLeftButtonDown="TextBlock_MouseLeftButtonDown"/>
  20. <TextBox x:Name="TxtModify" HorizontalAlignment="Left" Height="30" Margin="25,147,0,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="180" FontSize="16" Visibility="Hidden" LostFocus="TxtModify_LostFocus" KeyUp="TxtModify_KeyUp">
  21. <TextBox.Resources>
  22. <Style TargetType="{x:Type Border}">
  23. <Setter Property="CornerRadius" Value="3"/>
  24. <Setter Property="BorderBrush" Value="#3492F4"/>
  25. </Style>
  26. </TextBox.Resources>
  27. </TextBox>
  28. <Button Cursor="Hand" x:Name="BtnNameModifyOK" HorizontalAlignment="Left" Margin="200,147,0,0" VerticalAlignment="Top" Width="30" Height="30" Background="White" BorderBrush="#FFABADB3" Click="BtnNameModifyOK_Click" Visibility="Hidden">
  29. <Button.Resources>
  30. <Style TargetType="{x:Type Border}">
  31. <Setter Property="CornerRadius" Value="3"/>
  32. <Setter Property="BorderBrush" Value="#3492F4"/>
  33. </Style>
  34. </Button.Resources>
  35. <Image Source="/星火微课;component/Images/VideoList_OK.png" Margin="2,12,2,2"></Image>
  36. </Button>
  37. <Label x:Name="lblDateSize" Content="2020-10-10 10:10:00|1000.00MB" HorizontalAlignment="Center" Margin="0,175,0,0" VerticalAlignment="Top" Height="30" Width="240" Foreground="#FF9A9A9A" FontSize="13" HorizontalContentAlignment="Center"/>
  38. <Border x:Name="BorUploadBtn" CornerRadius="3" HorizontalAlignment="Left" Margin="25,210,0,0" VerticalAlignment="Top" Width="90" Height="40" Background="#FF3492F4">
  39. <Button Cursor="Hand" x:Name="BtnUpload" Content="上传" HorizontalAlignment="Left" Width="90" Height="40" Foreground="White" FontSize="18" Click="BtnUpload_Click" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"/>
  40. </Border>
  41. <Border CornerRadius="3" Width="90" Height="40" Background="#FFF0582C" HorizontalAlignment="Right" Margin="0,210,25,0" VerticalAlignment="Top">
  42. <Button Cursor="Hand" x:Name="BtnDelVideo" Content="删除" Width="90" Height="40" Foreground="White" FontSize="18" Background="Transparent" Click="BtnDelVideo_Click" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
  43. </Button>
  44. </Border>
  45. </Grid>
  46. </UserControl>