Hi,
I need to use XamRibbon control in my application and I need to follow mvvm approach. I want create tabs dynamically and wish to bind it to the xamribbon. I thought of binding an observablecollection of XamRibbonTabItem to the itemsource but there is no such property in XamRibbonTabs. Can somebody help me with this?
Regards,Avnish
You can easily add this functionality yourself with the use of an AttachedProperty. You can see the AttachedProperty approach used for the gallery tool in this blog post:
http://brianlagunas.com/2012/09/07/xamribboncreating-a-color-gallery-the-mvvm-way/
Ideally, you would have no reference to any UI components in your VM, but the MVVM police will not come arrest you for having UI instacnes in your VM. :0)
Obviously, you will need to modify the code to work for your ribbon tab scenario.
Thanks for the reply Stefan
Hello Avnish,
After some research TabsItemsSource has been determine as a new Product Idea. I have sent your Product Idea directly to our product management team. Our product team chooses new Product Ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested ideas, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time. Your reference number for this Product Idea is PI12110128
If you would like to follow up on your Product Idea at a later point, you may contact Developer Support management via email. Please include the reference number of your Product Idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com