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

CreateAMicroLessonWindow.xaml 14KB

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