星火微课系统客户端
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

CreateAMicroLessonWindow.xaml 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. <Window
  2. x:Class="XHWK.WKTool.CreateAMicroLessonWindow"
  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. Title="星火微课"
  8. Width="800"
  9. Height="450"
  10. Closed="Window_Closed"
  11. Loaded="Window_Loaded"
  12. Style="{StaticResource ZWinStyle}"
  13. WindowStartupLocation="CenterScreen"
  14. WindowStyle="SingleBorderWindow"
  15. mc:Ignorable="d">
  16. <Window.Resources />
  17. <Grid>
  18. <Grid Background="#FF4B95FF" MouseLeftButtonDown="Window_MouseLeftButtonDown">
  19. <Grid.ColumnDefinitions>
  20. <ColumnDefinition Width="520*" />
  21. <ColumnDefinition Width="280*" />
  22. </Grid.ColumnDefinitions>
  23. <!-- 轮播图 -->
  24. <Grid Grid.Column="0">
  25. <Grid.RowDefinitions>
  26. <RowDefinition Height="28*" />
  27. <RowDefinition Height="380*" />
  28. <RowDefinition Height="28*" />
  29. </Grid.RowDefinitions>
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition Width="15*" />
  32. <ColumnDefinition Width="481*" />
  33. <ColumnDefinition Width="15*" />
  34. </Grid.ColumnDefinitions>
  35. <!--<MediaElement Grid.Row="1" Grid.Column="1" Source="/SkinImages/ImgCarousel/CM_Carousel.gif" Width="500" Height="389" HorizontalAlignment="Center" VerticalAlignment="Center">
  36. -->
  37. <!--<MediaElement.Effect>
  38. <DropShadowEffect Color="#FFD3D3D3" Direction="-50" ShadowDepth="4" Opacity="0.9" />
  39. </MediaElement.Effect>-->
  40. <!--
  41. </MediaElement >-->
  42. <Grid
  43. Grid.Row="1"
  44. Grid.Column="1"
  45. ClipToBounds="True">
  46. <StackPanel
  47. x:Name="SplCarouse"
  48. Margin="0"
  49. HorizontalAlignment="Left"
  50. Orientation="Horizontal">
  51. <Image x:Name="ImgCarouse1" Source="/SkinImages/ImgCarousel/CM_Carousel_1.png" />
  52. <Image Source="/SkinImages/ImgCarousel/CM_Carousel_2.png" />
  53. <Image Source="/SkinImages/ImgCarousel/CM_Carousel_3.png" />
  54. <Image Source="/SkinImages/ImgCarousel/CM_Carousel_1.png" />
  55. </StackPanel>
  56. </Grid>
  57. <Grid
  58. Grid.Row="1"
  59. Grid.Column="0"
  60. Background="#FF4B95FF" />
  61. <Grid
  62. Grid.Row="1"
  63. Grid.Column="2"
  64. Background="#FF4B95FF" />
  65. </Grid>
  66. <!-- 创建 -->
  67. <Grid Grid.Column="1">
  68. <Border
  69. Margin="10,31,30,30"
  70. Background="White"
  71. CornerRadius="15">
  72. <Grid>
  73. <Image
  74. Width="65"
  75. HorizontalAlignment="Right"
  76. VerticalAlignment="Top"
  77. Source="/SkinImages/ImgCarousel/CM_RightDown.png" />
  78. <!-- 创建内页 375 -->
  79. <Grid Margin="20,0">
  80. <Grid.RowDefinitions>
  81. <RowDefinition Height="80" />
  82. <RowDefinition Height="80*" />
  83. <RowDefinition Height="80*" />
  84. <RowDefinition Height="80" />
  85. <RowDefinition Height="30" />
  86. </Grid.RowDefinitions>
  87. <Grid Grid.Row="0">
  88. <Label
  89. Margin="0,42,0,0"
  90. HorizontalAlignment="Left"
  91. VerticalAlignment="Top"
  92. Content="创建"
  93. FontSize="21"
  94. Foreground="#3F6FFF" />
  95. </Grid>
  96. <!-- 讲解名称 -->
  97. <Grid Grid.Row="1">
  98. <StackPanel VerticalAlignment="Center">
  99. <Label
  100. Content="讲解名称:"
  101. FontSize="12"
  102. Foreground="#FF666666" />
  103. <TextBox
  104. x:Name="txbExplainName"
  105. Margin="5,5"
  106. BorderBrush="{x:Null}"
  107. BorderThickness="0"
  108. FontSize="14"
  109. Foreground="#FF999999"
  110. Text="微课1" />
  111. <Label Height="1.5" Background="#3F6FFF" />
  112. </StackPanel>
  113. </Grid>
  114. <!-- 存放路径 -->
  115. <Grid Grid.Row="2">
  116. <StackPanel VerticalAlignment="Center">
  117. <Label
  118. Content="存放路径:"
  119. FontSize="12"
  120. Foreground="#FF666666" />
  121. <Grid>
  122. <Grid.ColumnDefinitions>
  123. <ColumnDefinition Width="150" />
  124. <ColumnDefinition Width="45" />
  125. </Grid.ColumnDefinitions>
  126. <TextBox
  127. x:Name="txbStoragePath"
  128. Grid.Column="0"
  129. Margin="5,5"
  130. BorderBrush="{x:Null}"
  131. BorderThickness="0"
  132. FontSize="14"
  133. Foreground="#FF999999"
  134. Text="D:\" />
  135. <Button
  136. x:Name="btnBrowse"
  137. Grid.Column="1"
  138. Margin="0,5,0,5"
  139. Padding="4"
  140. Background="#F1F2F8"
  141. BorderBrush="#E1E1E1"
  142. BorderThickness="1"
  143. Click="BtnBrowse_Click"
  144. Content="浏览"
  145. Cursor="Hand"
  146. FontSize="12"
  147. Foreground="#333333" />
  148. </Grid>
  149. <Label Height="1.5" Background="#3F6FFF" />
  150. </StackPanel>
  151. </Grid>
  152. <!-- 按钮 -->
  153. <Grid Grid.Row="3">
  154. <Label
  155. x:Name="LblCreate"
  156. HorizontalAlignment="Right"
  157. Content="创建微课中..."
  158. FontSize="12"
  159. Foreground="#FF999999"
  160. Visibility="Hidden" />
  161. <Button
  162. x:Name="BtnStart"
  163. Grid.Row="3"
  164. Grid.ColumnSpan="2"
  165. Width="195"
  166. Height="40"
  167. Margin="0,0,0,0"
  168. HorizontalAlignment="Center"
  169. VerticalAlignment="Center"
  170. HorizontalContentAlignment="Center"
  171. Click="BtnStart_Click"
  172. Content="开始"
  173. Cursor="Hand"
  174. FontSize="18"
  175. FontWeight="Bold"
  176. Foreground="#FFFFFF"
  177. IsDefault="True">
  178. <Button.Template>
  179. <ControlTemplate TargetType="{x:Type Button}">
  180. <Border
  181. BorderBrush="{TemplateBinding Control.BorderBrush}"
  182. BorderThickness="1"
  183. CornerRadius="20">
  184. <Border.Background>#3F6FFF</Border.Background>
  185. <ContentPresenter
  186. HorizontalAlignment="Center"
  187. VerticalAlignment="Center"
  188. Content="{TemplateBinding ContentControl.Content}" />
  189. </Border>
  190. </ControlTemplate>
  191. </Button.Template>
  192. </Button>
  193. </Grid>
  194. <Grid Grid.Row="4">
  195. <Label
  196. Name="versionLabel"
  197. HorizontalAlignment="Center"
  198. Content="版本号:"
  199. Foreground="#666666" />
  200. </Grid>
  201. </Grid>
  202. </Grid>
  203. </Border>
  204. </Grid>
  205. <Button
  206. x:Name="btnDown"
  207. Grid.Column="1"
  208. Padding="5,0"
  209. HorizontalAlignment="Right"
  210. VerticalAlignment="Top"
  211. Click="BtnDown_Click"
  212. Content="×"
  213. Cursor="Hand"
  214. FontSize="25"
  215. Foreground="#FFFFFF" />
  216. </Grid>
  217. <Grid Visibility="Collapsed">
  218. <!-- 分4行 -->
  219. <Grid.RowDefinitions>
  220. <RowDefinition Height="45" />
  221. <RowDefinition Height="110" />
  222. <RowDefinition Height="70" />
  223. <RowDefinition Height="*" />
  224. </Grid.RowDefinitions>
  225. <!-- 第一行 标题 FFE9E9E9 FF2D8CF0 -->
  226. <Grid
  227. x:Name="GridTitle"
  228. Grid.Row="0"
  229. Margin="-1,0"
  230. Background="#FF38ADFF"
  231. MouseLeftButtonDown="Window_MouseLeftButtonDown"
  232. Visibility="Visible">
  233. <TextBlock
  234. Padding="10,13,0,0"
  235. FontSize="16"
  236. Foreground="#FFFFFF"
  237. Text="创建微课" />
  238. <!--<Button Cursor="Hand" Grid.Row="0" x:Name="btnDown" Content="×" VerticalAlignment="Top" Foreground="#FFFFFF" FontSize="30" Padding="10,2,10,0" HorizontalAlignment="Right" Click="BtnDown_Click" />-->
  239. </Grid>
  240. <Grid
  241. x:Name="GridTitle_Black"
  242. Grid.Row="0"
  243. Margin="0,0"
  244. Background="#FFE9E9E9"
  245. MouseLeftButtonDown="Window_MouseLeftButtonDown"
  246. Visibility="Collapsed">
  247. <TextBlock
  248. Padding="10,13,0,0"
  249. FontSize="16"
  250. Foreground="#FF333333"
  251. Text="创建微课" />
  252. <Button
  253. x:Name="btnDown_Black"
  254. Grid.Row="0"
  255. Padding="10,2,10,0"
  256. HorizontalAlignment="Right"
  257. VerticalAlignment="Top"
  258. Click="BtnDown_Click"
  259. Content="×"
  260. Cursor="Hand"
  261. FontSize="30"
  262. Foreground="#FF333333" />
  263. </Grid>
  264. <!-- 第二行 讲解名称 -->
  265. <!-- 第三行 存放路径 -->
  266. </Grid>
  267. </Grid>
  268. </Window>