TextControlBox-WinUI icon indicating copy to clipboard operation
TextControlBox-WinUI copied to clipboard

IsReadOnly does not prevent modifications to text

Open galacticstudios opened this issue 11 months ago • 2 comments

It appears that the IsReadOnly property is not wired up. In CoreTextControlBox.xaml.cs, the IsReadOnly property has a TODO comment, and TextManager._isReadOnly is never set to anything but false.

galacticstudios avatar Dec 24 '25 18:12 galacticstudios

I just noticed: typing letters into a read-only TextControlBox does nothing. But typing Enter inserts a newline.

galacticstudios avatar Dec 26 '25 19:12 galacticstudios

Thanks for reporting this. I will try to fix this. Totally forgot about it, since I've never used it. My bad 🫣

FrozenAssassine avatar Dec 26 '25 23:12 FrozenAssassine