Unplanned
Last Updated: 19 Aug 2022 02:35 by Caesar
Caesar
Created on: 03 Aug 2022 10:35
Category: RichTextBox
Type: Bug Report
0
RichTextBox: Importing document with block-level content controls from XAML causes them to become corrupt.

Importing a document with block-level content controls from XAML causes them to become corrupt. If you scroll to a position in which the said control is only partially visible a NullReferenceException is thrown.

A possible workaround would be to initially save the document as a DOCX (just exporting it to DOCX will not fix the issue as the information is already corrupt).

1 comment
Caesar
Posted on: 19 Aug 2022 02:35

There is another way to reproduce the issue:

Insert a Rich Text Content Control to current document,paste large pieces of text (for example, content in the attach)into it. If I save the document as a xaml file and reopen it, this raises the foregoing problem.

If I save it as a docx file and reopen it, it works fine.

But in my scenario, I have lots of custom annotations in my documents, saving as DOCX is not an option for me.

Attached Files: