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
I just tried binding to SelectedItem but that doesn't seem to work either. I probably have at least 10 combos in the ribbon where I will need to do this with objects and 3-4 combos using enums. I included the classes and some code in a separate email.
I'm also trying to figure out how to make the texttool read only so I can display some information via binding.
Thanks,
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.