添加项目文件。
This commit is contained in:
parent
1913882317
commit
6e91d46415
9
App.xaml
Normal file
9
App.xaml
Normal file
@ -0,0 +1,9 @@
|
||||
<Application x:Class="VideoConcat.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:VideoConcat"
|
||||
StartupUri="MainWindow.xaml">
|
||||
<Application.Resources>
|
||||
|
||||
</Application.Resources>
|
||||
</Application>
|
||||
14
App.xaml.cs
Normal file
14
App.xaml.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Windows;
|
||||
|
||||
namespace VideoConcat
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for App.xaml
|
||||
/// </summary>
|
||||
public partial class App : Application
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
10
AssemblyInfo.cs
Normal file
10
AssemblyInfo.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using System.Windows;
|
||||
|
||||
[assembly: ThemeInfo(
|
||||
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
||||
//(used if a resource is not found in the page,
|
||||
// or application resource dictionaries)
|
||||
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
||||
//(used if a resource is not found in the page,
|
||||
// app, or any theme specific resource dictionaries)
|
||||
)]
|
||||
84
MainWindow.xaml
Normal file
84
MainWindow.xaml
Normal file
@ -0,0 +1,84 @@
|
||||
<Window x:Class="VideoConcat.MainWindow"
|
||||
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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
xmlns:local="clr-namespace:VideoConcat"
|
||||
mc:Ignorable="d"
|
||||
Title="登录" Height="450" Width="800"
|
||||
ResizeMode="NoResize" WindowStartupLocation="CenterScreen"
|
||||
WindowStyle="None">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml"/>
|
||||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.Red.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Lime.xaml" />
|
||||
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Window.Resources>
|
||||
<Grid MouseDown="Grid_MouseDown">
|
||||
<Grid.Background>
|
||||
<LinearGradientBrush StartPoint="0.1,0" EndPoint="0.9,1">
|
||||
<GradientStop Offset="1" Color="#FFE63070"/>
|
||||
<GradientStop Offset="0" Color="#FFFE8704"/>
|
||||
</LinearGradientBrush>
|
||||
</Grid.Background>
|
||||
<Border Height="390" VerticalAlignment="Top"
|
||||
Background="#220000" CornerRadius="0 0 180 0">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<StackPanel Width="350">
|
||||
<Image Width="300" Height="300" Margin="30"
|
||||
VerticalAlignment="Top" Stretch="Fill" Source="pack://application:,,,/VideoConcat;component/Images/left.png"/>
|
||||
</StackPanel>
|
||||
<StackPanel Width="350">
|
||||
<StackPanel Margin="20,40">
|
||||
<TextBlock Margin="20" FontFamily="Great Vibes"
|
||||
FontSize="38" Foreground="White" TextAlignment="Center">
|
||||
用户登录
|
||||
</TextBlock>
|
||||
<StackPanel Margin="10" Orientation="Horizontal">
|
||||
<materialDesign:PackIcon
|
||||
Width="25" Height="25" Foreground="White"
|
||||
Kind="User"/>
|
||||
<TextBox x:Name="txtUserName" Width="250"
|
||||
Margin="10,0" BorderBrush="White"
|
||||
CaretBrush="#FFD94448" Foreground="White"
|
||||
SelectionBrush="#FFD94448"
|
||||
materialDesign:HintAssist.Hint="输入 用户名"/>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="10" Orientation="Horizontal">
|
||||
<materialDesign:PackIcon
|
||||
Width="25" Height="25" Foreground="White"
|
||||
Kind="Lock"/>
|
||||
<PasswordBox x:Name="txtPassword" Width="250"
|
||||
Margin="10,0" BorderBrush="White"
|
||||
CaretBrush="#FFD94448" Foreground="White"
|
||||
SelectionBrush="#FFD94448"
|
||||
/>
|
||||
</StackPanel>
|
||||
<StackPanel Margin="10" HorizontalAlignment="Center">
|
||||
<Button x:Name="btnLogin" Width="100" Height="40"
|
||||
materialDesign:ButtonAssist.CornerRadius="10"
|
||||
Background="#D94448" BorderBrush="#D94448" BorderThickness="2"
|
||||
Content="登录" Foreground="White" ToolTip="登录"
|
||||
Style="{StaticResource MaterialDesignRaisedButton}"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
<StackPanel Width="100">
|
||||
<Button x:Name="btnExit" Margin="5,10" Background="{x:Null}"
|
||||
Click="BtnExit_Click" Style="{StaticResource MaterialDesignFloatingActionButton}"
|
||||
ToolTip="关闭">
|
||||
<materialDesign:PackIcon Width="20" Height="20"
|
||||
Foreground="White" Kind="Close"/>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
</Border>
|
||||
</Grid>
|
||||
</Window>
|
||||
29
MainWindow.xaml.cs
Normal file
29
MainWindow.xaml.cs
Normal file
@ -0,0 +1,29 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace VideoConcat
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for MainWindow.xaml
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void BtnExit_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void Grid_MouseDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
if (Mouse.LeftButton == MouseButtonState.Pressed)
|
||||
{
|
||||
this.DragMove();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
15
VideoConcat.csproj
Normal file
15
VideoConcat.csproj
Normal file
@ -0,0 +1,15 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net8.0-windows</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<UseWPF>true</UseWPF>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="MaterialDesignXaml.DialogsHelper" Version="1.0.4" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
25
VideoConcat.sln
Normal file
25
VideoConcat.sln
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.11.35327.3
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VideoConcat", "VideoConcat.csproj", "{2FF5691C-3184-4B68-944B-C704E64C4E4E}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{2FF5691C-3184-4B68-944B-C704E64C4E4E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2FF5691C-3184-4B68-944B-C704E64C4E4E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2FF5691C-3184-4B68-944B-C704E64C4E4E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2FF5691C-3184-4B68-944B-C704E64C4E4E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {8C87CBA7-AAE8-40AA-B613-6E682DFE0A13}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Loading…
Reference in New Issue
Block a user