Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

I need to bind two entrys from database but couldn't bind to view model to view

$
0
0

i have two entrys in my view i need to bind the two entries from view model to view.
Model:
public class LoginModel
{
public string username { get; set; }
public string usercode { get; set; }
}
view model:
public LoginModel LoginModel1
{
get { return userAccounts; }
set
{
userAccounts = value;
OnPropertyChanged();
//RaisePropertyChanged();

        }

    }
    Page page;
    public event PropertyChangedEventHandler PropertyChanged;
    protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
    {
        PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
    }

    public LoginVM(Page page)
    {
        this.page = page;
    }

view:



<Entry.Effects>

</Entry.Effects>



Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>