That's the expected behavior of the RibbonView
control. It's important to note that the RibbonView
control is an ItemsControl
so in a PRISM scenario, it expects each view to represent one item that has to be injected in its Items collection. And this is why when you inject your view of type UserControl
, the RibbonView
creates a container of type RadRibbonTab
and wraps the view in that container.
If you need to modify this default behavior, you can create a custom RegionAdapter
for the RibbonView
control. The RegionAdapter
in a PRISM scenario is responsible for creating a region and associating it to the control. It also controls how the injected views in the region will be visualized in it. So by creating a custom region adapter
, you'll be able to get the view, look through its content and insert each RadRibbonTab
control it contains in the RibbonView.Items
collection. If you decide to use this approach and you need help in implementing it, please let us know.
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>