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
1805
retriving value from ComboEditorTool inside XamRibbon
posted

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...

Parents
  • 12875
    Verified Answer
    posted

    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.

Reply Children
No Data