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

Brackets/parentheses are invisible in RichEditBox MathMode #10291

Open
BreeceW opened this issue Jan 11, 2025 · 0 comments
Open

Brackets/parentheses are invisible in RichEditBox MathMode #10291

BreeceW opened this issue Jan 11, 2025 · 0 comments
Assignees
Labels
area-TextBox TextBox, RichEditBox bug Something isn't working

Comments

@BreeceW
Copy link
Contributor

BreeceW commented Jan 11, 2025

Describe the bug

Math characters that group other expressions become invisible when typed into WinUI 3 RichEditBox with math mode. This is affecting the initial availability of math mode in Windows App SDK 1.7-experimental2. This is a regression from the system XAML (WinUI 2) math mode.

Some examples of the expressions affected:

  • Parentheses/brackets ( ) { } [ ]
  • Summation ∑
  • Integrals ∫
  • Likely many more

Steps to reproduce the bug

  1. Add a RichEditBox and set RichEditBox.TextDocument.SetMathMode(RichEditMathMode.MathOnly)
  2. Type a mathematical expression with parentheses, such as f(x)=x
  3. Notice that the parentheses become invisible once the equals key (in that example) is pressed

Also reproducible with expressions like summation:

  1. Type \sum^n (and hit space to commit)
  2. The summation ∑ becomes invisible

Expected behavior

All grouping elements should remain visible. See below screen recordings for expected behavior in UWP/WinUI 2.

Screenshots

WinUI 3 behavior Expected behavior (WinUI 2)
f(x)=x invisible parentheses f(x)=x visible parentheses
summation upper bound n invisible sigma summation upper bound n visible sigma

NuGet package version

Microsoft.WindowsAppSDK 1.7.250109001-experimental2

Windows version

Windows 11 (24H2): Build 26100

Additional context

The problem seems to be just rendering. It's still possible to type in the invisible areas, and text copied out is correct.

@BreeceW BreeceW added the bug Something isn't working label Jan 11, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jan 11, 2025
@Hemantxk Hemantxk added area-TextBox TextBox, RichEditBox and removed needs-triage Issue needs to be triaged by the area owners labels Jan 12, 2025
@Hemantxk Hemantxk self-assigned this Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-TextBox TextBox, RichEditBox bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants