dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.98k stars 1.71k forks source link

Flyout background doesn't change when it's locked #12825

Open ziaulhasanhamim opened 1 year ago

ziaulhasanhamim commented 1 year ago

Description

I having this same problem #6552. The flyout background color can't be set in windows. But it is supposed to be fixed now.

Steps to Reproduce

<Shell
    x:Class="MauiShellBug.AppShell"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:local="MauiShellBug"
    FlyoutBehavior="Locked"
    FlyoutBackgroundColor="White">

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

</Shell>

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

windows10 19044.2486

Did you find any workaround?

No response

Relevant log output

No response

ghost commented 1 year ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

indyjason79 commented 1 year ago

Same issue here. I have tried every work-around I can think of. The background color of the flyout gets set to black no matter what you try when it's set to Locked.

argraur commented 1 year ago

Fixed in https://github.com/dotnet/maui/pull/13132. But they pushed the fix into .NET 8.0, so upgrading to that is the only workaround, it seems :(

HobDev commented 1 year ago

Facing this issue on Windows 11. But on my machine the background is white whereas I am setting it to black.

ghost commented 1 year ago

Hi @ziaulhasanhamim. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.

You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

jinxinjuan commented 1 year ago

Verified this issue with Visual Studio Enterprise 17.8.0 Preview 1.0(.NET8). Not repro on Windows platforms with provided code on MAUI Template project.

ziaulhasanhamim commented 1 year ago

I have tried this with latest .net 7. The issue is still there. I would try with new previews and inform asap.