How to iterate through controls in ribbon tab?

Ribbon for WPF Forum

Posted 7 years ago by Michael Bayer
Version: 16.1.0633
Avatar

Hi,

I have a ribbon tab

<ribbon:Tab x:Class="RibbonTabAssetmanagement" x:Name="RibbonTabAssetmanagement"

 with a couple of RibbonGroups and controls lilke Buttons in it.

How can I iterate through the controls of this tab (for instance to assign permissions) in MVVM?

Thank you in advance

Michael

Comments (2)

Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Michael,

Ribbon doesn't support MVVM but you can walk the contents by looking at the controls, and these kinds of collections:

  • Ribbon.Tabs (items must be Tabs)
  • Tab.Items (items must be Groups)
  • Group.Items (items can be various interactive controls like ribbon:Button or panels like ribbon:StackPanel or ribbon:RowPanel)
  • StackPanel.Children (items can be various interactive controls like ribbon:Button)
  • RowPanel.Children (items can be various interactive controls like ribbon:Button)


Actipro Software Support

Posted 7 years ago by Michael Bayer
Avatar

Thank you.

It's not really clear for me, but I will try it. Maybe I have to come back to this thread.

Regards

Michael

[Modified 7 years ago]

The latest build of this product (v24.1.2) was released 2 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.