DiagramEditorControl

StockSharp.Xaml.Diagram

Graphical component for editing CompositionDiagramElement.

Наследует: UserControl

Реализует: IPersistable, IUndoRedoManager, IComponentConnector

Конструкторы

DiagramEditorControl()

Initializes a new instance of the DiagramEditorControl.

Свойства

Composition : CompositionDiagramElement

Composite element.

DoubleClickHandlers : IDictionary<Type, IDoubleClickHandler>

Double-click element handlers.

HelpCommand : ICommand

Help command.

IsEncrypted : bool

Is encrypted.

IsReadOnly : bool

Read-only mode.

OpenElementCommand : ICommand

Command for opening composition element.

OpenPropertiesCommand : ICommand

Command for opening element properties.

RedoCommand : ICommand

Redo command.

RemoveCommand : ICommand

Remove command.

Scale : double

Scale.

SelectedElement : DiagramElement

Selected element.

ShowOverview : bool

To show the review panel.

UndoCommand : ICommand

Undo command.

Методы

GetSelectionCopyElement() : CompositionDiagramElement

To create a new element from the selected elements in the diagram.

Возвращает: Composite element.

InitializeComponent()

InitializeComponent

Load(SettingsStorage)

Load settings.

storage
Settings storage.
Save(SettingsStorage)

Save settings.

storage
Settings storage.
SaveToImage(Stream)

To save the diagram as an image.

file
The content of file.
Select(DiagramElement)

Select element.

element

События

ElementDoubleClicked : Action<DiagramElement>

The event of the double click on the diagram element.

SelectionChanged : Action<DiagramElement>

The event of the element selection on the diagram.

SocketClicked : Action<DiagramSocket, MouseAction>

Socket clicked event.

Поля

CompositionProperty : DependencyProperty

DependencyProperty for Composition.

HelpCommandProperty : DependencyProperty

DependencyProperty for HelpCommand.

OpenElementCommandProperty : DependencyProperty

DependencyProperty for OpenElementCommand.

OpenPropertiesCommandProperty : DependencyProperty

DependencyProperty for OpenPropertiesCommand.

RedoCommandProperty : DependencyProperty

DependencyProperty for RedoCommand.

RemoveCommandProperty : DependencyProperty

DependencyProperty for RemoveCommand.

ScaleProperty : DependencyProperty

DependencyProperty for Scale.

ShowOverviewProperty : DependencyProperty

DependencyProperty for ShowOverview.

UndoCommandProperty : DependencyProperty

DependencyProperty for UndoCommand.