Esempio n. 1
0
 public App()
 {
     BibleAppViewModel = new BibleAppViewModel();
     AppViewModel      = new AppViewModel();
     InitializeComponent();
     MainPage = new NavigationPage(new BibleApp.TopicsPage())
     {
         BindingContext = m_bibleAppViewModel
     };
 }
Esempio n. 2
0
        async void OnListViewItemSelected(object sender, SelectedItemChangedEventArgs args)
        {
            if (args.SelectedItem != null)
            {
                listview.SelectedItem = null;

                BibleAppViewModel newBindingContext = BindingContext as BibleAppViewModel;

                await newBindingContext.UpdateVerses((Belief)args.SelectedItem);


                await Navigation.PushAsync(new VersesPage()
                {
                    BindingContext = newBindingContext
                });
            }
        }