星火微课系统客户端
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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. d:DesignHeight="260"
  9. d:DesignWidth="250"
  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 Grid.Row="0" Grid.Column="2">
  53. <Button
  54. x:Name="btnSetUp"
  55. Margin="0,0,4,0"
  56. HorizontalAlignment="Right"
  57. VerticalAlignment="Center"
  58. Click="Button_Click"
  59. Cursor="Hand"
  60. Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
  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="30*" />
  86. <RowDefinition Height="40*" />
  87. </Grid.RowDefinitions>
  88. <!-- 名 -->
  89. <Grid Grid.Row="1">
  90. <TextBlock
  91. x:Name="TbName"
  92. FontSize="{Binding WordSize18}"
  93. Foreground="#FF3492F4"
  94. MouseLeftButtonDown="TextBlock_MouseLeftButtonDown"
  95. Text="一二三四五六七八九十一..."
  96. TextAlignment="Center"
  97. TextWrapping="Wrap"
  98. ToolTip=""
  99. Visibility="Visible" />
  100. <Grid x:Name="GridModify" Visibility="Hidden">
  101. <Grid.ColumnDefinitions>
  102. <ColumnDefinition Width="15*" />
  103. <ColumnDefinition Width="190*" />
  104. <ColumnDefinition Width="30*" />
  105. <ColumnDefinition Width="15*" />
  106. </Grid.ColumnDefinitions>
  107. <Grid Grid.Column="1">
  108. <TextBox
  109. x:Name="TxtModify"
  110. FontSize="{Binding WordSize16}"
  111. KeyUp="TxtModify_KeyUp"
  112. LostFocus="TxtModify_LostFocus"
  113. Text="TextBox"
  114. TextWrapping="Wrap">
  115. <TextBox.Resources>
  116. <Style TargetType="{x:Type Border}">
  117. <Setter Property="CornerRadius" Value="3" />
  118. <Setter Property="BorderBrush" Value="#3492F4" />
  119. </Style>
  120. </TextBox.Resources>
  121. </TextBox>
  122. </Grid>
  123. <Grid Grid.Column="2">
  124. <Button
  125. x:Name="BtnNameModifyOK"
  126. Background="White"
  127. BorderBrush="#FFABADB3"
  128. Click="BtnNameModifyOK_Click"
  129. Cursor="Hand">
  130. <Button.Resources>
  131. <Style TargetType="{x:Type Border}">
  132. <Setter Property="CornerRadius" Value="3" />
  133. <Setter Property="BorderBrush" Value="#3492F4" />
  134. </Style>
  135. </Button.Resources>
  136. <Image Source="/星火微课;component/Images/VideoList_OK.png" />
  137. </Button>
  138. </Grid>
  139. </Grid>
  140. </Grid>
  141. <!-- 信息 -->
  142. <Grid Grid.Row="3">
  143. <Label
  144. x:Name="lblDateSize"
  145. HorizontalContentAlignment="Center"
  146. Content="2020-10-10 10:10:00|1000.00MB"
  147. FontSize="{Binding WordSize12}"
  148. Foreground="#FF9A9A9A" />
  149. </Grid>
  150. <!-- 按钮 -->
  151. <Grid Grid.Row="4">
  152. <Grid.ColumnDefinitions>
  153. <ColumnDefinition Width="20*" />
  154. <ColumnDefinition Width="100*" />
  155. <ColumnDefinition Width="10*" />
  156. <ColumnDefinition Width="100*" />
  157. <ColumnDefinition Width="20*" />
  158. </Grid.ColumnDefinitions>
  159. <Grid Grid.Column="1">
  160. <Border
  161. x:Name="BorUploadBtn"
  162. Background="#FF3492F4"
  163. CornerRadius="6">
  164. <Button
  165. x:Name="BtnUpload"
  166. HorizontalAlignment="Stretch"
  167. VerticalAlignment="Stretch"
  168. Click="BtnUpload_Click"
  169. Content="上传"
  170. Cursor="Hand"
  171. FontSize="{Binding WordSize18}"
  172. Foreground="White"
  173. Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
  174. </Border>
  175. </Grid>
  176. <Grid Grid.Column="3">
  177. <Border Background="#FFC3C3C3" CornerRadius="6">
  178. <Button
  179. x:Name="BtnDelVideo"
  180. HorizontalAlignment="Stretch"
  181. VerticalAlignment="Stretch"
  182. Background="Transparent"
  183. Click="BtnDelVideo_Click"
  184. Content="删除"
  185. Cursor="Hand"
  186. FontSize="{Binding WordSize18}"
  187. Foreground="White"
  188. Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
  189. </Border>
  190. </Grid>
  191. </Grid>
  192. </Grid>
  193. </Grid>
  194. </Grid>
  195. </UserControl>