WindowsCommunityToolkit
WindowsCommunityToolkit copied to clipboard
TextToolbar's binding not working as expected...
Describe the bug
When TextToolbar is bind to RichEditBox with: Binding ElementName=... it does not work as expected - formatter's buttons not reacting on actions inside RichEditBox.
Regression
No response
Reproducible in sample app?
- [x] This bug can be reproduced in the sample app.
Steps to reproduce
Just bind TextToolbar with RichEditBox as it is shown in Demo application.
Expected behavior
TextToolbar buttons should react on actions inside RichEditBox i.e. when we select bolded text, Bold button should be highlighted, etc.
Screenshots
No response
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 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)
- [ ] Other (specify)
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
No response
Device form factor
No response
Nuget packages
No response
Additional context
Fix for it is to use: Editor="{x:Bind 'richEditBoxName'}" instead of Binding Editor="{Binding ElementName='richEditBoxName'}" but do not know which one should be used, if 'Binding' then should be somehow fixed.
Help us help you
No.