this.richTextBox.Document.Insert(" " + Environment.NewLine, new Telerik.Windows.Documents.Model.Styles.StyleDefinition());
My question is, isn't there a specific command which I can bind to the button command?
1 Answer, 1 is accepted
answered on 19 May 2011, 12:19 PM
Hi Stanescu Mihai,
InsertLineBreak inserts a line break in the paragraph, but does not break the paragraph in two.
Inserting creating a new paragraph can be done as in the code snippet you posted. There is no default command for inserting a new paragraph, but you can create a custom command, which executes the code from the snippet and bind to an instance of that command. Here is forum post we discuss a possible approach to creating custom command: http://www.telerik.com/community/forums/silverlight/richtextbox/custom-command.aspx
I hope that helps.
All the best,
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items