Add scrollbars for mail merge fields drop-down

2 posts, 0 answers
  1. Steven
    Steven avatar
    18 posts
    Member since:
    Sep 2012

    Posted 02 Apr 2014 Link to this post

    Is it possible to add scroll bars to the mail merge field drop-down box? Our mail merge source can have 15+ fields in it. When a user is editing RTB content and clicks the Insert Merge Field button the list pops up but half the fields are not visible and there's no way to scroll the list. Does this require handling the insert command and customizing the drop-down? Even turning on CanVerticallyScroll doesn't seem to help.

    Steve
  2. Steven
    Steven avatar
    18 posts
    Member since:
    Sep 2012

    Posted 04 Apr 2014 in reply to Steven Link to this post

    Just to close out on this in case anyone hits the same issue. We ended up just customizing the merge fields drop-down. Instead of using a StackPanel to hold the children, we replaced it with a ListBox and added the fields to its Items collection. If you do this, make sure you add width to the drop-down to compensate for the scroll bars or you'll end up with horizontal bars too.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top