Bug 58539 - No Xamarin.Forms.Platform.iOS.NavigationRenderer#OnInsertPageBefore(Page,Page) to override.
Summary: No Xamarin.Forms.Platform.iOS.NavigationRenderer#OnInsertPageBefore(Page,Page...
Status: RESOLVED ANSWERED
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- enhancement
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-08-02 08:53 UTC by emanuel.palm
Modified: 2017-08-02 14:36 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: No
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description emanuel.palm 2017-08-02 08:53:57 UTC
I'm using a custom iOS NavigationRenderer to intercept navigation and make adjustments to pages before they are rendered. I can override OnPushAsync(), OnPopViewAsync() and OnPopToRoot(), but there is no OnInsertPageBefore() method.

I have been able to create a workaround that works for my particular use case. I only ever insert new pages at the root, and I always navigate to them via the Navigation#PopToRootAsync() method, which means I can adjust it in my renderer by overriding OnPopToRoot().

If nothing else, there should be a protected virtual OnInsertPageBefore(Page, Page) in iOS NavigationRenderer for the sake of consistency.

Thank you!
Comment 1 Jimmy [MSFT] 2017-08-02 14:36:53 UTC
Thank you for your feedback! As this has been classified as an enhancement request, it would be best suited as a UserVoice suggestion[1] or a proposal in our Evolution forum[2] for future consideration. When submitting a proposal on the Evolution forum, be sure to first read the contribution guidelines[3] so your proposal is ready for discussion with the Forms team and community.

[1] https://xamarin.uservoice.com/forums/144858-xamarin-platform-suggestions
[2] https://forums.xamarin.com/categories/xamarin-forms-evolution
[3] https://forums.xamarin.com/discussion/84503/please-read-first