RibbonGallery.SelectedItem not bound

Ribbon for WPF Forum

Posted 11 years ago by David Sherwood
Version: 12.1.0560
Platform: .NET 4.0
Environment: Windows 7 (64-bit)
Avatar

I have SelectedItem specified on my RibbonGallery but it isn't being bound.

<ribbon:RibbonGallery 
     ItemsSource="{Binding ArchivedItems}" 
     SelectedItem="{Binding SelectedItem}"
>

 I added a SelectedItemChanged event so I could look at the RibbonGallery and found no BindingExpression for SelectedItem.

So why is it not being set?

Comments (2)

Posted 11 years ago by David Sherwood
Avatar

I found the fix.

<ribbon:RibbonGallery 
     ItemsSource="{Binding ArchivedItems}" 
     SelectedItem="{Binding SelectedItem,Mode=TwoWay}"
>

 Why isn't "TwoWay" the default? It is on every other control.

Answer - Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi David,

Thanks for the suggestion, we'll change the property to TwoWayByDefault for the next version.


Actipro Software Support

The latest build of this product (v24.1.2) was released 1 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.