Add scroll bar to Insert Merge Field Ribbon button

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

    Posted 01 Nov 2013 Link to this post

    I have 55 merge fields right now in the RadRichTextBox Merge collection. As you have implemented it, this list does not have a scroll bar when the list gets cut off at the bottom of the screen. Here is my current XAML, which is from your template:

    	<telerik:RadRibbonDropDownButton Name="MailingsInsertFieldButton"
    				 CollapseToMedium="WhenGroupIsMedium"
    				 telerik:ScreenTip.Description="You can insert fields such as Name or Address, which will be replaced automatically with information from a database or contact list for each copy of the form letter."
    				 LargeImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/InsertMergeField.png"
    				 telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding InsertMergeFieldEmptyCommand}"
    				 Size="Large"
    				 Text="Insert Merge Field"
    				 telerik:ScreenTip.Title="Insert Merge Field" />
  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 06 Nov 2013 Link to this post

    Hello,

    Thanks for getting to us with this!

    We are aware of this and we will try to make the respective content scrollable out of the box in one of our next releases. In the meantime, you can set the DropDownMaxHeight of the DropDownButton which shows the merge fields. Additionally, you will need to apply a custom template to the button. Please find attached a resource dictionary containing such template and below you can find how to modify the XAML in the ribbon
    <telerik:RadRibbonDropDownButton CollapseToMedium="WhenGroupIsMedium"
                                     telerik:ScreenTip.Description="You can insert fields such as Name or Address, which will be replaced automatically with information from a database or contact list for each copy of the form letter."
                                     LargeImage="/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/InsertMergeField.png"
                                     telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding InsertMergeFieldEmptyCommand}"
                                     Size="Large" Text="Insert Merge Field"
                                     DropDownMaxHeight="200"
                                     Template="{StaticResource MergeFieldDropDownButtonTemplate}"
                                     telerik:ScreenTip.Title="Insert Merge Field" />

    I hope this is helpful! Let us know if you have other questions or comments.

    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 08 Nov 2013 Link to this post

    Thanks, worked great
Back to Top