// ListView ItemSelected handler.
        async void OnListViewItemSelected(object sender, SelectedItemChangedEventArgs args)
        {
            if (args.SelectedItem != null)
            {
                // De-select the item.
                listView.SelectedItem = null;

                DataTransfer3InfoPage infoPage = new DataTransfer3InfoPage();
                await Navigation.PushAsync(infoPage);
                infoPage.InitializeInfo((Information)args.SelectedItem);

                // Set event handler for obtaining information.
                infoPage.InformationReady += OnInfoPageInformationReady;
            }
        }
Beispiel #2
0
        // ListView ItemSelected handler.
        async void OnListViewItemSelected(object sender, SelectedItemChangedEventArgs args)
        {
            if (args.SelectedItem != null)
            {
                // De-select the item.
                listView.SelectedItem = null;

                DataTransfer3InfoPage infoPage = new DataTransfer3InfoPage();
                await Navigation.PushAsync(infoPage);

                infoPage.InitializeInfo((Information)args.SelectedItem);

                // Set event handler for obtaining information.
                infoPage.InformationReady += OnInfoPageInformationReady;
            }
        }