I need to be able to determine if insert mode is active in a WPF RichTextBox. I tried using reflection like so:
PropertyInfo pInfo = this.GetType().GetProperty("_OvertypeMode", BindingFlags.NonPublic | BindingFlags.Instance);
However, the property
doesn't exist in the
that I could find.
Does anyone know how to do this?
Google was no help.
I found out that in WPF, a
RichTextBox always defaults to Insert being ON when the control is instantiated. With that knowledge, I simply track the pressing of
Key.Insert, and maintain my own variable that indicates status.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)