Skip to content

Flyout text dissappears after locking the screen #23214

@schsandor

Description

@schsandor

Description

This happens on Windows when the Flyout is set to locked and the app is maximized or if it's not in the foreground. If you lock the screen and then unlock it, the texts and labels in the Flyout will be gone.
I cannot test it on a Mac desktop, so I don't know whether it is an issue there or not. But as far as I know, this has been present since at least 7.0, as I have struggled to reproduce the issue for a long time. As I know the trigger, even the basic default app lets you reproduce it with a single FlyoutItem and a locked Flyout. The issue happens in Light and Dark mode as well.

Before locking the screen:
Screenshot (315)
After locking the screen:
Screenshot (316)

This is a very frustrating issue, as running an app in maximized mode and locking the screen when you step away from the computer are everyday occurrences. I always thought that the issue of disappearing FlyoutItems must be with my complex Flyout, with DataBinding or with Styles, but this seems to happen on a very basic level even without any added complexity on my part.

Steps to Reproduce

  1. Create a new MAUI app.
  2. Set the Flyout to be Locked in the AppShell.xaml file:
    Shell.FlyoutBehavior="Locked"
  3. Add a FlyoutItem:
    <FlyoutItem Title="MainPage"> <Tab> <ShellContent ContentTemplate="{DataTemplate local:MainPage}" Route="MainPage" /> </Tab> </FlyoutItem>
  4. Run the app.
  5. Maximize it and check that the text of the Flyout is there.
  6. Lock the screen (Windows+L).
  7. Unlock it.

Expected behavior after the steps above:
Everything is awesome.

Actual behavior:
The Flyout is empty. This happens also if you add a Label to the Flyout. Images will stay visible, but any text (Title or Label) disappears.

Alternate method with the same results:
5. Switch to another window to be in the foreground and check that the text of the Flyout is there.

Link to public reproduction project repository

https://github.com/schsandor/DissappearingFlyoutText

Version with bug

8.0.40 SR5

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 11 Home 23H2 22631.3737

Did you find any workaround?

No. If you change the size of the window, then the text comes back. But this is not a solution or a workaround in a production app.

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions