Class DiagramEditorControl
Графический компонент для редактирования CompositionDiagramElement.
Namespace: StockSharp.Xaml.Diagram
Assembly: StockSharp.Xaml.Diagram.dll
Syntax
public class DiagramEditorControl : UserControl, IPersistable, IComponentConnector
Constructors
DiagramEditorControl()
Создать DiagramEditorControl.
Declaration
public DiagramEditorControl()
Fields
CompositionProperty
Declaration
public static readonly DependencyProperty CompositionProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
HelpCommandProperty
Declaration
public static readonly DependencyProperty HelpCommandProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
OpenElementCommandProperty
Declaration
public static readonly DependencyProperty OpenElementCommandProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
OpenPropertiesCommandProperty
Declaration
public static readonly DependencyProperty OpenPropertiesCommandProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
RedoCommandProperty
Declaration
public static readonly DependencyProperty RedoCommandProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
RemoveCommandProperty
Declaration
public static readonly DependencyProperty RemoveCommandProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ScaleProperty
DependencyProperty для Scale.
Declaration
public static readonly DependencyProperty ScaleProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ShowOverviewProperty
Declaration
public static readonly DependencyProperty ShowOverviewProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
UndoCommandProperty
Declaration
public static readonly DependencyProperty UndoCommandProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
Composition
Composite element.
Declaration
public CompositionDiagramElement Composition { get; set; }
Property Value
Type | Description |
---|---|
CompositionDiagramElement |
HelpCommand
Команда Справка.
Declaration
public ICommand HelpCommand { get; set; }
Property Value
Type | Description |
---|---|
ICommand |
OpenElementCommand
Команда на открытие сложного элемента.
Declaration
public ICommand OpenElementCommand { get; set; }
Property Value
Type | Description |
---|---|
ICommand |
OpenPropertiesCommand
Команда на открытие свойство элемента.
Declaration
public ICommand OpenPropertiesCommand { get; set; }
Property Value
Type | Description |
---|---|
ICommand |
RedoCommand
Команда восстановления изменений.
Declaration
public ICommand RedoCommand { get; set; }
Property Value
Type | Description |
---|---|
ICommand |
RemoveCommand
Команда удаления.
Declaration
public ICommand RemoveCommand { get; set; }
Property Value
Type | Description |
---|---|
ICommand |
Scale
Scale.
Declaration
public double Scale { get; set; }
Property Value
Type | Description |
---|---|
Double |
SelectedElement
Selected element.
Declaration
public DiagramElement SelectedElement { get; set; }
Property Value
Type | Description |
---|---|
DiagramElement |
SelectedElements
Selected elements.
Declaration
public IEnumerable<DiagramElement> SelectedElements { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<DiagramElement> |
ShowOverview
Показывать панель обзора.
Declaration
public bool ShowOverview { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
UndoCommand
Команда отмены изменений.
Declaration
public ICommand UndoCommand { get; set; }
Property Value
Type | Description |
---|---|
ICommand |
Methods
GetSelectionCopyElement()
Создать новый элемент из выделенных элементов на схеме.
Declaration
public CompositionDiagramElement GetSelectionCopyElement()
Returns
Type | Description |
---|---|
CompositionDiagramElement | Composite element. |
InitializeComponent()
InitializeComponent
Declaration
public void InitializeComponent()
Load(SettingsStorage)
Загрузить настройки.
Declaration
public void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
Save(SettingsStorage)
Сохранить настройки.
Declaration
public void Save(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
SaveToImage(Stream)
Сохранить схему в изображение.
Declaration
public void SaveToImage(Stream file)
Parameters
Type | Name | Description |
---|---|---|
Stream | file | Содержимое файла. |
Select(DiagramElement)
Select element.
Declaration
public void Select(DiagramElement element)
Parameters
Type | Name | Description |
---|---|---|
DiagramElement | element |
Events
ElementDoubleClicked
Событие двойного клика по элементу на схеме.
Declaration
public event Action<DiagramElement> ElementDoubleClicked
Event Type
Type | Description |
---|---|
Action<DiagramElement> |
SelectionChanged
Событие выделения элемента на схеме.
Declaration
public event Action<DiagramElement> SelectionChanged
Event Type
Type | Description |
---|---|
Action<DiagramElement> |
Implements
Ecng.Serialization.IPersistable