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
 
- Inherited Members
 
- Extension Methods
 
Constructors
DiagramEditorControl()
Initializes a new instance of the DiagramEditorControl.
public DiagramEditorControl()
  Fields
CompositionProperty
public static readonly DependencyProperty CompositionProperty
  Field Value
HelpCommandProperty
public static readonly DependencyProperty HelpCommandProperty
  Field Value
OpenElementCommandProperty
public static readonly DependencyProperty OpenElementCommandProperty
  Field Value
OpenPropertiesCommandProperty
public static readonly DependencyProperty OpenPropertiesCommandProperty
  Field Value
RedoCommandProperty
public static readonly DependencyProperty RedoCommandProperty
  Field Value
RemoveCommandProperty
public static readonly DependencyProperty RemoveCommandProperty
  Field Value
ScaleProperty
DependencyProperty for Scale.
public static readonly DependencyProperty ScaleProperty
  Field Value
ShowOverviewProperty
public static readonly DependencyProperty ShowOverviewProperty
  Field Value
UndoCommandProperty
public static readonly DependencyProperty UndoCommandProperty
  Field Value
Properties
Composition
Composite element.
public CompositionDiagramElement Composition { get; set; }
  Property Value
DoubleClickHandlers
Double-click element handlers.
public IDictionary<Type, IDoubleClickHandler> DoubleClickHandlers { get; }
  Property Value
HelpCommand
Help command.
public ICommand HelpCommand { get; set; }
  Property Value
IsEncrypted
Is encrypted.
public bool IsEncrypted { get; set; }
  Property Value
IsReadOnly
Read-only mode.
public bool IsReadOnly { get; set; }
  Property Value
OpenElementCommand
Command for opening composition element.
public ICommand OpenElementCommand { get; set; }
  Property Value
OpenPropertiesCommand
Command for opening element properties.
public ICommand OpenPropertiesCommand { get; set; }
  Property Value
RedoCommand
Redo command.
public ICommand RedoCommand { get; set; }
  Property Value
RemoveCommand
Remove command.
public ICommand RemoveCommand { get; set; }
  Property Value
Scale
Scale.
public double Scale { get; set; }
  Property Value
SelectedElement
Selected element.
public DiagramElement SelectedElement { get; set; }
  Property Value
SelectedElements
Selected elements.
public IEnumerable<DiagramElement> SelectedElements { get; set; }
  Property Value
ShowOverview
To show the review panel.
public bool ShowOverview { get; set; }
  Property Value
UndoCommand
Undo command.
public ICommand UndoCommand { get; set; }
  Property Value
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
storageSettingsStorageSettings storage.
Save(SettingsStorage)
Save settings.
public void Save(SettingsStorage storage)
  Parameters
storageSettingsStorageSettings storage.
SaveToImage(Stream)
To save the diagram as an image.
public void SaveToImage(Stream file)
  Parameters
fileStreamThe content of file.
Select(DiagramElement)
Select element.
public void Select(DiagramElement element)
  Parameters
elementDiagramElement
Events
ElementDoubleClicked
The event of the double click on the diagram element.
public event Action<DiagramElement> ElementDoubleClicked
  Event Type
SelectionChanged
The event of the element selection on the diagram.
public event Action<DiagramElement> SelectionChanged
  Event Type
SocketClicked
Socket clicked event.
public event Action<DiagramSocket, MouseAction> SocketClicked