星火微课系统客户端
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Uc_VideoItem.xaml 7.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="10*"/>
  13. <RowDefinition Height="130*"/>
  14. <RowDefinition Height="110*"/>
  15. <RowDefinition Height="10*"/>
  16. </Grid.RowDefinitions>
  17. <!--视频缩略图-->
  18. <Grid Grid.Row="1">
  19. <Grid.ColumnDefinitions>
  20. <ColumnDefinition Width="20*"/>
  21. <ColumnDefinition Width="210*"/>
  22. <ColumnDefinition Width="20*"/>
  23. </Grid.ColumnDefinitions>
  24. <Grid Grid.Column="1">
  25. <Border Background="#dddddd">
  26. <Button x:Name="BtnVideoPlay" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" HorizontalAlignment="Stretch" Cursor="Hand" Click="BtnVideoPlay_Click" VerticalAlignment="Stretch">
  27. <Image x:Name="ImgVideo" Cursor="Hand" Stretch="Fill"/>
  28. </Button>
  29. </Border>
  30. <Grid>
  31. <Grid.ColumnDefinitions>
  32. <ColumnDefinition Width="75*"/>
  33. <ColumnDefinition Width="60*"/>
  34. <ColumnDefinition Width="75*"/>
  35. </Grid.ColumnDefinitions>
  36. <Grid.RowDefinitions>
  37. <RowDefinition Height="35*"/>
  38. <RowDefinition Height="60*"/>
  39. <RowDefinition Height="35*"/>
  40. </Grid.RowDefinitions>
  41. <Grid Grid.Row="0" Grid.Column="2">
  42. <Button Cursor="Hand" x:Name="btnSetUp" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" HorizontalAlignment="Right" VerticalAlignment="Top" Click="Button_Click">
  43. <Image x:Name="ImgSetUp" Source="/Images/Clip_Clip.png" Visibility="Visible"/>
  44. </Button>
  45. </Grid>
  46. <Grid Grid.Row="1" Grid.Column="1">
  47. <Border Background="#7FDDDDDD" CornerRadius="30">
  48. <Image x:Name="ImgVideoPlay" Source="/星火微课;component/Images/VideoList_Play.png" Cursor="Hand" MouseLeftButtonDown="Image_MouseLeftButtonDown" />
  49. </Border>
  50. </Grid>
  51. </Grid>
  52. </Grid>
  53. </Grid>
  54. <!--信息-->
  55. <Grid Grid.Row="2">
  56. <Grid.RowDefinitions>
  57. <RowDefinition Height="5*"></RowDefinition>
  58. <RowDefinition Height="30*"></RowDefinition>
  59. <RowDefinition Height="5*"></RowDefinition>
  60. <RowDefinition Height="30*"></RowDefinition>
  61. <RowDefinition Height="40*"></RowDefinition>
  62. </Grid.RowDefinitions>
  63. <!--名-->
  64. <Grid Grid.Row="1">
  65. <TextBlock x:Name="TbName" Text="一二三四五六七八九十一..." TextWrapping="Wrap" Foreground="#FF3492F4" FontSize="{Binding WordSize18}" TextAlignment="Center" ToolTip="" Visibility="Visible" MouseLeftButtonDown="TextBlock_MouseLeftButtonDown"/>
  66. <Grid x:Name="GridModify" Visibility="Hidden">
  67. <Grid.ColumnDefinitions>
  68. <ColumnDefinition Width="15*"/>
  69. <ColumnDefinition Width="190*"/>
  70. <ColumnDefinition Width="30*"/>
  71. <ColumnDefinition Width="15*"/>
  72. </Grid.ColumnDefinitions>
  73. <Grid Grid.Column="1">
  74. <TextBox x:Name="TxtModify" TextWrapping="Wrap" Text="TextBox" FontSize="{Binding WordSize16}" LostFocus="TxtModify_LostFocus" KeyUp="TxtModify_KeyUp">
  75. <TextBox.Resources>
  76. <Style TargetType="{x:Type Border}">
  77. <Setter Property="CornerRadius" Value="3"/>
  78. <Setter Property="BorderBrush" Value="#3492F4"/>
  79. </Style>
  80. </TextBox.Resources>
  81. </TextBox>
  82. </Grid>
  83. <Grid Grid.Column="2">
  84. <Button Cursor="Hand" x:Name="BtnNameModifyOK" Background="White" BorderBrush="#FFABADB3" Click="BtnNameModifyOK_Click">
  85. <Button.Resources>
  86. <Style TargetType="{x:Type Border}">
  87. <Setter Property="CornerRadius" Value="3"/>
  88. <Setter Property="BorderBrush" Value="#3492F4"/>
  89. </Style>
  90. </Button.Resources>
  91. <Image Source="/星火微课;component/Images/VideoList_OK.png"></Image>
  92. </Button>
  93. </Grid>
  94. </Grid>
  95. </Grid>
  96. <!--信息-->
  97. <Grid Grid.Row="3">
  98. <Label x:Name="lblDateSize" Content="2020-10-10 10:10:00|1000.00MB" Foreground="#FF9A9A9A" FontSize="{Binding WordSize12}" HorizontalContentAlignment="Center"/>
  99. </Grid>
  100. <!--按钮-->
  101. <Grid Grid.Row="4">
  102. <Grid.ColumnDefinitions>
  103. <ColumnDefinition Width="20*"></ColumnDefinition>
  104. <ColumnDefinition Width="100*"></ColumnDefinition>
  105. <ColumnDefinition Width="10*"></ColumnDefinition>
  106. <ColumnDefinition Width="100*"></ColumnDefinition>
  107. <ColumnDefinition Width="20*"></ColumnDefinition>
  108. </Grid.ColumnDefinitions>
  109. <Grid Grid.Column="1">
  110. <Border x:Name="BorUploadBtn" CornerRadius="6" Background="#FF3492F4">
  111. <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"/>
  112. </Border>
  113. </Grid>
  114. <Grid Grid.Column="3">
  115. <Border CornerRadius="6" Background="#FFC3C3C3">
  116. <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"/>
  117. </Border>
  118. </Grid>
  119. </Grid>
  120. </Grid>
  121. </Grid>
  122. </Grid>
  123. </UserControl>