RibbonGroup DataBinding

Ribbon for WPF Forum

Posted 14 years ago by Jon Cain - Software Architect, AutoMon Corporation
Version: 9.2.0514
Is is possible to databind an ItemsSource to the Ribbon Group control? I have the following code, but rather that displaying my popup buttons, it just renders ToString() on my objects.

  Label="Dashboard" ItemsSource="{Binding Configuration.Categories}" >
      <ribbon:PopupButton Label="{Binding Description}" VariantSize="Large" ImageSourceLarge="{Binding ImageSourceLarge}" ImageSourceSmall="{Binding ImageSourceSmall}" >
        <ribbon:Menu ItemsSource="{Binding Gadgets}" >
              <ribbon:Button Label="{Binding Description}" ImageSourceSmall="{Binding ImageSourceSmall}"
                             Command="{Binding DataContext.AddGadgetItemCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ribbon:Group}}}" CommandParameter="{Binding}" />

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Jon,

If you want to email over a simple sample project (without any contained .exe files) that shows it happening, we can take a look. However I'm not sure what you're doing here will work though.

Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.