12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <Window x:Class="XHWK.WKTool.CreateAMicroLessonWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:XHWK.WKTool"
- mc:Ignorable="d"
- Title="星火微课" Height="346" Width="457" AllowsTransparency="True"
- WindowStartupLocation="CenterScreen"
- WindowStyle="None" Loaded="Window_Loaded" Margin="0" BorderThickness="7">
- <Window.Effect>
- <DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
- </Window.Effect>
- <Window.Resources>
- <Style x:Key="Button_Menu" TargetType="{x:Type Button}">
- <Setter Property="Width" Value="auto" />
- <Setter Property="Height" Value="auto" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Foreground" Value="Black"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border Background="#c3c3c3">
- <Border x:Name="MyBackgroundElement" Background="#F7F7F7" BorderBrush="{DynamicResource ForgroundBrush}" BorderThickness="1">
- <ContentPresenter x:Name="ButtonContentPresenter" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- </Border>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="MyBackgroundElement" Property="Background" Value="#EDF5FF"/>
- <Setter TargetName="MyBackgroundElement" Property="Opacity" Value="1"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Window.Resources>
- <Grid>
- <!--分4行-->
- <Grid.RowDefinitions>
- <RowDefinition Height="45"/>
- <RowDefinition Height="110"/>
- <RowDefinition Height="70"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <!--第一行 标题 FFE9E9E9 FF2D8CF0-->
- <Grid x:Name="GridTitle" Visibility="Visible" Margin="-1,0" Grid.Row="0" Background="#FF38ADFF" MouseLeftButtonDown="Window_MouseLeftButtonDown">
- <TextBlock Text="创建微课" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
- <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"/>
- </Grid>
- <Grid x:Name="GridTitle_Black" Visibility="Collapsed" Margin="0,0" Grid.Row="0" Background="#FFE9E9E9" MouseLeftButtonDown="Window_MouseLeftButtonDown">
- <TextBlock Text="创建微课" Foreground="#FF333333" FontSize="16" Padding="10,13,0,0"/>
- <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"/>
- </Grid>
- <!--第二行 讲解名称-->
- <Grid Grid.Row="1">
- <StackPanel Orientation="Horizontal" Margin="30,20,30,1" Grid.ColumnSpan="2">
- <Label Content="*" FontSize="18" Padding="0,37.5,0,0" Foreground="#FF0000"/>
- <TextBlock Text="讲解名称" FontSize="18" Padding="2,33,10,0"/>
- <!--输入框-->
- <Border Background="#CDD6E0" Width="291" Height="43" CornerRadius="3">
- <TextBox x:Name="txbExplainName" Text="微课1" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="289" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
- </Border>
- </StackPanel>
- </Grid>
- <!--第三行 存放路径-->
- <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="30,0,30,1" Grid.ColumnSpan="2">
- <Label Content="*" FontSize="18" Padding="0,27,0,0" Foreground="#FF0000"/>
- <TextBlock Text="存放路径" FontSize="18" Padding="2,23,10,0"/>
- <!--输入框-->
- <Border Background="#CDD6E0" Width="200" Height="43" CornerRadius="3">
- <TextBox x:Name="txbStoragePath" Text="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="198" Height="41" BorderBrush="{x:Null}" BorderThickness="0"/>
- </Border>
- <!--浏览按钮-->
- <Button Cursor="Hand" x:Name="btnBrowse" FontSize="18" Width="80" Height="43" BorderBrush="#cccccc" BorderThickness="1" Click="BtnBrowse_Click" Content="浏览" Style="{StaticResource Button_Menu}"
- Background="#F7F7F7" Margin="11,0,0,0"/>
- </StackPanel>
- <!--第四行 开始按钮-->
- <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">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="3">
- <Border.Background>#38ADFF</Border.Background>
- <ContentPresenter
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding ContentControl.Content}" />
- </Border>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </Grid>
- </Window>
|