Skip to content

Fire Navigation Events on Root Window Page#23420

Closed
PureWeen wants to merge 1 commit into
mainfrom
fix_21681
Closed

Fire Navigation Events on Root Window Page#23420
PureWeen wants to merge 1 commit into
mainfrom
fix_21681

Conversation

@PureWeen

@PureWeen PureWeen commented Jul 3, 2024

Copy link
Copy Markdown
Member

Description of Change

The reason that HideSoftInputOnTapped only works when you're nested in a NavigationPage and Shell is that both of those structures are firing the SendNavigated to events on the ContentPAge which is required for the HideSoftInputOnTapped wiring to take effect. This PR makes it so the root window page will now fire all of these events which thus makes the HideSoftInputOnTapped work.

I've also wired up iOS through a few additional paths for loaded/unloaded via the VC so that they will fire more reliably.

Issues Fixed

Fixes #21681

@PureWeen PureWeen requested a review from a team as a code owner July 3, 2024 21:32
// to get attached.
uiView.BeginInvokeOnMainThread(() => OnLoadedCheck(null));
if (lifeCycleEvents is null)
uiView.BeginInvokeOnMainThread(() => OnLoadedCheck(null));

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was only relevant when we were using Observers to try and detect loaded/unloaded changes.
If we're wiring directly to the events then we don't need to dispatch anything

@PureWeen PureWeen marked this pull request as draft July 4, 2024 18:12
@Thaldoras

Copy link
Copy Markdown

Will this be in a .net 8 release soon?

@velocitysystems

Copy link
Copy Markdown

This fix is highly desirable for XF projects being converted to MAUI where the legacy soft-input behaviour is required.
What's left to be done here?

@PureWeen

Copy link
Copy Markdown
Member Author

/rebase

@PureWeen

Copy link
Copy Markdown
Member Author

/rebase

@PureWeen

PureWeen commented May 8, 2025

Copy link
Copy Markdown
Member Author

This PR is currently being worked on by @sheiksyedm on a different branch

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-navigation NavigationPage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HideSoftInputOnTapped only works when ContentPage is in AppShell?

4 participants