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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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="346" Width="457" 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. <!--分4行-->
  41. <Grid.RowDefinitions>
  42. <RowDefinition Height="45"/>
  43. <RowDefinition Height="110"/>
  44. <RowDefinition Height="70"/>
  45. <RowDefinition Height="*"/>
  46. </Grid.RowDefinitions>
  47. <!--第一行 标题 FFE9E9E9 FF2D8CF0-->
  48. <Grid x:Name="GridTitle" Visibility="Visible" Margin="-1,0" Grid.Row="0" Background="#FF38ADFF" MouseLeftButtonDown="Window_MouseLeftButtonDown">
  49. <TextBlock Text="创建微课" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
  50. <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"/>
  51. </Grid>
  52. <Grid x:Name="GridTitle_Black" Visibility="Collapsed" Margin="0,0" Grid.Row="0" Background="#FFE9E9E9" MouseLeftButtonDown="Window_MouseLeftButtonDown">
  53. <TextBlock Text="创建微课" Foreground="#FF333333" FontSize="16" Padding="10,13,0,0"/>
  54. <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"/>
  55. </Grid>
  56. <!--第二行 讲解名称-->
  57. <Grid Grid.Row="1">
  58. <StackPanel Orientation="Horizontal" Margin="30,20,30,1" Grid.ColumnSpan="2">
  59. <Label Content="*" FontSize="18" Padding="0,37.5,0,0" Foreground="#FF0000"/>
  60. <TextBlock Text="讲解名称" FontSize="18" Padding="2,33,10,0"/>
  61. <!--输入框-->
  62. <Border Background="#CDD6E0" Width="291" Height="43" CornerRadius="3">
  63. <TextBox x:Name="txbExplainName" Text="微课1" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="289" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
  64. </Border>
  65. </StackPanel>
  66. </Grid>
  67. <!--第三行 存放路径-->
  68. <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="30,0,30,1" Grid.ColumnSpan="2">
  69. <Label Content="*" FontSize="18" Padding="0,27,0,0" Foreground="#FF0000"/>
  70. <TextBlock Text="存放路径" FontSize="18" Padding="2,23,10,0"/>
  71. <!--输入框-->
  72. <Border Background="#CDD6E0" Width="200" Height="43" CornerRadius="3">
  73. <TextBox x:Name="txbStoragePath" Text="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="198" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
  74. </Border>
  75. <!--浏览按钮-->
  76. <Button Cursor="Hand" x:Name="btnBrowse" FontSize="18" Width="80" Height="43" BorderBrush="#cccccc" BorderThickness="1" Click="BtnBrowse_Click" Content="浏览" Style="{StaticResource Button_Menu}"
  77. Background="#F7F7F7" Margin="11,0,0,0"/>
  78. </StackPanel>
  79. <!--第四行 开始按钮-->
  80. <Button Cursor="Hand" Grid.Row="3" x:Name="btnStart" IsDefault="True" Content="开始" FontSize="18" FontWeight="Bold" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="386" Height="48" Margin="30,0,30,0" Click="BtnStart_Click" Grid.ColumnSpan="2">
  81. <Button.Template>
  82. <ControlTemplate TargetType="{x:Type Button}">
  83. <Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="3">
  84. <Border.Background>#38ADFF</Border.Background>
  85. <ContentPresenter
  86. HorizontalAlignment="Center"
  87. VerticalAlignment="Center"
  88. Content="{TemplateBinding ContentControl.Content}" />
  89. </Border>
  90. </ControlTemplate>
  91. </Button.Template>
  92. </Button>
  93. </Grid>
  94. </Window>