Folks,
Wondering, how can we retrive the value of ComboEditorTool inside XamRibbon/Tab/RibbonGroup from code behind in a different page?
My parent window has ribbon and frame to display the requested page. and on click i want to retrive the value from combotexteditor into new page in frame. i have created an instance of class in framepage gets the ribbon from parent. but how to get the value from ribbon?
Thanks in advance...
Hi,
If I understand you correctly, your main window contains a ribbon with a Tab that contains a RibbonGroup. The Ribbon Group contains two user controls, one with a xamComboEditor. On a button click from another user control in the same Ribbon Group you want to be able to retrieve the items from the xamComboEditor.
You can access the xamComboEditor in the other user control thru the visual tree. On the button click you can reference the Parent which is a RibbonGroup and then identify the Items looking for the user control.
(this.Parent as Infragistics.Windows.Ribbon.RibbonGroup ).Items[n] which would be the user control with the xamComboEditor
((this.Parent as Infragistics.Windows.Ribbon.RibbonGroup ).Items[n] as UserControl1).xmComboEditor1
If your button is in a different RibbonGroup from the xamComboEditor you would need to go up the tree a little further but that’s the basic idea.
Please let me know if this information has been helpful.
Hi Gerry,
I’m just checking back if you have any further questions.
Please let me know if there is anything I can help with further.