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).
实现: ICompositionModelBehavior<InMemoryCompositionModelNode, InMemoryCompositionModelLink>, ICloneable
属性
IsUndoManagerSuspended : bool
Undo manager is suspended if this property is set to true.
Links : IEnumerable<InMemoryCompositionModelLink>
Links.
Modifiable : bool
Is it possible to edit a composite element diagram.
Nodes : IEnumerable<InMemoryCompositionModelNode>
Nodes.
Parent : ICompositionModel
Parent.
UndoManager : IUndoManager
IUndoManager
方法
事件
BehaviorChanged : Action<ValueTuple<ModelChange, object, string, object, object, object, object>>
Changed event.