Table of Contents

Class DiagramEditorControl

Namespace
StockSharp.Xaml.Diagram
Assembly
StockSharp.Xaml.Diagram.dll

Graphical component for editing CompositionDiagramElement.

public class DiagramEditorControl : UserControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IPersistable, IUndoRedoManager, IComponentConnector
Inheritance
DiagramEditorControl
Implements
IPersistable
IUndoRedoManager
Inherited Members
Extension Methods

Constructors

DiagramEditorControl()

Initializes a new instance of the DiagramEditorControl.

public DiagramEditorControl()

Fields

CompositionProperty

public static readonly DependencyProperty CompositionProperty

Field Value

DependencyProperty

HelpCommandProperty

public static readonly DependencyProperty HelpCommandProperty

Field Value

DependencyProperty

OpenElementCommandProperty

public static readonly DependencyProperty OpenElementCommandProperty

Field Value

DependencyProperty

OpenPropertiesCommandProperty

public static readonly DependencyProperty OpenPropertiesCommandProperty

Field Value

DependencyProperty

RedoCommandProperty

public static readonly DependencyProperty RedoCommandProperty

Field Value

DependencyProperty

RemoveCommandProperty

public static readonly DependencyProperty RemoveCommandProperty

Field Value

DependencyProperty

ScaleProperty

public static readonly DependencyProperty ScaleProperty

Field Value

DependencyProperty

ShowOverviewProperty

public static readonly DependencyProperty ShowOverviewProperty

Field Value

DependencyProperty

UndoCommandProperty

public static readonly DependencyProperty UndoCommandProperty

Field Value

DependencyProperty

Properties

AllowMove

Allow move elements.

public bool AllowMove { get; set; }

Property Value

bool

Composition

Composite element.

public CompositionDiagramElement Composition { get; set; }

Property Value

CompositionDiagramElement

DoubleClickHandlers

Double-click element handlers.

public IDictionary<Type, IDoubleClickHandler> DoubleClickHandlers { get; }

Property Value

IDictionary<Type, IDoubleClickHandler>

HelpCommand

Help command.

public ICommand HelpCommand { get; set; }

Property Value

ICommand

OpenElementCommand

Command for opening composition element.

public ICommand OpenElementCommand { get; set; }

Property Value

ICommand

OpenPropertiesCommand

Command for opening element properties.

public ICommand OpenPropertiesCommand { get; set; }

Property Value

ICommand

RedoCommand

Redo command.

public ICommand RedoCommand { get; set; }

Property Value

ICommand

RemoveCommand

Remove command.

public ICommand RemoveCommand { get; set; }

Property Value

ICommand

Scale

Scale.

public double Scale { get; set; }

Property Value

double

SelectedElement

Selected element.

public DiagramElement SelectedElement { get; set; }

Property Value

DiagramElement

SelectedElements

Selected elements.

public IEnumerable<DiagramElement> SelectedElements { get; set; }

Property Value

IEnumerable<DiagramElement>

ShowOverview

To show the review panel.

public bool ShowOverview { get; set; }

Property Value

bool

UndoCommand

Undo command.

public ICommand UndoCommand { get; set; }

Property Value

ICommand

Methods

GetSelectionCopyElement()

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

public CompositionDiagramElement GetSelectionCopyElement()

Returns

CompositionDiagramElement

Composite element.

InitializeComponent()

InitializeComponent

public void InitializeComponent()

Load(SettingsStorage)

Load settings.

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

Save(SettingsStorage)

Save settings.

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

SaveToImage(Stream)

To save the diagram as an image.

public void SaveToImage(Stream file)

Parameters

file Stream

The content of file.

Select(DiagramElement)

Select element.

public void Select(DiagramElement element)

Parameters

element DiagramElement

Events

ElementDoubleClicked

The event of the double click on the diagram element.

public event Action<DiagramElement> ElementDoubleClicked

Event Type

Action<DiagramElement>

SelectionChanged

The event of the element selection on the diagram.

public event Action<DiagramElement> SelectionChanged

Event Type

Action<DiagramElement>