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

Getting a Null Reference Exception when setting the Binding Context to an object.

$
0
0

Hi, I'm new to Xamarin.forms. I'm trying to do the following code.

private async void Submit_Clicked(object sender, EventArgs eventArgs)
{
var registeredUser = (Registration)BindingContext;
await App.Database.AddUserAsync(registeredUser);
await Navigation.PopAsync();
}

Thanks in Advance.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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