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

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