Beispiel #1
0
        private void AddClicked(object sender, EventArgs e)
        {
            Character newCharacter        = new Character();
            var       characterDetailPage = new CharacterDetailsPage();

            characterDetailPage.BindingContext = newCharacter;
            characterList.IsVisible            = false;
            Navigation.PushAsync(characterDetailPage);
        }
Beispiel #2
0
 private void characterSelected(object sender, SelectedItemChangedEventArgs e)
 {
     if (e.SelectedItem != null)
     {
         var characterSelected   = (Character)e.SelectedItem;
         var characterDetailPage = new CharacterDetailsPage();
         characterDetailPage.BindingContext = characterSelected;
         characterList.IsVisible            = false;
         Navigation.PushAsync(characterDetailPage);
     }
 }