コード例 #1
0
 public SettingsDesignModel()
 {
     Name = new TextEntryViewModel {
         Label = "Name", OriginalText = "Alia Yarychevskaya"
     };
     Username = new TextEntryViewModel {
         Label = "Username", OriginalText = "Alia"
     };
     Password = new PasswordEntryViewModel {
         Label = "Password", FakePassword = "******"
     };
     Email = new TextEntryViewModel {
         Label = "Email", OriginalText = "*****@*****.**"
     };
 }
コード例 #2
0
        public SettingsViewModel()
        {
            CloseCommand = new RelayCommand(Close);

            OpenCommand = new RelayCommand(Open);

            LogoutCommand = new RelayCommand(Logout);

            ClearUserDataCommand = new RelayCommand(ClearUserData);

            Name = new TextEntryViewModel {
                Label = "Name", OriginalText = $"Alia Yarychevskaya"
            };
            Username = new TextEntryViewModel {
                Label = "Username", OriginalText = "Alia"
            };
            Password = new PasswordEntryViewModel {
                Label = "Password", FakePassword = "******"
            };
            Email = new TextEntryViewModel {
                Label = "Email", OriginalText = "*****@*****.**"
            };
        }