Class LayoutManager
- Namespace
- StockSharp.Studio.Controls
- Assembly
- StockSharp.Studio.Controls.dll
public sealed class LayoutManager : BaseLogReceiver, IPersistable, ILogReceiver, ILogSource, IDisposable
- Inheritance
-
LayoutManager
- Implements
-
IPersistable
- Inherited Members
- Extension Methods
Constructors
LayoutManager(DockLayoutManager, DocumentGroup)
public LayoutManager(DockLayoutManager dockingManager, DocumentGroup documentGroup = null)
Parameters
dockingManager
DockLayoutManagerdocumentGroup
DocumentGroup
Properties
ActiveControl
public IStudioControl ActiveControl { get; }
Property Value
ActivePanel
public ContentItem ActivePanel { get; }
Property Value
- ContentItem
DockingControls
public IEnumerable<IStudioControl> DockingControls { get; }
Property Value
DockingManager
public DockLayoutManager DockingManager { get; }
Property Value
- DockLayoutManager
PredefinedControls
public IDictionary<Type, IStudioControl> PredefinedControls { get; }
Property Value
Methods
Activate(IStudioControl)
public void Activate(IStudioControl control)
Parameters
control
IStudioControl
Activate(Func<IStudioControl, bool>)
public void Activate(Func<IStudioControl, bool> where)
Parameters
where
Func<IStudioControl, bool>
Clear()
public void Clear()
DisposeManaged()
protected override void DisposeManaged()
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
LoadControl(SettingsStorage)
public void LoadControl(SettingsStorage storage)
Parameters
storage
SettingsStorage
LoadLayout(string)
public void LoadLayout(string layout)
Parameters
layout
string
MarkControlChanged(IStudioControl)
public void MarkControlChanged(IStudioControl control)
Parameters
control
IStudioControl
OpenDocumentWindow(IStudioControl, bool)
public IStudioControl OpenDocumentWindow(IStudioControl content, bool canClose = true)
Parameters
content
IStudioControlcanClose
bool
Returns
OpenDocumentWindow(Type, string, bool)
public IStudioControl OpenDocumentWindow(Type controlType, string key = null, bool canClose = true)
Parameters
Returns
OpenDocumentWindow<T>(string, Func<T>, bool)
public IStudioControl OpenDocumentWindow<T>(string key, Func<T> getControl, bool canClose = true) where T : IStudioControl
Parameters
Returns
Type Parameters
T
OpenDocumentWithKey(Type)
public IStudioControl OpenDocumentWithKey(Type controlType)
Parameters
controlType
Type
Returns
OpenToolWindow(IStudioControl, bool)
public IStudioControl OpenToolWindow(IStudioControl content, bool canClose = true)
Parameters
content
IStudioControlcanClose
bool
Returns
OpenToolWindow(Type, string, bool)
public IStudioControl OpenToolWindow(Type controlType, string key = null, bool canClose = true)
Parameters
Returns
OpenToolWindow<T>(string, Func<T>, bool)
public IStudioControl OpenToolWindow<T>(string key, Func<T> getControl, bool canClose = true) where T : IStudioControl
Parameters
Returns
Type Parameters
T
OpenToolWithKey(Type)
public IStudioControl OpenToolWithKey(Type controlType)
Parameters
controlType
Type
Returns
Remove(IStudioControl)
public bool Remove(IStudioControl content)
Parameters
content
IStudioControl
Returns
Remove(Func<IStudioControl, bool>)
public void Remove(Func<IStudioControl, bool> where)
Parameters
where
Func<IStudioControl, bool>
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
Save(SettingsStorage, bool)
public void Save(SettingsStorage storage, bool force)
Parameters
storage
SettingsStorageforce
bool
SaveControl(IStudioControl)
public SettingsStorage SaveControl(IStudioControl control)
Parameters
control
IStudioControl
Returns
- SettingsStorage
SaveLayout()
public string SaveLayout()
Returns
Events
Changed
public event Action Changed
Event Type
ControlChanged
public event Action<IStudioControl> ControlChanged
Event Type
ControlRemoved
public event Action<IStudioControl> ControlRemoved
Event Type
LayoutChanged
public event Action LayoutChanged