CodePanel

StockSharp.Xaml.CodeEditor

Визуальная панель для редактирования и компиляции кода.

Наследует: UserControl

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

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

CodePanel
public CodePanel()
codePanel = CodePanel()

Инициирует новый экземпляр документа CodePanel.

Свойства

AutoCompile
public bool AutoCompile { get; set; }
value = codePanel.AutoCompile
codePanel.AutoCompile = value

Автоматическая компиляция при изменении кода.

Code
public CodeInfo Code { get; set; }
value = codePanel.Code
codePanel.Code = value

CodeInfo

CompileCommand
public ICommand CompileCommand { get; set; }
value = codePanel.CompileCommand
codePanel.CompileCommand = value

Командный код для компиляции кода.

IsTypeCompatible
public Func<Type, bool> IsTypeCompatible { get; set; }
value = codePanel.IsTypeCompatible
codePanel.IsTypeCompatible = value

Совместим ли тип.

ReadOnly
public bool ReadOnly { get; set; }
value = codePanel.ReadOnly
codePanel.ReadOnly = value

Только читайте.

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

Приказ о возвращении изменений.

ReferencesCommand
public ICommand ReferencesCommand { get; set; }
value = codePanel.ReferencesCommand
codePanel.ReferencesCommand = value

Командование для модификации ссылок.

SaveCommand
public ICommand SaveCommand { get; set; }
value = codePanel.SaveCommand
codePanel.SaveCommand = value

Команда для сохранения кода.

ShowStart
public bool ShowStart { get; set; }
value = codePanel.ShowStart
codePanel.ShowStart = value

Чтобы показать начало.

ShowToolBar
public bool ShowToolBar { get; set; }
value = codePanel.ShowToolBar
codePanel.ShowToolBar = value

Чтобы показать обзорную группу.

StartCommand
public ICommand StartCommand { get; set; }
value = codePanel.StartCommand
codePanel.StartCommand = value

Командование для начала исполнения.

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

Приказ отменить изменения.

Методы

EditReferencesAsync
public Task EditReferencesAsync(CancellationToken cancellationToken)
result = codePanel.EditReferencesAsync(cancellationToken)

Edit references.

cancellationToken
CancellationToken

Возвращает: Task

InitializeComponent
public void InitializeComponent()
codePanel.InitializeComponent()

InitializeComponent

LoadAsync
public Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = codePanel.LoadAsync(storage, cancellationToken)

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Возвращает: Task

SaveAsync
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = codePanel.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Возвращает: Task

События

CodeChanged
public event Action CodeChanged
codePanel.CodeChanged += handler

Событие изменения кода.

CompiledCode
public event Action CompiledCode
codePanel.CompiledCode += handler

Событие компиляции кода.

LayoutChanged
public event Action LayoutChanged
codePanel.LayoutChanged += handler

Событие изменения макета.

ReferencesUpdated
public event Action ReferencesUpdated
codePanel.ReferencesUpdated += handler

Событие обновления ссылок.

SavingCode
public event Action SavingCode
codePanel.SavingCode += handler

Событие сохранения кода.

Started
public event Action Started
codePanel.Started += handler

Код начал событие.

Поля

AutoCompileProperty
public static readonly DependencyProperty AutoCompileProperty
value = CodePanel.AutoCompileProperty

DependencyProperty для AutoCompile.

CompileCommandProperty
public static readonly DependencyProperty CompileCommandProperty
value = CodePanel.CompileCommandProperty

DependencyProperty для CompileCommand.

RedoCommandProperty
public static readonly DependencyProperty RedoCommandProperty
value = CodePanel.RedoCommandProperty

DependencyProperty для RedoCommand.

ReferencesCommandProperty
public static readonly DependencyProperty ReferencesCommandProperty
value = CodePanel.ReferencesCommandProperty

DependencyProperty для ReferencesCommand.

SaveCommandProperty
public static readonly DependencyProperty SaveCommandProperty
value = CodePanel.SaveCommandProperty

DependencyProperty для SaveCommand.

ShowStartProperty
public static readonly DependencyProperty ShowStartProperty
value = CodePanel.ShowStartProperty

DependencyProperty для ShowStart.

ShowToolBarProperty
public static readonly DependencyProperty ShowToolBarProperty
value = CodePanel.ShowToolBarProperty

DependencyProperty для ShowToolBar.

StartCommandProperty
public static readonly DependencyProperty StartCommandProperty
value = CodePanel.StartCommandProperty

DependencyProperty для StartCommand.

UndoCommandProperty
public static readonly DependencyProperty UndoCommandProperty
value = CodePanel.UndoCommandProperty

DependencyProperty для UndoCommand.