C#C
C#3y ago
.bobgoblin

❔ Setting Up First Xamarin FOrms

trying to follow a xamarin forms tutorial on creating a mobile app...but I am getting these 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);
            };
        }
errors =>
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 context
Was this page helpful?