This is a migrated thread and some comments may be shown as answers.

Accessing unnamed RibbonGroups

1 Answer 40 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 28 Oct 2011, 10:29 PM
Hello,

I am wondering what the best way to access RibbonGroups that belong to a RibbonTab is.  I am generating RibbonGroups dynamically, and they are not explicitly named, so I can't access them by name.  I tried writing some code to get the RibbonGroup children of a RibbonTab, but the children seem to be mostly Grids and Borders.

What I would like to do is animate all RibbonGroups that belong to a tab when that tab is opened.  Is there an easier way of doing this, or what can I do to access the properties of the RibbonGroups, and storyboard them?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 02 Nov 2011, 03:40 PM
Hi Chris,

Usually the RadRibbontab.Items collection will hold the RadRibbonGroups inside the tab. You can also use RadRibbonTab.ItemContainerGenerator.ContainerFromItem() method if you use databinding.  
Which properties of the RadRibbonGroup do you need to animate? Please note that animating Width or Height will be impossible or buggy in most cases. 

Regards,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RibbonView and RibbonWindow
Asked by
Chris
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or