Fix for expand/hide ribbon

This commit is contained in:
John Jenko 2009-11-20 14:31:16 +00:00
parent a66282af03
commit ee2a108063

View File

@ -139,19 +139,16 @@ namespace Volian.Controls.Library
{
InitializeComponent();
_RibbonControl.SizeChanged += new EventHandler(_RibbonControl_SizeChanged);
// When AutoExpand is set to true, [CTRL][F1] will hide/expand the ribbon bar
// causing its state to be out of sync with that of the QAT menu option to
// expand/hide the ribbon.
// Note: the QAT menu is to the right of the V start button in the upper left
_RibbonControl.AutoExpand = false;
}
void _RibbonControl_SizeChanged(object sender, EventArgs e)
{
this.Size = _RibbonControl.Size;
if (MyStepItem != null)
{
// This is needed to reset the Ribbon Expanded status when [CTRL][F1] is used.
// We found that using the [CTRL][F1] keystroke will cause the Ribbon state to
// be out so of sync with that of the QAT menu option to expand/hide the ribbon.
// Note: the QAT menu is to the right of the V start button in the upper left
_RibbonControl.Expanded = MyStepItem.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.RibbonExpanded;
}
}
public bool Expanded
{