示例#1
0
 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);
 }
示例#2
0
        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);
        }
示例#3
0
        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);
        }