Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to share one RichEditControl toolbar between several RichEditControls

$
0
0

Let us assume that we have created a simple rich text editor with a toolbar interface (see How to: Create a Simple Word Processor with Bar Menu and How to: Create a Simple Word Processor with Ribbon Menu help sections). Now, if you want to reuse RichEditControl UI for several RichEditControls on the form, do the following:

1) Detach the original RichEditControl from the RichEditBarController.RichEditControl property at design time in the VS Property Grid.
2) Handle the RichEditControl.Enter event for all RichEditControls on the form and assign the source RichEditControl to the RichEditBarController.RichEditControl property.

NOTE: If you want each RichEditControl to have its own UI, you can create a separate UserControl with RichEditControl and its UI. Then, just add a required number of these UserControl instances to the form.

Question Comments

Added By: Andrey Kushnarev at: 12/5/2015 10:15:11 AM    

This does not work properly if RichEditControl has comments within it content


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>