Aug 18, 2012 at 6:07 AM
Edited Aug 18, 2012 at 6:09 AM
I am working on a New Project.
I have a Ribbon and a Status Bar in the Grid.
I want to DockFill a Panel in the RibbonWindow.
Meaning that the Panel will cover the whole area except the Ribbon and a StatusBar.
How can I accomplish that??
I have tried it using the Margin property of the Panel, which works pretty well!
But, when the Ribbon gets collapsed I cannot fill the Panel to the Collapsed Ribbon area!
I have tried the following code in the "IsCollapsedChanged" Event but without any Luck.
private void RibbonCollapsed(object sender, DependencyPropertyChangedEventArgs e)
DockPanel.Height = MyWindow.ActualHeight - (StatusStrip.ActualHeight + MyRibbon.ActualHeight);
Any Idea how to do it will also solve the problem.