Class CompositionRegistry
The storage of composite elements.
Namespace: StockSharp.Xaml.Diagram
Assembly: StockSharp.Xaml.Diagram.dll
Syntax
public class CompositionRegistry : Object
Constructors
CompositionRegistry()
Initializes a new instance of the CompositionRegistry.
Declaration
public CompositionRegistry()
Properties
DiagramElements
List of elements.
Declaration
public INotifyList<DiagramElement> DiagramElements { get; }
Property Value
Type | Description |
---|---|
Ecng.Collections.INotifyList<DiagramElement> |
Methods
Deserialize(SettingsStorage)
To deserialize the composite element.
Declaration
public CompositionDiagramElement Deserialize(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Settings storage. |
Returns
Type | Description |
---|---|
CompositionDiagramElement | Composite element. |
Load(CompositionDiagramElement, SettingsStorage)
Load composite element from settings.
Declaration
public void Load(CompositionDiagramElement element, SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
CompositionDiagramElement | element | Composite element. |
Ecng.Serialization.SettingsStorage | storage | Settings storage. |
Serialize(CompositionDiagramElement, Nullable<SchemeTypes>)
To serialize the composite element.
Declaration
public SettingsStorage Serialize(CompositionDiagramElement composition, Nullable<SchemeTypes> schemeType = null)
Parameters
Type | Name | Description |
---|---|---|
CompositionDiagramElement | composition | Composite element. |
Nullable<SchemeTypes> | schemeType | Scheme type. |
Returns
Type | Description |
---|---|
Ecng.Serialization.SettingsStorage | Settings storage. |