I have a simple UserControl including a RadRichTextBox and 3 basic format buttons (bold, italic, underline) which work by applying
ToggleBold and the like. It is pretty much the same as this example, upon which it is based.
http://www.telerik.com/community/forums/wpf/richtextbox/bold-italic-underline-togglebuttons.aspx
It works fine as far as formatting a selection is concerned. Or formatting a word in which the caret is placed.
But the problem is that it is not able to change the format setting without a selection, and then applying it on the next typed text. That is a pretty common scenario. It also does work in the example below, albeit that a ribbon is used there.
http://demos.telerik.com/silverlight/#RichTextBox/TelerikEditor
I also noticed that my caret position is no longer shown when moving the pointer to a button.
I have tried a couple of things using InsertFragment, as seems to be suggested in the documentation below. But that lead me nowhere.
http://www.telerik.com/help/silverlight/radrichtextbox-features-formatting-api.html
So my questions are:
- It is possible what I want?
- How do I achieve that?
ToggleBold and the like. It is pretty much the same as this example, upon which it is based.
http://www.telerik.com/community/forums/wpf/richtextbox/bold-italic-underline-togglebuttons.aspx
It works fine as far as formatting a selection is concerned. Or formatting a word in which the caret is placed.
But the problem is that it is not able to change the format setting without a selection, and then applying it on the next typed text. That is a pretty common scenario. It also does work in the example below, albeit that a ribbon is used there.
http://demos.telerik.com/silverlight/#RichTextBox/TelerikEditor
I also noticed that my caret position is no longer shown when moving the pointer to a button.
I have tried a couple of things using InsertFragment, as seems to be suggested in the documentation below. But that lead me nowhere.
http://www.telerik.com/help/silverlight/radrichtextbox-features-formatting-api.html
So my questions are:
- It is possible what I want?
- How do I achieve that?