update
This commit is contained in:
parent
29830df36c
commit
546c248535
@ -8,7 +8,7 @@ namespace VideoConcat.Models
|
|||||||
{
|
{
|
||||||
internal class MainWindowModel
|
internal class MainWindowModel
|
||||||
{
|
{
|
||||||
public string? UserName { get; set; }
|
public string? Username { get; set; }
|
||||||
public string? PassWord { get; set; }
|
public string? Password { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,8 +14,8 @@ namespace VideoConcat.ViewModels
|
|||||||
|
|
||||||
public void Login()
|
public void Login()
|
||||||
{
|
{
|
||||||
string userName = MainWindowsModel.UserName;
|
string? userName = MainWindowsModel.Username;
|
||||||
string passWord = MainWindowsModel.PassWord;
|
string? passWord = MainWindowsModel.Password;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,59 +6,79 @@
|
|||||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||||
xmlns:local="clr-namespace:VideoConcat"
|
xmlns:local="clr-namespace:VideoConcat"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Title="登录" Height="300" Width="500"
|
Title="登录"
|
||||||
ResizeMode="NoResize" WindowStartupLocation="CenterScreen"
|
Height="300"
|
||||||
>
|
Width="500"
|
||||||
|
ResizeMode="NoResize"
|
||||||
|
WindowStartupLocation="CenterScreen">
|
||||||
<Window.Resources>
|
<Window.Resources>
|
||||||
<ResourceDictionary>
|
<ResourceDictionary>
|
||||||
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary.MergedDictionaries>
|
||||||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml"/>
|
<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:,,,/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/Primary/MaterialDesignColor.Red.xaml"/>
|
||||||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Lime.xaml" />
|
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Lime.xaml"/>
|
||||||
|
|
||||||
</ResourceDictionary.MergedDictionaries>
|
</ResourceDictionary.MergedDictionaries>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</Window.Resources>
|
</Window.Resources>
|
||||||
<Grid >
|
<Grid>
|
||||||
<Border>
|
<Border>
|
||||||
<StackPanel Orientation="Horizontal" >
|
<StackPanel Orientation="Horizontal">
|
||||||
<StackPanel Width="500">
|
<StackPanel Width="500">
|
||||||
<StackPanel >
|
<StackPanel>
|
||||||
<TextBlock Margin="20" FontFamily="Great Vibes"
|
<TextBlock Margin="20"
|
||||||
FontSize="38" TextAlignment="Center">
|
FontFamily="Great Vibes"
|
||||||
|
FontSize="38"
|
||||||
|
TextAlignment="Center">
|
||||||
用户登录
|
用户登录
|
||||||
</TextBlock>
|
</TextBlock>
|
||||||
<StackPanel Margin="10" Orientation="Horizontal">
|
<StackPanel Margin="10"
|
||||||
|
Orientation="Horizontal">
|
||||||
<materialDesign:PackIcon
|
<materialDesign:PackIcon
|
||||||
Width="30" Height="30"
|
Width="30"
|
||||||
Kind="User" Margin="10,0,10,0"/>
|
Height="30"
|
||||||
<TextBox Text="{Binding MainWindowModel.UserName}" Width="400"
|
Kind="User"
|
||||||
Margin="10,0" BorderBrush="White"
|
Margin="10,0,10,0"/>
|
||||||
|
<TextBox Text="{Binding MainWindowModel.Username}"
|
||||||
|
Width="400"
|
||||||
|
Margin="10,0"
|
||||||
|
BorderBrush="White"
|
||||||
CaretBrush="#FFD94448"
|
CaretBrush="#FFD94448"
|
||||||
SelectionBrush="#FFD94448"
|
SelectionBrush="#FFD94448"
|
||||||
materialDesign:HintAssist.Hint="输入 用户名"/>
|
materialDesign:HintAssist.Hint="输入 用户名"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel Margin="10" Orientation="Horizontal">
|
<StackPanel Margin="10"
|
||||||
|
Orientation="Horizontal">
|
||||||
<materialDesign:PackIcon
|
<materialDesign:PackIcon
|
||||||
Width="30" Height="30"
|
Width="30"
|
||||||
Kind="Lock" Margin="10,0,10,0"/>
|
Height="30"
|
||||||
|
Kind="Lock"
|
||||||
|
Margin="10,0,10,0"/>
|
||||||
<PasswordBox
|
<PasswordBox
|
||||||
Width="400"
|
Width="400"
|
||||||
Margin="10,0" BorderBrush="White"
|
Margin="10,0"
|
||||||
CaretBrush="#FFD94448"
|
BorderBrush="White"
|
||||||
SelectionBrush="#FFD94448"
|
CaretBrush="#FFD94448"
|
||||||
materialDesign:HintAssist.Hint="输入 密码"
|
SelectionBrush="#FFD94448"
|
||||||
local:MainWindowModel="{Binding MainWindowModel.Password}"
|
materialDesign:HintAssist.Hint="输入 密码"
|
||||||
>
|
Password="{Binding MainWindowModel.Password}">
|
||||||
</PasswordBox>
|
</PasswordBox>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel Margin="10" HorizontalAlignment="Center" VerticalAlignment="Center">
|
<StackPanel Margin="10"
|
||||||
<Button x:Name="btnLogin" Width="100" Height="40"
|
HorizontalAlignment="Center"
|
||||||
|
VerticalAlignment="Center">
|
||||||
|
<Button x:Name="btnLogin"
|
||||||
|
Width="100"
|
||||||
|
Height="40"
|
||||||
materialDesign:ButtonAssist.CornerRadius="5"
|
materialDesign:ButtonAssist.CornerRadius="5"
|
||||||
Background="#40568D" BorderBrush="#7F7F7F" BorderThickness="2"
|
Background="#40568D"
|
||||||
Content="登录" ToolTip="登录"
|
BorderBrush="#7F7F7F"
|
||||||
Style="{StaticResource MaterialDesignRaisedButton}" Click="BtnLogin_Click"/>
|
BorderThickness="2"
|
||||||
|
Content="登录"
|
||||||
|
ToolTip="登录"
|
||||||
|
Style="{StaticResource MaterialDesignRaisedButton}"
|
||||||
|
Click="BtnLogin_Click"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user