You can pretty much get what you want and with a little extra coding but with one restriction. Use the following process...
1, Create a new Form
2, Set KryptonForm as the base class
3, Drop a KryptonPanel onto the client area
4, Set the Dock=Right for the KryptonPanel
5, Drop a KryptonRibbon on the client area.
Now you have the situation you require as the ribbon will only extend to the right until it meets the docked panel on the right hand side. There is an issue with this when using Vista. Under Vista when you have custom chrome and the ribbon it reverts to showing using the glassy borders. This does not work when you have the panel docked on the right as you will notice the panel uptends up and into the top border! To get around this set the AllowFormIntegrate property on the KryptonRibbon to False. Now it works fine but you are stuck with the Office 2007 custom chrome under Vista. This custom border is the restriction I mentioned.
The only remaining issue is that the docked panel on the right extends all the way down to the bottom of the client area. So when you add your control for taking up the remainder of the client area it does not extend to the right edge in the way I assume you would like. The only way around this is that you would need to hook into the form OnSize and manually resize the filler panel so it sizes as needed. So drag and drop another KryptonPanel onto the remainding client area and then use this code to set its size...
- Code: Select all
protected override void OnSizeChanged(EventArgs e)
{
kryptonPanel2.SetBounds(0,
kryptonRibbon1.Height,
ClientSize.Width,
ClientSize.Height - kryptonRibbon1.Height);
base.OnSizeChanged(e);
}
I just tried this and it works pretty well.