Windows
Windows copied to clipboard
Using multiple rich edit boxes with text toolbars will cause one text toolbar to modify both rich edit boxes
Describe the bug
When I place 2 rich edit boxes, both with a text toolbar attached on the UI, the one text toolbar will modify formatting for both of the rich edit boxes.
Steps to reproduce
Open up the sample project
Launch RichTextWeirdness (Package)
Put focus on the first rich text box
Press Ctrl+B
The bold is toggled
Notice that the second rich text boxes toolbar also now has the bold button toggled
Expected behavior
The second rich text box's text toolbar Bold should not be toggled because the second text toolbar has its editor set to uiRich2 (MainWindow.xaml.cs)
A similar issue also occurs by clicking the bold toggle button
Screenshots
Before pressing Ctrl+B
Directly after pressing Ctrl+B
Code Platform
- [X] UWP
- [X] WinAppSDK / WinUI 3
- [ ] Web Assembly (WASM)
- [ ] Android
- [ ] iOS
- [ ] MacOS
- [ ] Linux / GTK
Windows Build Number
- [ ] Windows 10 1809 (Build 17763)
- [ ] Windows 10 1903 (Build 18362)
- [ ] Windows 10 1909 (Build 18363)
- [ ] Windows 10 2004 (Build 19041)
- [ ] Windows 10 20H2 (Build 19042)
- [ ] Windows 10 21H1 (Build 19043)
- [ ] Windows 10 21H2 (Build 19044)
- [ ] Windows 10 22H2 (Build 19045)
- [ ] Windows 11 21H2 (Build 22000)
- [ ] Other (specify)
Other Windows Build number
No response
App minimum and target SDK version
- [ ] Windows 10, version 1809 (Build 17763)
- [ ] Windows 10, version 1903 (Build 18362)
- [ ] Windows 10, version 1909 (Build 18363)
- [ ] Windows 10, version 2004 (Build 19041)
- [ ] Windows 10, version 2104 (Build 20348)
- [ ] Windows 11, version 22H2 (Build 22000)
- [ ] Other (specify)
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
No response
Device form factor
Desktop
Additional context
No response
Help us help you
No, I'm unable to contribute a solution.