You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set it's content in CodeBehind using richEditBox.Document.SetText(TextSetOptions.None, "Hello, World!");
Alternatively, the source-code can be found on my GitHub.
Expected behavior
Even according to the official documentation: IsReadOnly gets or sets a value that indicates whether the user can change the text in the RichEditBox.
Therefore, I expect to be able to set the content of a ReadOnly RichEditBox programmatically. The only effect the ReadOnly state should have is preventing UserInput.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.6.0: 1.6.240829007
Windows version
No response
Additional context
Windows Version: Windows 11 (23H2): Build 22631.4169
--> Please add this Version to the selectable Windows Versions
The text was updated successfully, but these errors were encountered:
Describe the bug
Settings the Content of a RichEditBox in CodeBehind works, but only if IsReadOnly="False".
As soon as I make it ReadOnly, I get the follwing exeption:
Steps to reproduce the bug
richEditBox.Document.SetText(TextSetOptions.None, "Hello, World!");
Alternatively, the source-code can be found on my GitHub.
Expected behavior
Even according to the official documentation:
IsReadOnly
gets or sets a value that indicates whether the user can change the text in the RichEditBox.Therefore, I expect to be able to set the content of a ReadOnly RichEditBox programmatically. The only effect the ReadOnly state should have is preventing UserInput.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.6.0: 1.6.240829007
Windows version
No response
Additional context
Windows Version: Windows 11 (23H2): Build 22631.4169
--> Please add this Version to the selectable Windows Versions
The text was updated successfully, but these errors were encountered: