adding other controls to Ribbon panel

Ribbon for WPF Forum

Posted 17 years ago by Kurt Jensen
Version: 1.0.0330
we have tried but cannot find a way to add other WPF controls to a ribbon panel.. for example, one of our lists will be in a ListBox, but any attempt to add a non-Ribbon control crashes.

how do I add a ListBox to a panel?

Comments (1)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Kurt,

You can do this sort of thing by using a CustomControl however when testing just now we found that it will only do a style for small size and not a larger one, which is probably what you'd want for your ListBox.

If you can give some requirements on how you'd like it to work and appear in the ribbon, that would help. We're happy to implement anything to make this work.

This sort of code does embed the ListBox but as mentioned above, it will show up in a small size:

    <ListBox Width="100">
When you reply, please indicate if when adding this to the ribbon (I assume directly under a Group to achieve a large size) you still would like the ImageSource and Label properties to show. The small control size does show the ImageSource and Label if specified. We want to ensure that whatever we implement ends up working for other embedded controls as well. So perhaps if an ImageSource and Label are specified they appear to the left of a large item?

Also we do anticipate a new maintenance release in the near future with some cool new features, including styles for the ScrollBars that appear in ComboBoxes in the Ribbon. You will be able to apply these to your ListBox as well!

Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.