星火微课系统客户端
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 9.1KB

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