public loginView(login onelogin) { this.onelongin = onelongin; InitializeComponent(); // Label newLabel = new Label(); BindingContext = this.onelongin; VersionsTekst.SetBinding(Label.TextProperty, "VersionsTekst", BindingMode.OneWay); LoginEntry.SetBinding <login>(Entry.TextProperty, vm->vm.LoginEntry, BindingMode.OneWay); }
private LoginEntry UsernameEntry() { usernameEntry = new LoginEntry { Placeholder = LocalizedResources.username, HeightRequest = componentHeight, ReturnType = ReturnType.Next }; usernameEntry.SetBinding(LoginEntry.TextProperty, "Username", BindingMode.TwoWay); usernameEntry.Completed += Entry_Completed; return(usernameEntry); }
private LoginEntry PasswordEntry() { passwordEntry = new LoginEntry { Placeholder = LocalizedResources.password, HeightRequest = componentHeight, IsPassword = true, ReturnType = ReturnType.Done, }; passwordEntry.SetBinding(LoginEntry.TextProperty, "Password", BindingMode.TwoWay); passwordEntry.Completed += Entry_Completed; return(passwordEntry); }