Can a RibbonWindow be injectd into a StackPanel?

Topics: Prism v4 - WPF 4
Jun 22, 2012 at 7:18 PM

Can a RibbonWindow module be injected into a StackPanel in a ShellWindow?

Developer
Jun 22, 2012 at 8:58 PM

Hi,

As far as I know, this is not possible because:

  • In WPF it's not possible to host a Window inside another control. As RibbonWindow inherits from type Window, I believe this limitation is present in it too. You can find better support regarding this specific item in the WPF Forums.
  • Also, StackPanel is a control which inherits from type Panel. As Prism does not provide region adapters for Panels as out of the box, it's not possible to define a StackPanel as a region by default.

Regards,

Damian Cherubini
http://blogs.southworks.net/dcherubini