This is a migrated thread and some comments may be shown as answers.

InsertSectionBreakCommand

2 Answers 86 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Clifford
Top achievements
Rank 1
Clifford asked on 18 Sep 2013, 11:05 PM
The following xaml does not seem to work:

<telerik:RadRibbonButton telerik:ScreenTip.Description="Start a new section at the current position."
			 LargeImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/PageBreak.png"
			 telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding InsertSectionBreakCommand}"
			 Size="Large"
			 Text="Section Break"
			 telerik:ScreenTip.Title="Section Break" />

There seems to be such a command as
InsertSectionBreakCommand, but it does no seem to be implemented or something 

2 Answers, 1 is accepted

Sort by
0
Accepted
Petya
Telerik team
answered on 23 Sep 2013, 12:08 PM
Hello,

Please make sure that the button has the respective in the window RadRichTextBox set as data context:
<telerik:RadRichTextBoxRibbonUI DataContext="{Binding Commands, ElementName=radRichTextBox}" >
 
    <telerik:RadRibbonDropDownButton CollapseToMedium="WhenGroupIsMedium" Command="{Binding InsertSectionBreakCommand}" telerik:ScreenTip.Description="Add page, section, or column breaks to the document." Size="Medium" Text="Breaks" telerik:ScreenTip.Title="Insert Page and Section Breaks">
     ...

Additionally, note that in case you are using RadRichTextBox in Flow or FlowNoWrap mode, the visible effect of the command will be moving the caret on the next row as in those layout modes there is no concept of pagination. You can verify whether the section break was inserted correctly by turning the formatting symbols in the editor on:
<telerik:RadRichTextBox Name="radRichTextBox" ShowFormattingSymbols="True"/>

I hope this helps! Let us know if you have further comments or questions.

Regards,
Petya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Clifford
Top achievements
Rank 1
answered on 25 Sep 2013, 08:07 PM
Figured out where could insert section. That is fine.
Tags
RichTextBox
Asked by
Clifford
Top achievements
Rank 1
Answers by
Petya
Telerik team
Clifford
Top achievements
Rank 1
Share this question
or