Added code to minimize and resize ribbon
This commit is contained in:
parent
51c044791c
commit
291f354893
@ -33,6 +33,17 @@ namespace Volian.Controls.Library
|
|||||||
private int _UniqueBarCount;
|
private int _UniqueBarCount;
|
||||||
private ItemInfo _MyItemInfo = null;
|
private ItemInfo _MyItemInfo = null;
|
||||||
private StepItem _MyStepItem = null;
|
private StepItem _MyStepItem = null;
|
||||||
|
private bool _RibbonExpanded=true;
|
||||||
|
public bool RibbonExpanded
|
||||||
|
{
|
||||||
|
get { return _RibbonExpanded; }
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_RibbonExpanded = value;
|
||||||
|
foreach (DisplayTabItem tabItem in _MyDisplayTabItems.Values)
|
||||||
|
tabItem.MyStepTabPanel.MyStepTabRibbon.Expanded = _RibbonExpanded;
|
||||||
|
}
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
#region Events
|
#region Events
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -14,6 +14,11 @@ namespace Volian.Controls.Library
|
|||||||
#region Private Fields
|
#region Private Fields
|
||||||
private DisplayTabControl _MyDisplayTabControl;
|
private DisplayTabControl _MyDisplayTabControl;
|
||||||
private StepTabRibbon _MyStepTabRibbon;
|
private StepTabRibbon _MyStepTabRibbon;
|
||||||
|
public StepTabRibbon MyStepTabRibbon
|
||||||
|
{
|
||||||
|
get { return _MyStepTabRibbon; }
|
||||||
|
set { _MyStepTabRibbon = value; }
|
||||||
|
}
|
||||||
private StepPanel _MyStepPanel;
|
private StepPanel _MyStepPanel;
|
||||||
private DisplayTabItem _MyDisplayTabItem;
|
private DisplayTabItem _MyDisplayTabItem;
|
||||||
#endregion
|
#endregion
|
||||||
@ -100,6 +105,7 @@ namespace Volian.Controls.Library
|
|||||||
//_MyTabRibbon.MyDisplayRTB = null;
|
//_MyTabRibbon.MyDisplayRTB = null;
|
||||||
_MyStepTabRibbon.MyStepItem = null;
|
_MyStepTabRibbon.MyStepItem = null;
|
||||||
this.Controls.Add(_MyStepTabRibbon);
|
this.Controls.Add(_MyStepTabRibbon);
|
||||||
|
_MyStepTabRibbon.Expanded = _MyDisplayTabControl.RibbonExpanded;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Setup this within control
|
/// Setup this within control
|
||||||
|
@ -90,6 +90,16 @@ namespace Volian.Controls.Library
|
|||||||
public StepTabRibbon()
|
public StepTabRibbon()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
_RibbonControl.SizeChanged += new EventHandler(_RibbonControl_SizeChanged);
|
||||||
|
}
|
||||||
|
void _RibbonControl_SizeChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.Size = _RibbonControl.Size;
|
||||||
|
}
|
||||||
|
public bool Expanded
|
||||||
|
{
|
||||||
|
get { return _RibbonControl.Expanded; }
|
||||||
|
set { _RibbonControl.Expanded = value; }
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
#region Events
|
#region Events
|
||||||
|
Loading…
x
Reference in New Issue
Block a user