private async Task ContactTypeCommandExecute() { var popupContactType = new PopupPickerPage { BindingContext = new PopupPickerViewModel <ContactType>(_navigation, ContactTypes) }; (popupContactType.BindingContext as PopupPickerViewModel <ContactType>).ItemSelected += HandleContactTypeSelected; (popupContactType.BindingContext as PopupPickerViewModel <ContactType>).Title = AppResources.ContactType; await _navigation.PushPopupAsync(popupContactType); }
private async Task PlatformCommandExecute() { var popupPlatform = new PopupPickerPage { BindingContext = new PopupPickerViewModel <Platform>(_navigation, Platforms) }; (popupPlatform.BindingContext as PopupPickerViewModel <Platform>).ItemSelected += HandlePlatformSelected; (popupPlatform.BindingContext as PopupPickerViewModel <Platform>).Title = AppResources.Platform; await _navigation.PushPopupAsync(popupPlatform); }