CodePanel

StockSharp.Xaml.CodeEditor

The visual panel for code editing and compiling.

Inherits: UserControl

Implements: IPersistable, IUndoRedoManager, IComponentConnector

Constructors

CodePanel
public CodePanel()
codePanel = CodePanel()

Initializes a new instance of the CodePanel.

Properties

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

Auto compile when code changed.

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

The command for the code compilation.

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

Is type compatible.

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

Read only.

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

The command for return the changes.

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

The command for the references modification.

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

The command for the code saving.

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

To show the start.

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

To show the review panel.

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

The command for start execution.

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

The command for undo the changes.

Methods

EditReferences
public void EditReferences()
codePanel.EditReferences()

Edit references.

InitializeComponent
public void InitializeComponent()
codePanel.InitializeComponent()

InitializeComponent

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

Load settings.

storage
Settings storage.
Save
public void Save(SettingsStorage storage)
codePanel.Save(storage)

Save settings.

storage
Settings storage.

Events

CodeChanged
public event Action CodeChanged
codePanel.CodeChanged += handler

The code change event.

CompiledCode
public event Action CompiledCode
codePanel.CompiledCode += handler

The code compilated event.

LayoutChanged
public event Action LayoutChanged
codePanel.LayoutChanged += handler

The layout changed event.

ReferencesUpdated
public event Action ReferencesUpdated
codePanel.ReferencesUpdated += handler

The links update event.

SavingCode
public event Action SavingCode
codePanel.SavingCode += handler

The code saving event.

Started
public event Action Started
codePanel.Started += handler

The code started event.

Fields

AutoCompileProperty
public static readonly DependencyProperty AutoCompileProperty
value = CodePanel.AutoCompileProperty

DependencyProperty for AutoCompile.

CompileCommandProperty
public static readonly DependencyProperty CompileCommandProperty
value = CodePanel.CompileCommandProperty

DependencyProperty for CompileCommand.

RedoCommandProperty
public static readonly DependencyProperty RedoCommandProperty
value = CodePanel.RedoCommandProperty

DependencyProperty for RedoCommand.

ReferencesCommandProperty
public static readonly DependencyProperty ReferencesCommandProperty
value = CodePanel.ReferencesCommandProperty

DependencyProperty for ReferencesCommand.

SaveCommandProperty
public static readonly DependencyProperty SaveCommandProperty
value = CodePanel.SaveCommandProperty

DependencyProperty for SaveCommand.

ShowStartProperty
public static readonly DependencyProperty ShowStartProperty
value = CodePanel.ShowStartProperty

DependencyProperty for ShowStart.

ShowToolBarProperty
public static readonly DependencyProperty ShowToolBarProperty
value = CodePanel.ShowToolBarProperty

DependencyProperty for ShowToolBar.

StartCommandProperty
public static readonly DependencyProperty StartCommandProperty
value = CodePanel.StartCommandProperty

DependencyProperty for StartCommand.

UndoCommandProperty
public static readonly DependencyProperty UndoCommandProperty
value = CodePanel.UndoCommandProperty

DependencyProperty for UndoCommand.