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 size and alignment is inconsistent with WinUI #10326

Open
MartinZikmund opened this issue Nov 3, 2022 · 4 comments
Open

InfoBadge size and alignment is inconsistent with WinUI #10326

MartinZikmund opened this issue Nov 3, 2022 · 4 comments
Labels
area/winui Categorizes an issue or PR as relevant to WinUI difficulty/starter 🚀 Categorizes an issue for which the difficulty level is reachable by newcomers kind/bug Something isn't working project/layout 🧱 Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)

Comments

@MartinZikmund
Copy link
Member

Current behavior

image

Expected behavior

No response

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

See InfoBadge sample in Uno Gallery

Works on UWP/WinUI

Yes

Environment

No response

NuGet package version(s)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

@MartinZikmund MartinZikmund added kind/bug Something isn't working difficulty/starter 🚀 Categorizes an issue for which the difficulty level is reachable by newcomers area/winui Categorizes an issue or PR as relevant to WinUI labels Nov 3, 2022
@jeromelaban jeromelaban added the project/layout 🧱 Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..) label Nov 3, 2022
@ajoh504
Copy link
Contributor

ajoh504 commented Nov 5, 2022

Hi, I would like to work on this issue.

@MartinZikmund
Copy link
Member Author

Hi @ajoh504 , assigned to you! Let me know if you need any help👍

@ajoh504
Copy link
Contributor

ajoh504 commented Dec 2, 2022

Hi @MartinZikmund, @jeromelaban , I'm attempting to build out a sample Uno app that uses an InfoBadge so I can recreate the issue. But I receive the following error:

Error XLS0414 The type 'InfoBadge' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.

Here is my markup:

<Page
    x:Class="SampleUnoApp.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:SampleUnoApp"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"    
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

    <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>
</Page>

I also receive the following warning:

Warning WMC0001 Unknown type 'InfoBadge' in XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentation' SampleUnoApp.Windows

@ajoh504 ajoh504 removed their assignment Dec 19, 2022
@ajoh504
Copy link
Contributor

ajoh504 commented Dec 19, 2022

I went ahead and unassigned myself. I will need to focus on building up my programming skills before contributing code to Uno. Thank you to the maintainers for assigning this issue to me, and I hope to contribute code to Uno in the future!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/winui Categorizes an issue or PR as relevant to WinUI difficulty/starter 🚀 Categorizes an issue for which the difficulty level is reachable by newcomers kind/bug Something isn't working project/layout 🧱 Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)
Projects
None yet
Development

No branches or pull requests

3 participants