CodePanel
The visual panel for code editing and compiling.
Inherits: UserControl
Implements: IPersistable, IUndoRedoManager, IComponentConnector
Constructors
Properties
public bool AutoCompile { get; set; }
value = codePanel.AutoCompile
codePanel.AutoCompile = value
Auto compile when code changed.
public ICommand CompileCommand { get; set; }
value = codePanel.CompileCommand
codePanel.CompileCommand = value
The command for the code compilation.
public Func<Type, bool> IsTypeCompatible { get; set; }
value = codePanel.IsTypeCompatible
codePanel.IsTypeCompatible = value
Is type compatible.
public bool ReadOnly { get; set; }
value = codePanel.ReadOnly
codePanel.ReadOnly = value
Read only.
public ICommand RedoCommand { get; set; }
value = codePanel.RedoCommand
codePanel.RedoCommand = value
The command for return the changes.
public ICommand ReferencesCommand { get; set; }
value = codePanel.ReferencesCommand
codePanel.ReferencesCommand = value
The command for the references modification.
public ICommand SaveCommand { get; set; }
value = codePanel.SaveCommand
codePanel.SaveCommand = value
The command for the code saving.
public bool ShowStart { get; set; }
value = codePanel.ShowStart
codePanel.ShowStart = value
To show the start.
public bool ShowToolBar { get; set; }
value = codePanel.ShowToolBar
codePanel.ShowToolBar = value
To show the review panel.
public ICommand StartCommand { get; set; }
value = codePanel.StartCommand
codePanel.StartCommand = value
The command for start execution.
public ICommand UndoCommand { get; set; }
value = codePanel.UndoCommand
codePanel.UndoCommand = value
The command for undo the changes.
Methods
public void InitializeComponent()
codePanel.InitializeComponent()
InitializeComponent
public void Load(SettingsStorage storage)
codePanel.Load(storage)
Load settings.
- storage
- Settings storage.
public void Save(SettingsStorage storage)
codePanel.Save(storage)
Save settings.
- storage
- Settings storage.
Events
public event Action CompiledCode
codePanel.CompiledCode += handler
The code compilated event.
public event Action LayoutChanged
codePanel.LayoutChanged += handler
The layout changed event.
public event Action ReferencesUpdated
codePanel.ReferencesUpdated += handler
The links update event.
Fields
public static readonly DependencyProperty AutoCompileProperty
value = CodePanel.AutoCompileProperty
DependencyProperty for AutoCompile.
public static readonly DependencyProperty CompileCommandProperty
value = CodePanel.CompileCommandProperty
DependencyProperty for CompileCommand.
public static readonly DependencyProperty RedoCommandProperty
value = CodePanel.RedoCommandProperty
DependencyProperty for RedoCommand.
public static readonly DependencyProperty ReferencesCommandProperty
value = CodePanel.ReferencesCommandProperty
DependencyProperty for ReferencesCommand.
public static readonly DependencyProperty SaveCommandProperty
value = CodePanel.SaveCommandProperty
DependencyProperty for SaveCommand.
public static readonly DependencyProperty ShowStartProperty
value = CodePanel.ShowStartProperty
DependencyProperty for ShowStart.
public static readonly DependencyProperty ShowToolBarProperty
value = CodePanel.ShowToolBarProperty
DependencyProperty for ShowToolBar.
public static readonly DependencyProperty StartCommandProperty
value = CodePanel.StartCommandProperty
DependencyProperty for StartCommand.
public static readonly DependencyProperty UndoCommandProperty
value = CodePanel.UndoCommandProperty
DependencyProperty for UndoCommand.