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

Flyout labels are invisible after clearing custom FlyoutContent #22324

Open
spadapet opened this issue May 10, 2024 · 2 comments
Open

Flyout labels are invisible after clearing custom FlyoutContent #22324

spadapet opened this issue May 10, 2024 · 2 comments
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout p/2 Work that is important, but not critical for the release partner/hot-reload-xaml Issues impacting XAML Hot Reload experiences 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

@spadapet
Copy link
Contributor

Description

On Windows only, when custom Shell.FlyoutContent is removed, the default list of labels in the flyout are invisible. Resizing the window or making other flyout changes makes the labels show up again. See the repro steps for screenshots. Seems like a layout update issue where the label's position or size are wrong.

This repro can happen through code by changing Shell.FlyoutContent or XAML hot reload.

<?xml version="1.0" encoding="UTF-8" ?>
<Shell
    x:Class="MauiApp4.AppShell"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:local="clr-namespace:MauiApp4"
    Shell.FlyoutBehavior="Locked"
    FlyoutWidth="200"
    Title="MauiApp4">
    
    <!-- Here is the custom FlyoutContent -->
    <Shell.FlyoutContent>
        <Border Stroke="Red" StrokeThickness="4" Background="Blue">
            <VerticalStackLayout>
                <Label Text="Foo" TextColor="White" />
                <Label Text="Bar" TextColor="White" />
            </VerticalStackLayout>
        </Border>
    </Shell.FlyoutContent>

    <ShellContent Title="Home" ContentTemplate="{DataTemplate local:MainPage}" Route="MainPage" />
</Shell>

Steps to Reproduce

  1. Use the latest release of Visual Studio 2022
  2. Clone the following repo and open the solution in the FlyoutContentMissing directory:
  3. Build and debug the solution for Windows
  4. Notice the custom flyout content:
    image
  5. Click the button in the app, which goes back to standard flyout content. Notice the label in the flyout that should say "Home" is missing:
    image
  6. If you click the button again, or even resize the window, the flyout content shows:
    image

Link to public reproduction project repository

https://github.com/spadapet/maui_bugs/tree/main/FlyoutContentMissing

Version with bug

8.0.3 GA

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

net8.0-windows10.0.19041.0

Did you find any workaround?

Resizing the window or undo+redo of the change to FlyoutContent causes the flyout labels to show again.

Relevant log output

No response

@spadapet spadapet added t/bug Something isn't working p/2 Work that is important, but not critical for the release area-controls-shell Shell Navigation, Routes, Tabs, Flyout partner/hot-reload-xaml Issues impacting XAML Hot Reload experiences labels May 10, 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.

@RoiChen001 RoiChen001 added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels May 10, 2024
@RoiChen001
Copy link
Collaborator

Can repro this issue at Windows platform on the latest 17.10 Preview 7(8.0.21).

@PureWeen PureWeen added this to the Backlog milestone May 10, 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 p/2 Work that is important, but not critical for the release partner/hot-reload-xaml Issues impacting XAML Hot Reload experiences 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

4 participants