Show / Hide Table of Contents

Class LayoutManager

Inheritance
Object
BaseLogSource
BaseLogReceiver
LayoutManager
Implements
Ecng.Serialization.IPersistable
ILogReceiver
ILogSource
IDisposable
Inherited Members
BaseLogReceiver.ILogReceiver.AddLog(LogMessage)
BaseLogSource.RaiseLog(LogMessage)
BaseLogSource.ToString()
BaseLogSource.Id
BaseLogSource.Name
BaseLogSource.Parent
BaseLogSource.LogLevel
BaseLogSource.CurrentTime
BaseLogSource.IsRoot
BaseLogSource.ParentRemoved
BaseLogSource.Log
Namespace: StockSharp.Studio.Controls
Assembly: StockSharp.Studio.Controls.dll
Syntax
public sealed class LayoutManager : BaseLogReceiver, IPersistable, ILogReceiver, ILogSource, IDisposable

Constructors

LayoutManager(DockLayoutManager, DocumentGroup)

Declaration
public LayoutManager(DockLayoutManager dockingManager, DocumentGroup documentGroup = null)
Parameters
Type Name Description
DevExpress.Xpf.Docking.DockLayoutManager dockingManager
DevExpress.Xpf.Docking.DocumentGroup documentGroup

Properties

ActiveControl

Declaration
public IStudioControl ActiveControl { get; }
Property Value
Type Description
IStudioControl

ActivePanel

Declaration
public ContentItem ActivePanel { get; }
Property Value
Type Description
DevExpress.Xpf.Docking.ContentItem

DockingControls

Declaration
public IEnumerable<IStudioControl> DockingControls { get; }
Property Value
Type Description
IEnumerable<IStudioControl>

DockingManager

Declaration
public DockLayoutManager DockingManager { get; }
Property Value
Type Description
DevExpress.Xpf.Docking.DockLayoutManager

PredefinedControls

Declaration
public IDictionary<Type, IStudioControl> PredefinedControls { get; }
Property Value
Type Description
IDictionary<Type, IStudioControl>

Methods

Activate(IStudioControl)

Declaration
public void Activate(IStudioControl control)
Parameters
Type Name Description
IStudioControl control

Activate(Func<IStudioControl, Boolean>)

Declaration
public void Activate(Func<IStudioControl, bool> where)
Parameters
Type Name Description
Func<IStudioControl, Boolean> where

Clear()

Declaration
public void Clear()

DisposeManaged()

Declaration
protected override void DisposeManaged()

Load(SettingsStorage)

Declaration
public override void Load(SettingsStorage storage)
Parameters
Type Name Description
Ecng.Serialization.SettingsStorage storage
Overrides
BaseLogSource.Load(SettingsStorage)

LoadControl(SettingsStorage)

Declaration
public void LoadControl(SettingsStorage storage)
Parameters
Type Name Description
Ecng.Serialization.SettingsStorage storage

LoadLayout(String)

Declaration
public void LoadLayout(string layout)
Parameters
Type Name Description
String layout

MarkControlChanged(IStudioControl)

Declaration
public void MarkControlChanged(IStudioControl control)
Parameters
Type Name Description
IStudioControl control

OpenDocumentWindow(IStudioControl, Boolean)

Declaration
public IStudioControl OpenDocumentWindow(IStudioControl content, bool canClose = true)
Parameters
Type Name Description
IStudioControl content
Boolean canClose
Returns
Type Description
IStudioControl

OpenDocumentWindow(Type, String, Boolean)

Declaration
public IStudioControl OpenDocumentWindow(Type controlType, string key = null, bool canClose = true)
Parameters
Type Name Description
Type controlType
String key
Boolean canClose
Returns
Type Description
IStudioControl

OpenDocumentWindow<T>(String, Func<T>, Boolean)

Declaration
public IStudioControl OpenDocumentWindow<T>(string key, Func<T> getControl, bool canClose = true)
    where T : IStudioControl
Parameters
Type Name Description
String key
Func<T> getControl
Boolean canClose
Returns
Type Description
IStudioControl
Type Parameters
Name Description
T

OpenDocumentWithKey(Type)

Declaration
public IStudioControl OpenDocumentWithKey(Type controlType)
Parameters
Type Name Description
Type controlType
Returns
Type Description
IStudioControl

OpenToolWindow(IStudioControl, Boolean)

Declaration
public IStudioControl OpenToolWindow(IStudioControl content, bool canClose = true)
Parameters
Type Name Description
IStudioControl content
Boolean canClose
Returns
Type Description
IStudioControl

OpenToolWindow(Type, String, Boolean)

Declaration
public IStudioControl OpenToolWindow(Type controlType, string key = null, bool canClose = true)
Parameters
Type Name Description
Type controlType
String key
Boolean canClose
Returns
Type Description
IStudioControl

OpenToolWindow<T>(String, Func<T>, Boolean)

Declaration
public IStudioControl OpenToolWindow<T>(string key, Func<T> getControl, bool canClose = true)
    where T : IStudioControl
Parameters
Type Name Description
String key
Func<T> getControl
Boolean canClose
Returns
Type Description
IStudioControl
Type Parameters
Name Description
T

OpenToolWithKey(Type)

Declaration
public IStudioControl OpenToolWithKey(Type controlType)
Parameters
Type Name Description
Type controlType
Returns
Type Description
IStudioControl

Remove(IStudioControl)

Declaration
public bool Remove(IStudioControl content)
Parameters
Type Name Description
IStudioControl content
Returns
Type Description
Boolean

Remove(Func<IStudioControl, Boolean>)

Declaration
public void Remove(Func<IStudioControl, bool> where)
Parameters
Type Name Description
Func<IStudioControl, Boolean> where

Save(SettingsStorage)

Declaration
public override void Save(SettingsStorage storage)
Parameters
Type Name Description
Ecng.Serialization.SettingsStorage storage
Overrides
BaseLogSource.Save(SettingsStorage)

Save(SettingsStorage, Boolean)

Declaration
public void Save(SettingsStorage storage, bool force)
Parameters
Type Name Description
Ecng.Serialization.SettingsStorage storage
Boolean force

SaveControl(IStudioControl)

Declaration
public SettingsStorage SaveControl(IStudioControl control)
Parameters
Type Name Description
IStudioControl control
Returns
Type Description
Ecng.Serialization.SettingsStorage

SaveLayout()

Declaration
public string SaveLayout()
Returns
Type Description
String

Events

Changed

Declaration
public event Action Changed
Event Type
Type Description
Action

ControlChanged

Declaration
public event Action<IStudioControl> ControlChanged
Event Type
Type Description
Action<IStudioControl>

ControlRemoved

Declaration
public event Action<IStudioControl> ControlRemoved
Event Type
Type Description
Action<IStudioControl>

LayoutChanged

Declaration
public event Action LayoutChanged
Event Type
Type Description
Action

Implements

Ecng.Serialization.IPersistable
ILogReceiver
ILogSource
System.IDisposable

Extension Methods

Paths.Serialize<T>(T, String)
Paths.Serialize<T>(T)
EditorExtensions.ToItemsSource(Object, Type, Nullable<Boolean>, Nullable<ListSortDirection>, Func<IItemsSourceItem, Boolean>, Func<Object, String>, Func<Object, String>)
XamlHelper.WpfCast<T>(Object)
XamlHelper.CopyToClipboard<T>(T)
XamlHelper.EnsureUIThread(Object)
☀
☾
In This Article
Back to top
Copyright © StockSharp.
☀
☾