❔ Setting Up First Xamarin FOrms
trying to follow a xamarin forms tutorial on creating a mobile app...but I am getting these errors errors =>
public LoginPage()
{
var vm = new LoginViewModel();
this.BindingContext = vm;
vm.DisplayInvalidLoginPrompt += () => DisplayAlert("Error", "Invalid Credentials", "OK");
InitializeComponent();
Email.Completed += (object sender, EventArgs e) =>
{
Password.Focus();
};
Password.Completed += (object sender, EventArgs e) =>
{
vm.SubmitCommand.Execute(null);
};
} public LoginPage()
{
var vm = new LoginViewModel();
this.BindingContext = vm;
vm.DisplayInvalidLoginPrompt += () => DisplayAlert("Error", "Invalid Credentials", "OK");
InitializeComponent();
Email.Completed += (object sender, EventArgs e) =>
{
Password.Focus();
};
Password.Completed += (object sender, EventArgs e) =>
{
vm.SubmitCommand.Execute(null);
};
}The name InitializeComponent does not exist in the current context
Email does not contain a definition for Completed
The name Password does not exist in the current contextThe name InitializeComponent does not exist in the current context
Email does not contain a definition for Completed
The name Password does not exist in the current context