1.先看效果
2.Blend 界面设计,参考
https://blog.csdn.net/zxcvb036/article/details/109468723
3.文件的结构
4.Model
class User : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
private void OnPropertyChanged(string property)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(property));
}
private string _userName;
private string _psword;
public string UserName {
get => _userName;
set
{
if (_userName != value)
{
_userName = value;
OnPropertyChanged("UserName");
}
}
}
public string Password
{
get => _psword;
set
{
if(_psword != value)
{
_psword =