Table of Contents

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 DockLayoutManager
documentGroup DocumentGroup

Properties

ActiveControl

public IStudioControl ActiveControl { get; }

Property Value

IStudioControl

ActivePanel

public ContentItem ActivePanel { get; }

Property Value

ContentItem

DockingControls

public IEnumerable<IStudioControl> DockingControls { get; }

Property Value

IEnumerable<IStudioControl>

DockingManager

public DockLayoutManager DockingManager { get; }

Property Value

DockLayoutManager

PredefinedControls

public IDictionary<Type, IStudioControl> PredefinedControls { get; }

Property Value

IDictionary<Type, IStudioControl>

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 SettingsStorage

Settings 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 IStudioControl
canClose bool

Returns

IStudioControl

OpenDocumentWindow(Type, string, bool)

public IStudioControl OpenDocumentWindow(Type controlType, string key = null, bool canClose = true)

Parameters

controlType Type
key string
canClose bool

Returns

IStudioControl

OpenDocumentWindow<T>(string, Func<T>, bool)

public IStudioControl OpenDocumentWindow<T>(string key, Func<T> getControl, bool canClose = true) where T : IStudioControl

Parameters

key string
getControl Func<T>
canClose bool

Returns

IStudioControl

Type Parameters

T

OpenDocumentWithKey(Type)

public IStudioControl OpenDocumentWithKey(Type controlType)

Parameters

controlType Type

Returns

IStudioControl

OpenToolWindow(IStudioControl, bool)

public IStudioControl OpenToolWindow(IStudioControl content, bool canClose = true)

Parameters

content IStudioControl
canClose bool

Returns

IStudioControl

OpenToolWindow(Type, string, bool)

public IStudioControl OpenToolWindow(Type controlType, string key = null, bool canClose = true)

Parameters

controlType Type
key string
canClose bool

Returns

IStudioControl

OpenToolWindow<T>(string, Func<T>, bool)

public IStudioControl OpenToolWindow<T>(string key, Func<T> getControl, bool canClose = true) where T : IStudioControl

Parameters

key string
getControl Func<T>
canClose bool

Returns

IStudioControl

Type Parameters

T

OpenToolWithKey(Type)

public IStudioControl OpenToolWithKey(Type controlType)

Parameters

controlType Type

Returns

IStudioControl

Remove(IStudioControl)

public bool Remove(IStudioControl content)

Parameters

content IStudioControl

Returns

bool

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 SettingsStorage

Settings storage.

Save(SettingsStorage, bool)

public void Save(SettingsStorage storage, bool force)

Parameters

storage SettingsStorage
force bool

SaveControl(IStudioControl)

public SettingsStorage SaveControl(IStudioControl control)

Parameters

control IStudioControl

Returns

SettingsStorage

SaveLayout()

public string SaveLayout()

Returns

string

Events

Changed

public event Action Changed

Event Type

Action

ControlChanged

public event Action<IStudioControl> ControlChanged

Event Type

Action<IStudioControl>

ControlRemoved

public event Action<IStudioControl> ControlRemoved

Event Type

Action<IStudioControl>

LayoutChanged

public event Action LayoutChanged

Event Type

Action