大量更新
This commit is contained in:
@@ -8,7 +8,10 @@
|
||||
<Application.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<md:BundledTheme BaseTheme="Light" PrimaryColor="DeepPurple" SecondaryColor="Lime" />
|
||||
<md:BundledTheme
|
||||
BaseTheme="Light"
|
||||
PrimaryColor="DeepPurple"
|
||||
SecondaryColor="Lime" />
|
||||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesign3.Defaults.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
|
||||
19
WPFUI.Test/MainWindow.xaml
Normal file
19
WPFUI.Test/MainWindow.xaml
Normal file
@@ -0,0 +1,19 @@
|
||||
<Window
|
||||
x:Class="WPFUI.Test.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:local="clr-namespace:WPFUI.Test"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
Title="MainWindow"
|
||||
Width="800"
|
||||
Height="450"
|
||||
mc:Ignorable="d">
|
||||
<Grid>
|
||||
<StackPanel>
|
||||
<TextBox x:Name="UserNameBox" Text="zhangganggang" />
|
||||
<PasswordBox x:Name="PasswordBox" Password="Zgg168167" />
|
||||
<Button Click="Button_Click" Content="登录" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Window>
|
||||
35
WPFUI.Test/MainWindow.xaml.cs
Normal file
35
WPFUI.Test/MainWindow.xaml.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
using WPFUI.Test.Web;
|
||||
|
||||
namespace WPFUI.Test
|
||||
{
|
||||
/// <summary>
|
||||
/// MainWindow.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private async void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
AuthenticationService service = new AuthenticationService();
|
||||
await service.LoginAsync(UserNameBox.Text, PasswordBox.Password);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user