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

CreateWin.xaml 12KB

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