Window.Parent is null with Classic Navigation #8635
Labels
area-navigation
NavigationPage
fixed-in-6.0.486
Look for this fix in 6.0.486 SR4!
fixed-in-7.0.0-rc.1.6683
partner
Issue or Request from a partner team
platform/windows 🪟
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
When not using Shell & recursing up Element.Parent this currently will stop at the Window as the Window.Parent is null rather than being set to the Application. This prevent any custom code at runtime to recurse the UI tree and access the Application. This appears to be a problem when NOT using Shell.
SAMPLE
MauiApp2.zip
Steps to Reproduce
Setting the Main Page to a Shell Works correctly
Setting the Main Page to a Page does not...
It makes no difference if setting the MainPage property or overriding CreateWindow
Version with bug
6.0.400 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android, Windows, I was not able test on other platforms
Affected platform versions
yes
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: