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

Setting a RichTextBlock's Style to a TextBlock style shows no error or warning nor the app breaks #10108

Open
eduardobragaxz opened this issue Oct 26, 2024 · 0 comments
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners

Comments

@eduardobragaxz
Copy link

Describe the bug

In my case I had a BodyStrongTextBlockStyle in my RichTextBlock and the app worked normally when debugging. I didn't notice anything because I set the Paragraph's FontWeight in code, so the text showed up bold as I expected. I know it shouldn't work, I don't expect it to work. I didn't even notice that was there, so it took me a minute to realize what was wrong. The app doesn't break when debugging, only when opening outside Visual Studio, so it was annoying.

Steps to reproduce the bug

Use a RichTextBlock with BodyStrongTextBlockStyle as its style.

Expected behavior

To show an error or a warning.

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.6.1: 1.6.240923002

Windows version

No response

Additional context

Build 26100

@eduardobragaxz eduardobragaxz added the bug Something isn't working label Oct 26, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

1 participant