CodePanel
O painel visual para edição e compilação de códigos.
Herda de: UserControl
Implementa: IPersistable, IUndoRedoManager, IComponentConnector
Construtores
Propriedades
public bool AutoCompile { get; set; }
value = codePanel.AutoCompile
codePanel.AutoCompile = value
Compilar automaticamente quando o código foi alterado.
public ICommand CompileCommand { get; set; }
value = codePanel.CompileCommand
codePanel.CompileCommand = value
O comando para a compilação de código.
public Func<Type, bool> IsTypeCompatible { get; set; }
value = codePanel.IsTypeCompatible
codePanel.IsTypeCompatible = value
É compatível com o tipo.
public bool ReadOnly { get; set; }
value = codePanel.ReadOnly
codePanel.ReadOnly = value
Apenas para leitura.
public ICommand RedoCommand { get; set; }
value = codePanel.RedoCommand
codePanel.RedoCommand = value
O comando para devolver as alterações.
public ICommand ReferencesCommand { get; set; }
value = codePanel.ReferencesCommand
codePanel.ReferencesCommand = value
O comando para a modificação de referências.
public ICommand SaveCommand { get; set; }
value = codePanel.SaveCommand
codePanel.SaveCommand = value
O comando para a gravação de código.
public bool ShowStart { get; set; }
value = codePanel.ShowStart
codePanel.ShowStart = value
Para mostrar o começo.
public bool ShowToolBar { get; set; }
value = codePanel.ShowToolBar
codePanel.ShowToolBar = value
Para mostrar o painel de revisão.
public ICommand StartCommand { get; set; }
value = codePanel.StartCommand
codePanel.StartCommand = value
O comando para iniciar a execução.
public ICommand UndoCommand { get; set; }
value = codePanel.UndoCommand
codePanel.UndoCommand = value
O comando para desfazer as alterações.
Métodos
public void InitializeComponent()
codePanel.InitializeComponent()
InitializeComponent
public void Load(SettingsStorage storage)
codePanel.Load(storage)
Carregar as configurações.
- storage
- Configuração do armazenamento.
public void Save(SettingsStorage storage)
codePanel.Save(storage)
Gravar as definições.
- storage
- Configuração do armazenamento.
Eventos
public event Action CodeChanged
codePanel.CodeChanged += handler
O evento de mudança de código.
public event Action CompiledCode
codePanel.CompiledCode += handler
O código compila o evento.
public event Action LayoutChanged
codePanel.LayoutChanged += handler
A disposição mudou o evento.
public event Action ReferencesUpdated
codePanel.ReferencesUpdated += handler
O evento de atualização de links.
public event Action SavingCode
codePanel.SavingCode += handler
O evento de salvamento de código.
Campos
public static readonly DependencyProperty AutoCompileProperty
value = CodePanel.AutoCompileProperty
DependencyProperty@ para AutoCompile.
public static readonly DependencyProperty CompileCommandProperty
value = CodePanel.CompileCommandProperty
DependencyProperty@ para CompileCommand.
public static readonly DependencyProperty RedoCommandProperty
value = CodePanel.RedoCommandProperty
DependencyProperty@ para RedoCommand.
public static readonly DependencyProperty ReferencesCommandProperty
value = CodePanel.ReferencesCommandProperty
DependencyProperty@ para ReferencesCommand.
public static readonly DependencyProperty SaveCommandProperty
value = CodePanel.SaveCommandProperty
DependencyProperty@ para SaveCommand.
public static readonly DependencyProperty ShowStartProperty
value = CodePanel.ShowStartProperty
DependencyProperty@ para ShowStart.
public static readonly DependencyProperty ShowToolBarProperty
value = CodePanel.ShowToolBarProperty
DependencyProperty@ para ShowToolBar.
public static readonly DependencyProperty StartCommandProperty
value = CodePanel.StartCommandProperty
DependencyProperty@ para StartCommand.
public static readonly DependencyProperty UndoCommandProperty
value = CodePanel.UndoCommandProperty
DependencyProperty@ para UndoCommand.