[Info] Hosting the Ribbon control: SplitContainer or ToolStripContainer?

Mar 27, 2010 at 2:51 AM

Most of the samples use SplitContainers ...my app uses a ToolStripContainer?   ...any issues hosting the Ribbon in TopToolStripPanel of a ToolStripContainer?

Michael Herman (Toronto)

Mar 27, 2010 at 9:25 AM

The SplitContainer is only used to easily move the other controls according to the ribbon height. It is not really a container for the ribbon.

You can live without it if you handle the sizing issues yourself. You can ready about it in Part 3 of my Post series, see documentation.

Mar 27, 2010 at 2:34 PM
Edited Mar 27, 2010 at 6:49 PM

So the Ribbon is kind of like an "owner draw" scenario in that it draws on top of whatever window handle its given? ...and it's up to the form to make sure the real estate at the top of the window is available for the [ribbon]?

BTW, it appears TopToolStripPanel height can't be forced.

Michael Herman (Toronto)

Mar 27, 2010 at 2:44 PM

I'm not sure the term "owner draw" fits here, but the behavior is like you've said.