星火微课系统客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Uc_VideoItem.xaml 9.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <UserControl
  2. x:Class="XHWK.WKTool.UControl.Uc_VideoItem"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:XHWK.WKTool.UControl"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. Width="250"
  9. Height="260"
  10. mc:Ignorable="d">
  11. <Grid>
  12. <Grid>
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="10" />
  15. <RowDefinition Height="130" />
  16. <RowDefinition Height="110" />
  17. <RowDefinition Height="10" />
  18. </Grid.RowDefinitions>
  19. <!-- 视频缩略图 -->
  20. <Grid Grid.Row="1">
  21. <Grid.ColumnDefinitions>
  22. <ColumnDefinition Width="20" />
  23. <ColumnDefinition Width="210" />
  24. <ColumnDefinition Width="20" />
  25. </Grid.ColumnDefinitions>
  26. <Grid Grid.Column="1">
  27. <Border Background="#eeeeee">
  28. <Button
  29. x:Name="BtnVideoPlay"
  30. HorizontalAlignment="Stretch"
  31. VerticalAlignment="Stretch"
  32. Click="BtnVideoPlay_Click"
  33. Cursor="Hand"
  34. Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
  35. <Image
  36. x:Name="ImgVideo"
  37. Cursor="Hand"
  38. Stretch="Fill" />
  39. </Button>
  40. </Border>
  41. <Grid>
  42. <Grid.ColumnDefinitions>
  43. <ColumnDefinition Width="75*" />
  44. <ColumnDefinition Width="60*" />
  45. <ColumnDefinition Width="75*" />
  46. </Grid.ColumnDefinitions>
  47. <Grid.RowDefinitions>
  48. <RowDefinition Height="40*" />
  49. <RowDefinition Height="60*" />
  50. <RowDefinition Height="40*" />
  51. </Grid.RowDefinitions>
  52. <Grid
  53. Grid.Row="0"
  54. Grid.Column="2"
  55. Visibility="Hidden">
  56. <Button
  57. x:Name="btnSetUp"
  58. Margin="0,0,4,0"
  59. HorizontalAlignment="Right"
  60. VerticalAlignment="Center"
  61. Click="Button_Click"
  62. Cursor="Hand"
  63. Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
  64. <Image
  65. x:Name="ImgSetUp"
  66. Source="/Images/Clip_Clip.png"
  67. Visibility="Visible" />
  68. </Button>
  69. </Grid>
  70. <Grid Grid.Row="1" Grid.Column="1">
  71. <Border Background="#7FDDDDDD" CornerRadius="30">
  72. <Image
  73. x:Name="ImgVideoPlay"
  74. Cursor="Hand"
  75. MouseLeftButtonDown="Image_MouseLeftButtonDown"
  76. Source="/星火微课;component/Images/VideoList_Play.png" />
  77. </Border>
  78. </Grid>
  79. </Grid>
  80. </Grid>
  81. </Grid>
  82. <!-- 信息 -->
  83. <Grid Grid.Row="2">
  84. <Grid.RowDefinitions>
  85. <RowDefinition Height="5*" />
  86. <RowDefinition Height="30" />
  87. <RowDefinition Height="5*" />
  88. <RowDefinition Height="26" />
  89. <RowDefinition Height="36*" />
  90. </Grid.RowDefinitions>
  91. <!-- 名 -->
  92. <Grid Grid.Row="1">
  93. <TextBlock
  94. x:Name="TbName"
  95. VerticalAlignment="Center"
  96. FontSize="{Binding WordSize18}"
  97. Foreground="#3f6fff"
  98. MouseLeftButtonDown="TextBlock_MouseLeftButtonDown"
  99. Text="一二三四五六七八九十一..."
  100. TextAlignment="Center"
  101. TextWrapping="Wrap"
  102. ToolTip=""
  103. Visibility="Visible" />
  104. <Grid x:Name="GridModify" Visibility="Hidden">
  105. <Grid.ColumnDefinitions>
  106. <ColumnDefinition Width="15*" />
  107. <ColumnDefinition Width="190*" />
  108. <ColumnDefinition Width="30*" />
  109. <ColumnDefinition Width="15*" />
  110. </Grid.ColumnDefinitions>
  111. <Grid Grid.Column="1">
  112. <TextBox
  113. x:Name="TxtModify"
  114. FontSize="{Binding WordSize16}"
  115. KeyUp="TxtModify_KeyUp"
  116. LostFocus="TxtModify_LostFocus"
  117. Text="TextBox"
  118. TextWrapping="Wrap">
  119. <TextBox.Resources>
  120. <Style TargetType="{x:Type Border}">
  121. <Setter Property="CornerRadius" Value="3" />
  122. <Setter Property="BorderBrush" Value="#3492F4" />
  123. </Style>
  124. </TextBox.Resources>
  125. </TextBox>
  126. </Grid>
  127. <Grid Grid.Column="2">
  128. <Button
  129. x:Name="BtnNameModifyOK"
  130. Background="White"
  131. BorderBrush="#FFABADB3"
  132. Click="BtnNameModifyOK_Click"
  133. Cursor="Hand">
  134. <Button.Resources>
  135. <Style TargetType="{x:Type Border}">
  136. <Setter Property="CornerRadius" Value="3" />
  137. <Setter Property="BorderBrush" Value="#3492F4" />
  138. </Style>
  139. </Button.Resources>
  140. <Image Source="/星火微课;component/Images/VideoList_OK.png" />
  141. </Button>
  142. </Grid>
  143. </Grid>
  144. </Grid>
  145. <!-- 信息 -->
  146. <Grid Grid.Row="3">
  147. <Label
  148. x:Name="lblDateSize"
  149. HorizontalContentAlignment="Center"
  150. Content="2020-10-10 10:10:00|1000.00MB"
  151. FontSize="12"
  152. Foreground="#FF9A9A9A" />
  153. </Grid>
  154. <!-- 按钮 -->
  155. <Grid Grid.Row="4">
  156. <Grid.ColumnDefinitions>
  157. <ColumnDefinition Width="20*" />
  158. <ColumnDefinition Width="64*" />
  159. <ColumnDefinition Width="10*" />
  160. <ColumnDefinition Width="64*" />
  161. <ColumnDefinition Width="20*" />
  162. </Grid.ColumnDefinitions>
  163. <Grid Grid.Column="1">
  164. <Border x:Name="BorUploadBtn">
  165. <Button
  166. x:Name="BtnUpload"
  167. Width="76"
  168. Height="30"
  169. HorizontalAlignment="Stretch"
  170. VerticalAlignment="Stretch"
  171. Background="#3f6fff"
  172. Click="BtnUpload_Click"
  173. Content="上传"
  174. Cursor="Hand"
  175. FontSize="14"
  176. Foreground="White" />
  177. </Border>
  178. </Grid>
  179. <Grid Grid.Column="3">
  180. <Border>
  181. <Button
  182. x:Name="BtnDelVideo"
  183. Width="76"
  184. Height="30"
  185. HorizontalAlignment="Stretch"
  186. VerticalAlignment="Stretch"
  187. Background="#f85e5e"
  188. Click="BtnDelVideo_Click"
  189. Content="删除"
  190. Cursor="Hand"
  191. FontSize="14"
  192. Foreground="White" />
  193. </Border>
  194. </Grid>
  195. </Grid>
  196. </Grid>
  197. </Grid>
  198. </Grid>
  199. </UserControl>