Skip to content

[BUG] Popup - Background color - Not fully transparent #3255

Description

@TheQffel

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

Setting popup overlay color to transparent doesn't make it fully transparent, it is still dimmed.

Expected Behavior

Expecting background overlay color to be transparent, but it is a bit dimmed.

Steps To Reproduce

Set background to transparent color:

<toolkit:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
               xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
               xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
               xmlns:local="clr-namespace:Mobile"
               BackgroundColor="Transparent"
               x:Class="Mobile.SideMenu"
               Padding="0"
               Margin="0">

</toolkit:Popup>
        private async void Button_Menu_Clicked(object sender, EventArgs e)
        {
            var options = new PopupOptions { Shape = null, Shadow = null, PageOverlayColor = Colors.Transparent };
            await Application.Current!.Windows[0].Page!.ShowPopupAsync(new SideMenu(), options);
        }

Link to public reproduction project repository

.

Environment

- .NET MAUI CommunityToolkit: 14
- OS: Windows / Adnroid
- .NET MAUI: 10

Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions