Fix for expand/hide ribbon
This commit is contained in:
parent
a66282af03
commit
ee2a108063
@ -139,19 +139,16 @@ namespace Volian.Controls.Library
|
|||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
_RibbonControl.SizeChanged += new EventHandler(_RibbonControl_SizeChanged);
|
_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)
|
void _RibbonControl_SizeChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
this.Size = _RibbonControl.Size;
|
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
|
public bool Expanded
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user