[WPF Rad Controls Version 2013.3.1016.40]
The following code thrwos an InvalidCastException exception when the caret is at the end of the Document:
void DoIt()
{
var roStart = new ReadOnlyRangeStart();
var roEnd = new ReadOnlyRangeEnd();
roEnd1.PairWithStart(roStart);
_editor.InsertInline(roStart);
_editor.InsertInline(new Span("READONLY"));
_editor.InsertInline(roEnd);
_editor.Insert(" some more text");
}
We can workaround this behavior inserting a new char at the end of the doc, move back the caret and finally removing the extra char.
Is this the expected behavior?
If not, is the last version fixing this problem?
Thanks,
Juanjo
The following code thrwos an InvalidCastException exception when the caret is at the end of the Document:
void DoIt()
{
var roStart = new ReadOnlyRangeStart();
var roEnd = new ReadOnlyRangeEnd();
roEnd1.PairWithStart(roStart);
_editor.InsertInline(roStart);
_editor.InsertInline(new Span("READONLY"));
_editor.InsertInline(roEnd);
_editor.Insert(" some more text");
}
We can workaround this behavior inserting a new char at the end of the doc, move back the caret and finally removing the extra char.
Is this the expected behavior?
If not, is the last version fixing this problem?
Thanks,
Juanjo