Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
Ribbon ComboBox Editor how to bind to a class
posted

I'm trying to figure out how to bind the Ribbons Conbobox editor to an object. I have the ItemsSource working ok, but I can't seem to figure out how to get the selecteditem to bind to the class. 

 

 

 

<igRibbon:ComboEditorTool Caption="Table" Name="Table" ItemsSource="{Binding Table.Tables}" DisplayMemberPath="Description" ValuePath="ResourceId"></igRibbon:ComboEditorTool>

The RibbonGroup's DataContext is being set in code to a class and in the class is Class.Table and in Class.Table is the ResourceID. I've tried various combinations in the ValuePath like Table.ResourceID and others. Should I be using something else other than ValuePath? I even tried hard coding to set the SelectedItem to the Table class but was getting messages about the combo needed to be in edit mode.

Thanks

 

 

Parents
  • 440
    posted

    Hi,

    if you need to bind the SelectedItem property just try with  SelectedItem="{Binding Table.ResourceID}". If that doesn't help you please show us the Class you are binding with.

    Regards.

Reply Children