CodePanel

StockSharp.Xaml.CodeEditor

O painel visual para edição e compilação de códigos.

Herda de: UserControl

Implementa: IPersistable, IUndoRedoManager, IComponentConnector

Construtores

CodePanel
public CodePanel()
codePanel = CodePanel()

Inicializa uma nova instância do CodePanel.

Propriedades

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

Compilar automaticamente quando o código foi alterado.

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

O comando para a compilação de código.

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

É compatível com o tipo.

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

Apenas para leitura.

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

O comando para devolver as alterações.

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

O comando para a modificação de referências.

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

O comando para a gravação de código.

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

Para mostrar o começo.

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

Para mostrar o painel de revisão.

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

O comando para iniciar a execução.

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

O comando para desfazer as alterações.

Métodos

EditReferences
public void EditReferences()
codePanel.EditReferences()

Editar referências.

InitializeComponent
public void InitializeComponent()
codePanel.InitializeComponent()

InitializeComponent

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

Carregar as configurações.

storage
Configuração do armazenamento.
Save
public void Save(SettingsStorage storage)
codePanel.Save(storage)

Gravar as definições.

storage
Configuração do armazenamento.

Eventos

CodeChanged
public event Action CodeChanged
codePanel.CodeChanged += handler

O evento de mudança de código.

CompiledCode
public event Action CompiledCode
codePanel.CompiledCode += handler

O código compila o evento.

LayoutChanged
public event Action LayoutChanged
codePanel.LayoutChanged += handler

A disposição mudou o evento.

ReferencesUpdated
public event Action ReferencesUpdated
codePanel.ReferencesUpdated += handler

O evento de atualização de links.

SavingCode
public event Action SavingCode
codePanel.SavingCode += handler

O evento de salvamento de código.

Started
public event Action Started
codePanel.Started += handler

O código começou o evento.

Campos

AutoCompileProperty
public static readonly DependencyProperty AutoCompileProperty
value = CodePanel.AutoCompileProperty

DependencyProperty@ para AutoCompile.

CompileCommandProperty
public static readonly DependencyProperty CompileCommandProperty
value = CodePanel.CompileCommandProperty

DependencyProperty@ para CompileCommand.

RedoCommandProperty
public static readonly DependencyProperty RedoCommandProperty
value = CodePanel.RedoCommandProperty

DependencyProperty@ para RedoCommand.

ReferencesCommandProperty
public static readonly DependencyProperty ReferencesCommandProperty
value = CodePanel.ReferencesCommandProperty

DependencyProperty@ para ReferencesCommand.

SaveCommandProperty
public static readonly DependencyProperty SaveCommandProperty
value = CodePanel.SaveCommandProperty

DependencyProperty@ para SaveCommand.

ShowStartProperty
public static readonly DependencyProperty ShowStartProperty
value = CodePanel.ShowStartProperty

DependencyProperty@ para ShowStart.

ShowToolBarProperty
public static readonly DependencyProperty ShowToolBarProperty
value = CodePanel.ShowToolBarProperty

DependencyProperty@ para ShowToolBar.

StartCommandProperty
public static readonly DependencyProperty StartCommandProperty
value = CodePanel.StartCommandProperty

DependencyProperty@ para StartCommand.

UndoCommandProperty
public static readonly DependencyProperty UndoCommandProperty
value = CodePanel.UndoCommandProperty

DependencyProperty@ para UndoCommand.