Please see the attached video.
I've managed to fix this by altering the source code of method ParagraphLayoutBox.MeasureOverride and hope it doesn't cause other problems.
In this case, the MergeField Code value without the brackets gets concatenated before the display name of the MergeField in the document.
This reproduces after the document get exported and the DocxExportSettings' FieldResultMode property is set to FieldDisplayMode.DisplayName.
The MergeField is displayed correctly in RadRichTextBox. The issue occurs only when the document is displayed in MS Word.
To work this around, set the DocxExportSettings FieldResultMode value to null.
DocxFormatProvider docxFormatProvider = new DocxFormatProvider()
{
ExportSettings = new DocxExportSettings()
{
FieldResultMode = null
}
};
The border of the ContentControl is displayed abnormally when the paragraph's TextAlignment is set to Center or Right.