How to bind gallery items to a collection?

Ribbon for WPF Forum

Posted 17 years ago by Brad Daszynski
Version: 1.0.0347
Hi. I am using a gallery and I'm wanting to bind its items to an observable collection, similar to how I would bind a normal listbox's itemssource to a collection. I see the Gallery object is an IMenu and doesn't have an ItemsSource property. What would be the best way for me to accomplish what I'm talking about? Thanks.

Comments (1)

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

The bad news is that the Gallery in the current build doesn't have an ItemsSource so you'd probably have to attach to your ObservableCollection's CollectionChanged event and in there update the Items manually on the Gallery.

The good news is that we are currently hard at work on a huge update to Ribbon and this sort of thing is definitely part of it. Gallery will support ItemsSource.

Actipro Software Support

The latest build of this product (v24.1.2) 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.