Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

wpf richtextbox : Create groups of texts in a line

$
0
0

Hello,

I am trying to create a control with one richtextbox and one button. When you press the button appears a menu where you can select predefined texts. After selection the text, this one is inserted in the richtextbox with color blue and bold format.

You can write any text and insert the predefined text when you want.

eg:   “The Supplier has [C=1,S=1]and the client is [OWNER]

When you put the cursor on the predefined text, all is selected. If you click with the right button in the predefined text, a window is opened and  you can edit the parameters of this one. The predefined text can not be edited in the richtextbox. You have to open the window to edit it.

How i can get this aims?

Thank you in advance.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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