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

InfoBadge icon is not visible #8176

Closed
nxtn-staged opened this issue Feb 13, 2023 · 13 comments
Closed

InfoBadge icon is not visible #8176

nxtn-staged opened this issue Feb 13, 2023 · 13 comments
Assignees
Labels
area-InfoBadge bug Something isn't working closed-Fixed Described behavior has been fixed. fix-released The fix has been in a release (experimental, preview, stable, or servicing). team-Controls Issue for the Controls team
Milestone

Comments

@nxtn-staged
Copy link

Describe the bug

The icon in an icon info badge is not visible in WinUI 3.

Steps to reproduce the bug

<InfoBadge HorizontalAlignment="Center" VerticalAlignment="Center">
    <InfoBadge.IconSource>
        <SymbolIconSource Symbol="Sync"/>
    </InfoBadge.IconSource>
</InfoBadge>

Expected behavior

No response

Screenshots

image

NuGet package version

WinUI 3 - Windows App SDK 1.2.3: 1.2.230118.102

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

@nxtn-staged nxtn-staged added the bug Something isn't working label Feb 13, 2023
@gabbybilka gabbybilka added the needs-triage Issue needs to be triaged by the area owners label Mar 13, 2023
@Jay-o-Way
Copy link
Contributor

Jay-o-Way commented Apr 11, 2023

I'm thinking it's because SymbolIcon uses code points in the range of E1**, where Sync=E117. These have been deprecated for years. See also MicrosoftDocs/winrt-api#2363 (or #8375)

@greatoceansoftware
Copy link

Any update on this? I would really like to use infobadges with icons.

@Jay-o-Way

This comment was marked as resolved.

@bpulliam bpulliam added team-Controls Issue for the Controls team area-InfoBadge and removed needs-triage Issue needs to be triaged by the area owners labels Jul 7, 2023
@ranjeshj ranjeshj added the duplicate This issue or pull request already exists label Dec 13, 2023
@ranjeshj
Copy link
Contributor

resolving as dup of #8385

@Diegorro98
Copy link

FontIcon is also not working. See WinUI3 Gallery InfoBadge Section (winui3gallery://item/InfoBadge) "Placing an InfoBadge Inside Another Control", the InfoBadge element has a custom icon, but it is not visible.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Feb 1, 2024
@Jay-o-Way

This comment was marked as off-topic.

@Diegorro98
Copy link

Diegorro98 commented Feb 1, 2024

@Jay-o-Way no it isn't only in the app, it is happening to me in the app I'm building. I used that example to easily show the issue.
But you can go ahead and build an app with the following element:

<InfoBadge Style="{StaticResource CautionIconInfoBadgeStyle}"/>

The exclamation icon is missing

Or this example from Microsoft Learn:

<Button Width="200" Height="60" Padding="4"
        HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
    <Grid>
        <SymbolIcon Symbol="Sync"/>
        <InfoBadge x:Name="buttonInfoBadge"
                        Background="#C42B1C"
                        HorizontalAlignment="Right" 
                        VerticalAlignment="Top"
                        Width="16" Height="16">
            <InfoBadge.IconSource>
                <FontIconSource Glyph="&#xEA6A;"/>
            </InfoBadge.IconSource>
        </InfoBadge>
    </Grid>
</Button>

The icon is also missing...

@greatoceansoftware
Copy link

Any update on this?

@ranjeshj ranjeshj removed the duplicate This issue or pull request already exists label Mar 5, 2024
@ranjeshj ranjeshj reopened this Mar 5, 2024
@ranjeshj
Copy link
Contributor

ranjeshj commented Mar 5, 2024

I can repro this with latest 1.5 release. Reopening.

@SjVer
Copy link

SjVer commented Mar 27, 2024

Encountered the same issue. It's not just the SymbolIconSource that doesn't work with the InfoBadge, but all other icon sources too.

This snippet should be fine:

<InfoBadge Style="{ThemeResource SuccessIconInfoBadgeStyle}">
    <InfoBadge.IconSource>
        <FontIconSource Glyph="&#xE8FB;"/>
    </InfoBadge.IconSource>
</InfoBadge>

But it just shows a weird green squashed-looking circle: image

Hope this gets fixed ASAP.

@leohu1
Copy link

leohu1 commented Apr 5, 2024

I have the same problem

@codendone codendone removed the needs-triage Issue needs to be triaged by the area owners label May 2, 2024
@karkarl karkarl self-assigned this Jul 8, 2024
@castorix
Copy link

castorix commented Jul 8, 2024

Encountered the same issue. It's not just the SymbolIconSource that doesn't work with the InfoBadge, but all other icon sources too.

It works (at least on my 1.42 version) by setting the font.
For example, with Red Heart glyph

        <InfoBadge Style="{ThemeResource SuccessIconInfoBadgeStyle}" Width="42" MinHeight="42">
            <InfoBadge.IconSource>               
                <FontIconSource FontFamily="Segoe UI Emoji" Glyph="&#x2764;"/>
            </InfoBadge.IconSource>
        </InfoBadge>

I get :
image

@llongley llongley added this to the WinAppSDK 1.6 milestone Jul 16, 2024
@llongley llongley added the closed-Fixed Described behavior has been fixed. label Jul 16, 2024
@Jay-o-Way
Copy link
Contributor

Yeah but a font shouldn't be hardcoded. At all.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jul 16, 2024
@codendone codendone removed the needs-triage Issue needs to be triaged by the area owners label Jul 17, 2024
@codendone codendone added the fix-released The fix has been in a release (experimental, preview, stable, or servicing). label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-InfoBadge bug Something isn't working closed-Fixed Described behavior has been fixed. fix-released The fix has been in a release (experimental, preview, stable, or servicing). team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests