星火微课系统客户端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CreateAMicroLessonWindow.xaml 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  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="100*" />
  114. <RowDefinition Height="80*" />
  115. <RowDefinition Height="80*" />
  116. <RowDefinition Height="115*" />
  117. </Grid.RowDefinitions>
  118. <Grid Grid.Row="0">
  119. <Label
  120. Margin="0,42,0,0"
  121. HorizontalAlignment="Left"
  122. VerticalAlignment="Top"
  123. Content="创建"
  124. FontSize="21"
  125. Foreground="#3F6FFF" />
  126. </Grid>
  127. <!-- 讲解名称 -->
  128. <Grid Grid.Row="1">
  129. <StackPanel VerticalAlignment="Center">
  130. <Label
  131. Content="讲解名称:"
  132. FontSize="12"
  133. Foreground="#FF666666" />
  134. <TextBox
  135. x:Name="txbExplainName"
  136. Margin="5,5"
  137. BorderBrush="{x:Null}"
  138. BorderThickness="0"
  139. FontSize="14"
  140. Foreground="#FF999999"
  141. Text="微课1" />
  142. <Label Height="1.5" Background="#3F6FFF" />
  143. </StackPanel>
  144. </Grid>
  145. <!-- 存放路径 -->
  146. <Grid Grid.Row="2">
  147. <StackPanel VerticalAlignment="Center">
  148. <Label
  149. Content="存放路径:"
  150. FontSize="12"
  151. Foreground="#FF666666" />
  152. <Grid>
  153. <Grid.ColumnDefinitions>
  154. <ColumnDefinition Width="150" />
  155. <ColumnDefinition Width="45" />
  156. </Grid.ColumnDefinitions>
  157. <TextBox
  158. x:Name="txbStoragePath"
  159. Grid.Column="0"
  160. Margin="5,5"
  161. BorderBrush="{x:Null}"
  162. BorderThickness="0"
  163. FontSize="14"
  164. Foreground="#FF999999"
  165. Text="D:\" />
  166. <Button
  167. x:Name="btnBrowse"
  168. Grid.Column="1"
  169. Margin="0,5,0,5"
  170. Padding="4"
  171. Background="#F1F2F8"
  172. BorderBrush="#E1E1E1"
  173. BorderThickness="1"
  174. Click="BtnBrowse_Click"
  175. Content="浏览"
  176. Cursor="Hand"
  177. FontSize="12"
  178. Foreground="#333333" />
  179. </Grid>
  180. <Label Height="1.5" Background="#3F6FFF" />
  181. </StackPanel>
  182. <!--<StackPanel Grid.Row="2" Orientation="Horizontal" Margin="30,0,30,1" Grid.ColumnSpan="2">
  183. <Label Content="*" FontSize="18" Padding="0,27,0,0" Foreground="#FF0000"/>
  184. <TextBlock Text="存放路径" FontSize="18" Padding="2,23,10,0"/>
  185. -->
  186. <!-- 输入框 -->
  187. <!--
  188. <Border Background="#CDD6E0" Width="200" Height="43" CornerRadius="3">
  189. <TextBox x:Name="txbStoragePath" Text="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="198" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
  190. </Border>
  191. -->
  192. <!-- 浏览按钮 -->
  193. <!--
  194. <Button Cursor="Hand" x:Name="btnBrowse" FontSize="18" Width="80" Height="43" BorderBrush="#cccccc" BorderThickness="1" Click="BtnBrowse_Click" Content="浏览" Style="{StaticResource Button_Menu}"
  195. Background="#F7F7F7" Margin="11,0,0,0"/>
  196. </StackPanel>-->
  197. </Grid>
  198. <!-- 按钮 -->
  199. <Grid Grid.Row="3">
  200. <Label
  201. x:Name="LblCreate"
  202. HorizontalAlignment="Right"
  203. Content="创建微课中..."
  204. FontSize="12"
  205. Foreground="#FF999999"
  206. Visibility="Hidden" />
  207. <Button
  208. x:Name="BtnStart"
  209. Grid.Row="3"
  210. Grid.ColumnSpan="2"
  211. Width="195"
  212. Height="40"
  213. Margin="0,0,0,30"
  214. HorizontalAlignment="Center"
  215. VerticalAlignment="Center"
  216. HorizontalContentAlignment="Center"
  217. Click="BtnStart_Click"
  218. Content="开始"
  219. Cursor="Hand"
  220. FontSize="18"
  221. FontWeight="Bold"
  222. Foreground="#FFFFFF"
  223. IsDefault="True"
  224. Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
  225. <Button.Template>
  226. <ControlTemplate TargetType="{x:Type Button}">
  227. <Border
  228. BorderBrush="{TemplateBinding Control.BorderBrush}"
  229. BorderThickness="1"
  230. CornerRadius="20">
  231. <Border.Background>#3F6FFF</Border.Background>
  232. <ContentPresenter
  233. HorizontalAlignment="Center"
  234. VerticalAlignment="Center"
  235. Content="{TemplateBinding ContentControl.Content}" />
  236. </Border>
  237. </ControlTemplate>
  238. </Button.Template>
  239. </Button>
  240. </Grid>
  241. </Grid>
  242. </Grid>
  243. </Border>
  244. </Grid>
  245. <Button
  246. x:Name="btnDown"
  247. Grid.Column="1"
  248. Padding="5,0"
  249. HorizontalAlignment="Right"
  250. VerticalAlignment="Top"
  251. Click="BtnDown_Click"
  252. Content="×"
  253. Cursor="Hand"
  254. FontSize="25"
  255. Foreground="#FFFFFF"
  256. Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
  257. </Grid>
  258. <Grid Visibility="Collapsed">
  259. <!-- 分4行 -->
  260. <Grid.RowDefinitions>
  261. <RowDefinition Height="45" />
  262. <RowDefinition Height="110" />
  263. <RowDefinition Height="70" />
  264. <RowDefinition Height="*" />
  265. </Grid.RowDefinitions>
  266. <!-- 第一行 标题 FFE9E9E9 FF2D8CF0 -->
  267. <Grid
  268. x:Name="GridTitle"
  269. Grid.Row="0"
  270. Margin="-1,0"
  271. Background="#FF38ADFF"
  272. MouseLeftButtonDown="Window_MouseLeftButtonDown"
  273. Visibility="Visible">
  274. <TextBlock
  275. Padding="10,13,0,0"
  276. FontSize="16"
  277. Foreground="#FFFFFF"
  278. Text="创建微课" />
  279. <!--<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"/>-->
  280. </Grid>
  281. <Grid
  282. x:Name="GridTitle_Black"
  283. Grid.Row="0"
  284. Margin="0,0"
  285. Background="#FFE9E9E9"
  286. MouseLeftButtonDown="Window_MouseLeftButtonDown"
  287. Visibility="Collapsed">
  288. <TextBlock
  289. Padding="10,13,0,0"
  290. FontSize="16"
  291. Foreground="#FF333333"
  292. Text="创建微课" />
  293. <Button
  294. x:Name="btnDown_Black"
  295. Grid.Row="0"
  296. Padding="10,2,10,0"
  297. HorizontalAlignment="Right"
  298. VerticalAlignment="Top"
  299. Click="BtnDown_Click"
  300. Content="×"
  301. Cursor="Hand"
  302. FontSize="30"
  303. Foreground="#FF333333"
  304. Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
  305. </Grid>
  306. <!-- 第二行 讲解名称 -->
  307. <!-- 第三行 存放路径 -->
  308. </Grid>
  309. </Grid>
  310. </Window>