Skip to content

Setting Opacity to ProfilePicture incorrectly displays initials behind the picture #11922

Description

@0x5bfa

Describe the bug

The above one is when Opacity is set to 0.5, the other one is when Opacity is the default value, 1.0.

Why is this important?

This issue is especially noticeable when it's used in TitleBar, which sets Opacity of Icon, Title, LeftHeader, RightHeader, etc. to 0.5.

See the "T" shown in the ProfilePicture in the screenshot, which shouldn't be the right visual.

Steps to reproduce the bug

<StackPanel VerticalAlignment="Center" Spacing="12">
    <PersonPicture
        Initials="TT"
        Opacity="0.5"
        ProfilePicture="/Assets/profilepic.jpg" />
    <PersonPicture Initials="TT" ProfilePicture="/Assets/profilepic.jpg" />
</StackPanel>

Actual behavior

As aforementioned.

Expected behavior

Initials should not be visible when the ProfilePicture.ProfilePicture prop is set

Screenshots

Image Image

NuGet package version

2.4.0

Windows version

Windows 11 (25H2): Build 26200

Additional context

Here's the repro.
App1.zip

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions