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

CreateAMicroLessonWindow.xaml 15KB

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