void ChangeLocationEventHandler(Object sender, EventArgs args)
        {
            ItemLocationSelectionPage page = new ItemLocationSelectionPage();

            page.LocationSelected += LocationChangedEventHandler;
            Navigation.PushAsync(page);
        }
Beispiel #2
0
        void HandleSelectLocationManually(object sender, System.EventArgs e)
        {
            ItemLocationSelectionPage locationSelectionPage = new ItemLocationSelectionPage();

            locationSelectionPage.LocationSelected += LocationChangedEventHandler;

            Navigation.PushAsync(locationSelectionPage);
        }
Beispiel #3
0
        async void OnItemSelected(object sender, SelectedItemChangedEventArgs args)
        {
            var item = args.SelectedItem as ItemDomainLocation;

            if (item == null)
            {
                return;
            }

            var newViewModel          = new ItemLocationSelectionViewModel(item);
            var locationSelectionPage = new ItemLocationSelectionPage(newViewModel);

            locationSelectionPage.LocationSelected += LocationSelectedEventHandler;

            await Navigation.PushAsync(locationSelectionPage);
        }