![Avatar](https://secure.gravatar.com/avatar/bb002e7971f399a7575b84c7b6d66719.jpg?s=64&d=identicon&r=g)
We have derived a ribbon control and added a new dependency property to it called TabsSources, which is a collection of view models that would be used to back a series of views, with each view corresponding to a tab in the ribbon control.
This works to actually create a correctly labeled tab within the ribbon control, but we've been unsuccessful thus far in populating the actual tabs with any content. Is there a best practice for populating ribbon tabs at runtime? The DP creates a new Tab and sets the Tab's DataContext to the ViewModel, but how would we write the xaml for the content to put in the corresponding View?
We've tried just using <ribbon:Tab...> in the view file but that did not work, and then we tried wrapping that in a <UserControl> but no luck there either.
Any thoughts/ideas on this?
Thanks in advance.
This works to actually create a correctly labeled tab within the ribbon control, but we've been unsuccessful thus far in populating the actual tabs with any content. Is there a best practice for populating ribbon tabs at runtime? The DP creates a new Tab and sets the Tab's DataContext to the ViewModel, but how would we write the xaml for the content to put in the corresponding View?
We've tried just using <ribbon:Tab...> in the view file but that did not work, and then we tried wrapping that in a <UserControl> but no luck there either.
Any thoughts/ideas on this?
Thanks in advance.