private async void AddProfile(object sender, EventArgs e) { Profile profile = new Profile(); ProfilePage profilePage = new ProfilePage() { BindingContext = profile }; await Navigation.PushAsync(profilePage); }
private async void ProfilesList_OnItemSelected(object sender, SelectedItemChangedEventArgs e) { Profile selectedProfile = (Profile)e.SelectedItem; ProfilePage profilePage = new ProfilePage() { BindingContext = selectedProfile }; await Navigation.PushAsync(profilePage); }