星火微课系统客户端
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

CreateAMicroLessonWindow.xaml 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <Window x:Class="XHWK.WKTool.CreateAMicroLessonWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:XHWK.WKTool"
  7. mc:Ignorable="d"
  8. Title="星火微课" Height="450" Width="800" AllowsTransparency="True"
  9. WindowStartupLocation="CenterScreen"
  10. WindowStyle="None" Loaded="Window_Loaded" Margin="0" BorderThickness="7">
  11. <Window.Effect>
  12. <DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
  13. </Window.Effect>
  14. <Window.Resources>
  15. <Style x:Key="Button_Menu" TargetType="{x:Type Button}">
  16. <Setter Property="Width" Value="auto" />
  17. <Setter Property="Height" Value="auto" />
  18. <Setter Property="BorderThickness" Value="0" />
  19. <Setter Property="Foreground" Value="Black"/>
  20. <Setter Property="Template">
  21. <Setter.Value>
  22. <ControlTemplate TargetType="{x:Type Button}">
  23. <Border Background="#c3c3c3">
  24. <Border x:Name="MyBackgroundElement" Background="#F7F7F7" BorderBrush="{DynamicResource ForgroundBrush}" BorderThickness="1">
  25. <ContentPresenter x:Name="ButtonContentPresenter" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  26. </Border>
  27. </Border>
  28. <ControlTemplate.Triggers>
  29. <Trigger Property="IsMouseOver" Value="True">
  30. <Setter TargetName="MyBackgroundElement" Property="Background" Value="#EDF5FF"/>
  31. <Setter TargetName="MyBackgroundElement" Property="Opacity" Value="1"/>
  32. </Trigger>
  33. </ControlTemplate.Triggers>
  34. </ControlTemplate>
  35. </Setter.Value>
  36. </Setter>
  37. </Style>
  38. </Window.Resources>
  39. <Grid>
  40. <Grid Background="#FF4B95FF" MouseLeftButtonDown="Window_MouseLeftButtonDown">
  41. <Grid.ColumnDefinitions>
  42. <ColumnDefinition Width="520*"/>
  43. <ColumnDefinition Width="280*"/>
  44. </Grid.ColumnDefinitions>
  45. <!--轮播图-->
  46. <Grid Grid.Column="0">
  47. <Grid.RowDefinitions>
  48. <RowDefinition Height="28*"/>
  49. <RowDefinition Height="380*"/>
  50. <RowDefinition Height="28*"/>
  51. </Grid.RowDefinitions>
  52. <Grid.ColumnDefinitions>
  53. <ColumnDefinition Width="15*"/>
  54. <ColumnDefinition Width="481*"/>
  55. <ColumnDefinition Width="15*"/>
  56. </Grid.ColumnDefinitions>
  57. <!--<MediaElement Grid.Row="1" Grid.Column="1" Source="/SkinImages/ImgCarousel/CM_Carousel.gif" Width="500" Height="389" HorizontalAlignment="Center" VerticalAlignment="Center">
  58. --><!--<MediaElement.Effect>
  59. <DropShadowEffect Color="#FFD3D3D3" Direction="-50" ShadowDepth="4" Opacity="0.9" />
  60. </MediaElement.Effect>--><!--
  61. </MediaElement >-->
  62. <Grid Grid.Row="1" Grid.Column="1" ClipToBounds="True">
  63. <StackPanel x:Name="SplCarouse" Orientation="Horizontal" HorizontalAlignment="Left" Margin="0" >
  64. <Image x:Name="ImgCarouse1" Source="/SkinImages/ImgCarousel/CM_Carousel_1.png"/>
  65. <Image Source="/SkinImages/ImgCarousel/CM_Carousel_2.png"/>
  66. <Image Source="/SkinImages/ImgCarousel/CM_Carousel_3.png"/>
  67. <Image Source="/SkinImages/ImgCarousel/CM_Carousel_1.png"/>
  68. </StackPanel>
  69. </Grid>
  70. <Grid Grid.Row="1" Grid.Column="0" Background="#FF4B95FF"></Grid>
  71. <Grid Grid.Row="1" Grid.Column="2" Background="#FF4B95FF"></Grid>
  72. </Grid>
  73. <!--创建-->
  74. <Grid Grid.Column="1">
  75. <Border Background="White" Margin="10,31,30,30" CornerRadius="15" >
  76. <Grid>
  77. <Image Source="/SkinImages/ImgCarousel/CM_RightDown.png" HorizontalAlignment="Right" VerticalAlignment="Top" Width="65" />
  78. <!--创建内页 375-->
  79. <Grid Margin="20,0">
  80. <Grid.RowDefinitions>
  81. <RowDefinition Height="100*"/>
  82. <RowDefinition Height="80*"/>
  83. <RowDefinition Height="80*"/>
  84. <RowDefinition Height="115*"/>
  85. </Grid.RowDefinitions>
  86. <Grid Grid.Row="0">
  87. <Label Content="创建" FontSize="21" Foreground="#FF4B62EA" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0,42,0,0"/>
  88. </Grid>
  89. <!--讲解名称-->
  90. <Grid Grid.Row="1">
  91. <StackPanel VerticalAlignment="Center">
  92. <Label Content="讲解名称:" FontSize="12" Foreground="#FF666666"/>
  93. <TextBox x:Name="txbExplainName" Text="微课1" FontSize="14" Foreground="#FF999999" BorderBrush="{x:Null}" BorderThickness="0" Margin="5,5"/>
  94. <Label Background="#FF317EEC" Height="1.5"/>
  95. </StackPanel>
  96. </Grid>
  97. <!--存放路径-->
  98. <Grid Grid.Row="2">
  99. <StackPanel VerticalAlignment="Center">
  100. <Label Content="存放路径:" FontSize="12" Foreground="#FF666666"/>
  101. <Grid>
  102. <Grid.ColumnDefinitions>
  103. <ColumnDefinition Width="150"/>
  104. <ColumnDefinition Width="45"/>
  105. </Grid.ColumnDefinitions>
  106. <TextBox Grid.Column="0" x:Name="txbStoragePath" Text="D:\" FontSize="14" Foreground="#FF999999" BorderBrush="{x:Null}" BorderThickness="0" Margin="5,5"/>
  107. <Button Grid.Column="1" Cursor="Hand" x:Name="btnBrowse" FontSize="14" BorderBrush="#cccccc" BorderThickness="1" Click="BtnBrowse_Click" Content="浏览" Style="{StaticResource Button_Menu}" Background="#F7F7F7" Margin="0,5,0,0"/>
  108. </Grid>
  109. <Label Background="#FF317EEC" Height="1.5"/>
  110. </StackPanel>
  111. <!--<StackPanel Grid.Row="2" Orientation="Horizontal" Margin="30,0,30,1" Grid.ColumnSpan="2">
  112. <Label Content="*" FontSize="18" Padding="0,27,0,0" Foreground="#FF0000"/>
  113. <TextBlock Text="存放路径" FontSize="18" Padding="2,23,10,0"/>
  114. -->
  115. <!--输入框-->
  116. <!--
  117. <Border Background="#CDD6E0" Width="200" Height="43" CornerRadius="3">
  118. <TextBox x:Name="txbStoragePath" Text="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="198" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
  119. </Border>
  120. -->
  121. <!--浏览按钮-->
  122. <!--
  123. <Button Cursor="Hand" x:Name="btnBrowse" FontSize="18" Width="80" Height="43" BorderBrush="#cccccc" BorderThickness="1" Click="BtnBrowse_Click" Content="浏览" Style="{StaticResource Button_Menu}"
  124. Background="#F7F7F7" Margin="11,0,0,0"/>
  125. </StackPanel>-->
  126. </Grid>
  127. <!--按钮-->
  128. <Grid Grid.Row="3">
  129. <Label x:Name="LblCreate" Content="创建微课中..." FontSize="12" Foreground="#FF999999" HorizontalAlignment="Right" Visibility="Hidden"/>
  130. <Button Cursor="Hand" Grid.Row="3" x:Name="BtnStart" IsDefault="True" Content="开始" FontSize="18" FontWeight="Bold" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Margin="0,0,0,30" Click="BtnStart_Click" Grid.ColumnSpan="2" Width="195" HorizontalAlignment="Center" VerticalAlignment="Center" HorizontalContentAlignment="Center" Height="33">
  131. <Button.Template>
  132. <ControlTemplate TargetType="{x:Type Button}">
  133. <Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="20">
  134. <Border.Background>#FF1D64DA</Border.Background>
  135. <ContentPresenter
  136. HorizontalAlignment="Center"
  137. VerticalAlignment="Center"
  138. Content="{TemplateBinding ContentControl.Content}" />
  139. </Border>
  140. </ControlTemplate>
  141. </Button.Template>
  142. </Button>
  143. </Grid>
  144. </Grid>
  145. </Grid>
  146. </Border>
  147. </Grid>
  148. <Button Grid.Column="1" Cursor="Hand" x:Name="btnDown" Content="×" VerticalAlignment="Top" Foreground="#FFFFFF" FontSize="25" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click" Padding="5,0"/>
  149. </Grid>
  150. <Grid Visibility="Collapsed">
  151. <!--分4行-->
  152. <Grid.RowDefinitions>
  153. <RowDefinition Height="45"/>
  154. <RowDefinition Height="110"/>
  155. <RowDefinition Height="70"/>
  156. <RowDefinition Height="*"/>
  157. </Grid.RowDefinitions>
  158. <!--第一行 标题 FFE9E9E9 FF2D8CF0-->
  159. <Grid x:Name="GridTitle" Visibility="Visible" Margin="-1,0" Grid.Row="0" Background="#FF38ADFF" MouseLeftButtonDown="Window_MouseLeftButtonDown">
  160. <TextBlock Text="创建微课" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
  161. <!--<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"/>-->
  162. </Grid>
  163. <Grid x:Name="GridTitle_Black" Visibility="Collapsed" Margin="0,0" Grid.Row="0" Background="#FFE9E9E9" MouseLeftButtonDown="Window_MouseLeftButtonDown">
  164. <TextBlock Text="创建微课" Foreground="#FF333333" FontSize="16" Padding="10,13,0,0"/>
  165. <Button Cursor="Hand" Grid.Row="0" x:Name="btnDown_Black" Content="×" VerticalAlignment="Top" Foreground="#FF333333" FontSize="30" Padding="10,2,10,0" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click"/>
  166. </Grid>
  167. <!--第二行 讲解名称-->
  168. <!--第三行 存放路径-->
  169. </Grid>
  170. </Grid>
  171. </Window>