Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows][Bug] Shell shows as blank screen when returning from another page #23724

Open
Felicity-R opened this issue Jul 19, 2024 · 3 comments
Open
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@Felicity-R
Copy link

Description

After switching the app's MainPage from a Shell to another page, on returning to the Shell you get a blank white page on Windows. I tested iOS and Android as well but they don't have the issue; they are able to switch back and forth between the two pages multiple times without issue.

I tested in a few different Maui versions: 8.0.70, 8.0.10, and 8.0.3, all of which had the problem.

Steps to Reproduce

  1. Run the app in the linked demo repo.
  2. Click the button on the first page. This will set Application.Current.MainPage to a new page (no a shell).
  3. Click the 'return to shell' button in the new page. This will set Application.Current.MainPage back to the original Shell.

Expected result: You see the shell again.
Actual result: On Windows, you just get a blank white screen.

Link to public reproduction project repository

https://github.com/Felicity-R/MainPageTests

Version with bug

8.0.70 SR7

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 10, OS 19043.2364

Did you find any workaround?

Not yet

Relevant log output

No response

@Felicity-R Felicity-R added the t/bug Something isn't working label Jul 19, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@Felicity-R
Copy link
Author

Found a workaround - putting this in the Shell will make it draw correctly:

 protected override void OnAppearing()
    {
        base.OnAppearing();

        ShellSection currentSection = Shell.Current.CurrentItem.CurrentItem;
        Shell.Current.CurrentItem.CurrentItem = null;
        Shell.Current.CurrentItem.CurrentItem = currentSection;
    }

@Eilon Eilon added the area-controls-shell Shell Navigation, Routes, Tabs, Flyout label Jul 19, 2024
@RoiChen001 RoiChen001 added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 22, 2024
@RoiChen001
Copy link

I can repro this issue at Windows platform on the latest 17.11.0 Preview 4.0 (8.0.61&8.0.70).

@jsuarezruiz jsuarezruiz added this to the Backlog milestone Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants