DiagramEditorControl

StockSharp.Xaml.Diagram

Graphical component for editing CompositionDiagramElement.

Inherits: UserControl

Implements: IPersistable, IUndoRedoManager, IComponentConnector

Constructors

DiagramEditorControl
public DiagramEditorControl()
diagramEditorControl = DiagramEditorControl()

Initializes a new instance of the DiagramEditorControl.

Properties

Composition
public CompositionDiagramElement Composition { get; set; }
value = diagramEditorControl.Composition
diagramEditorControl.Composition = value

Composite element.

DoubleClickHandlers
public IDictionary<Type, IDoubleClickHandler> DoubleClickHandlers { get; }
value = diagramEditorControl.DoubleClickHandlers

Double-click element handlers.

HelpCommand
public ICommand HelpCommand { get; set; }
value = diagramEditorControl.HelpCommand
diagramEditorControl.HelpCommand = value

Help command.

IsEncrypted
public bool IsEncrypted { get; set; }
value = diagramEditorControl.IsEncrypted
diagramEditorControl.IsEncrypted = value

Is encrypted.

IsReadOnly
public bool IsReadOnly { get; set; }
value = diagramEditorControl.IsReadOnly
diagramEditorControl.IsReadOnly = value

Read-only mode.

OpenElementCommand
public ICommand OpenElementCommand { get; set; }
value = diagramEditorControl.OpenElementCommand
diagramEditorControl.OpenElementCommand = value

Command for opening composition element.

OpenPropertiesCommand
public ICommand OpenPropertiesCommand { get; set; }
value = diagramEditorControl.OpenPropertiesCommand
diagramEditorControl.OpenPropertiesCommand = value

Command for opening element properties.

RedoCommand
public ICommand RedoCommand { get; set; }
value = diagramEditorControl.RedoCommand
diagramEditorControl.RedoCommand = value

Redo command.

RemoveCommand
public ICommand RemoveCommand { get; set; }
value = diagramEditorControl.RemoveCommand
diagramEditorControl.RemoveCommand = value

Remove command.

Scale
public double Scale { get; set; }
value = diagramEditorControl.Scale
diagramEditorControl.Scale = value

Scale.

SelectedElement
public DiagramElement SelectedElement { get; set; }
value = diagramEditorControl.SelectedElement
diagramEditorControl.SelectedElement = value

Selected element.

SelectedElements
public IEnumerable<DiagramElement> SelectedElements { get; set; }
value = diagramEditorControl.SelectedElements
diagramEditorControl.SelectedElements = value

Selected elements.

ShowOverview
public bool ShowOverview { get; set; }
value = diagramEditorControl.ShowOverview
diagramEditorControl.ShowOverview = value

To show the review panel.

UndoCommand
public ICommand UndoCommand { get; set; }
value = diagramEditorControl.UndoCommand
diagramEditorControl.UndoCommand = value

Undo command.

Methods

GetSelectionCopyElement
public CompositionDiagramElement GetSelectionCopyElement()
result = diagramEditorControl.GetSelectionCopyElement()

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

Returns: Composite element.

InitializeComponent
public void InitializeComponent()
diagramEditorControl.InitializeComponent()

InitializeComponent

Load
public void Load(SettingsStorage storage)
diagramEditorControl.Load(storage)

Load settings.

storage
Settings storage.
Save
public void Save(SettingsStorage storage)
diagramEditorControl.Save(storage)

Save settings.

storage
Settings storage.
SaveToImage
public void SaveToImage(Stream file)
diagramEditorControl.SaveToImage(file)

To save the diagram as an image.

file
The content of file.
Select
public void Select(DiagramElement element)
diagramEditorControl.Select(element)

Select element.

element

Events

ElementDoubleClicked
public event Action<DiagramElement> ElementDoubleClicked
diagramEditorControl.ElementDoubleClicked += handler

The event of the double click on the diagram element.

SelectionChanged
public event Action<DiagramElement> SelectionChanged
diagramEditorControl.SelectionChanged += handler

The event of the element selection on the diagram.

SocketClicked
public event Action<DiagramSocket, MouseAction> SocketClicked
diagramEditorControl.SocketClicked += handler

Socket clicked event.

Fields

CompositionProperty
public static readonly DependencyProperty CompositionProperty
value = DiagramEditorControl.CompositionProperty

DependencyProperty for Composition.

HelpCommandProperty
public static readonly DependencyProperty HelpCommandProperty
value = DiagramEditorControl.HelpCommandProperty

DependencyProperty for HelpCommand.

OpenElementCommandProperty
public static readonly DependencyProperty OpenElementCommandProperty
value = DiagramEditorControl.OpenElementCommandProperty

DependencyProperty for OpenElementCommand.

OpenPropertiesCommandProperty
public static readonly DependencyProperty OpenPropertiesCommandProperty
value = DiagramEditorControl.OpenPropertiesCommandProperty

DependencyProperty for OpenPropertiesCommand.

RedoCommandProperty
public static readonly DependencyProperty RedoCommandProperty
value = DiagramEditorControl.RedoCommandProperty

DependencyProperty for RedoCommand.

RemoveCommandProperty
public static readonly DependencyProperty RemoveCommandProperty
value = DiagramEditorControl.RemoveCommandProperty

DependencyProperty for RemoveCommand.

ScaleProperty
public static readonly DependencyProperty ScaleProperty
value = DiagramEditorControl.ScaleProperty

DependencyProperty for Scale.

ShowOverviewProperty
public static readonly DependencyProperty ShowOverviewProperty
value = DiagramEditorControl.ShowOverviewProperty

DependencyProperty for ShowOverview.

UndoCommandProperty
public static readonly DependencyProperty UndoCommandProperty
value = DiagramEditorControl.UndoCommandProperty

DependencyProperty for UndoCommand.