InMemoryCompositionModelBehavior

StockSharp.Diagram

In-memory implementation of ICompositionModelBehavior: keeps nodes and links in observable collections and raises BehaviorChanged notifications, without any visual or built-in undo backing of its own (an IUndoManager can be attached externally). Suitable for headless hosts and for UI front-ends that render the model directly (e.g. the Avalonia diagram editor).

Implements: ICompositionModelBehavior<InMemoryCompositionModelNode, InMemoryCompositionModelLink>, ICloneable

Properties

IsUndoManagerSuspended : bool

Undo manager is suspended if this property is set to true.

Modifiable : bool

Is it possible to edit a composite element diagram.

UndoManager : IUndoManager

IUndoManager

Methods

CommitTransaction(string) : bool

Commit transaction.

name
Operation name.

Returns: Operation result.

FindNodeByKey(string) : InMemoryCompositionModelNode

Find node by key.

key
Key.
RollbackTransaction() : bool

Rollback transaction.

Returns: Operation result.

StartTransaction(string) : bool

Start transaction.

name
Operation name.

Returns: Operation result.

Events