InsertSectionBreakCommand

3 posts, 1 answers
  1. Clifford
    Clifford avatar
    25 posts
    Member since:
    Sep 2013

    Posted 18 Sep 2013 Link to this post

    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. Answer
    Petya
    Admin
    Petya avatar
    975 posts

    Posted 23 Sep 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Clifford
    Clifford avatar
    25 posts
    Member since:
    Sep 2013

    Posted 25 Sep 2013 Link to this post

    Figured out where could insert section. That is fine.
Back to Top