コード例 #1
0
        private void ItemSelected(object sender, SelectedItemChangedEventArgs args)
        {
            var itemText    = (string)args.SelectedItem;
            var tripDisplay = new FavouriteTripDisplay(NavPage, Map, Utility.InBraces(itemText));

            NavPage.PushAsync(tripDisplay.Content);
        }
コード例 #2
0
        private void ItemSelected(object sender, SelectedItemChangedEventArgs args)
        {
            var itemText = (string)args.SelectedItem;

            if (itemText == AddMessage)
            {
                FavouriteContent content = new FavouriteContent(NavPage, Map);
                NavPage.PushAsync(content.Content);
            }
            else
            {
                FavouriteTripDisplay subcontent = new FavouriteTripDisplay(NavPage, Map, Utility.InBraces(itemText));
                NavPage.PushAsync(subcontent.Content);
            }
        }