Is there any way to insert my own WPF Element into the RichTextBoxAdv's document?

I can't see my image in the post, Here is a link to the https://sm.ms/image/L4VkalsHGdFXjDT



3 Replies 1 reply marked as answer

BK BiSS Kxxt September 30, 2021 10:55 AM UTC

Hello,

Is there any way to insert my own WPF UserControl into the RichTextBoxAdv's document?

I was making an application which provides a live word document generating experience.

The app loads a docx template file. My user will input various fields in some controls outside the RichTextBoxAdv.

I want some texts in the RichTextBoxAdv updated when the user changed the text in the textbox, similar to a WPF binding.

Can I achieve this with RichTextBoxAdv?

Snipaste_2021-09-30_18-42-43 (小xl).png


Thanks in advance!




KG Kalaivannan Ganesan Syncfusion Team October 1, 2021 11:46 AM UTC

Hi Biss,

Thanks for contacting Syncfusion support.

UIContainerAdv can be used to insert UIelements into the SfRichTextBoxAdv document. it can be inserted as paragraph’s inline elements into the document of SfRichTextBoxAdv control. and while exporting a document, UIContainer and WPF elements inside them will be exported as an image.

Also, we have created a sample to demonstrates the same, which can be downloaded from the below location
https://www.syncfusion.com/downloads/support/forum/169292/ze/RTE_UIcontainer_180798693


Please let us know if you have any other questions.

Regards,
Kalaivannan Ganesan
 
 


Marked as answer

BK BiSS Kxxt replied to Kalaivannan Ganesan October 1, 2021 11:58 AM UTC

Thanks for the amazing example. It looks pretty good!


Loader.
Up arrow icon