Table of Contents

Class CodePanel

Namespace
StockSharp.Xaml.CodeEditor
Assembly
StockSharp.Xaml.CodeEditor.dll

The visual panel for code editing and compiling.

public class CodePanel : UserControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IPersistable, IUndoRedoManager, IComponentConnector
Inheritance
CodePanel
Implements
IPersistable
IUndoRedoManager
Inherited Members
Extension Methods

Constructors

CodePanel()

Initializes a new instance of the CodePanel.

public CodePanel()

Fields

AutoCompileProperty

public static readonly DependencyProperty AutoCompileProperty

Field Value

DependencyProperty

CompileCommandProperty

public static readonly DependencyProperty CompileCommandProperty

Field Value

DependencyProperty

RedoCommandProperty

public static readonly DependencyProperty RedoCommandProperty

Field Value

DependencyProperty

ReferencesCommandProperty

public static readonly DependencyProperty ReferencesCommandProperty

Field Value

DependencyProperty

SaveCommandProperty

public static readonly DependencyProperty SaveCommandProperty

Field Value

DependencyProperty

ShowStartProperty

public static readonly DependencyProperty ShowStartProperty

Field Value

DependencyProperty

ShowToolBarProperty

public static readonly DependencyProperty ShowToolBarProperty

Field Value

DependencyProperty

StartCommandProperty

public static readonly DependencyProperty StartCommandProperty

Field Value

DependencyProperty

UndoCommandProperty

public static readonly DependencyProperty UndoCommandProperty

Field Value

DependencyProperty

Properties

AutoCompile

Auto compile when code changed.

public bool AutoCompile { get; set; }

Property Value

bool

Code

public CodeInfo Code { get; set; }

Property Value

CodeInfo

CompileCommand

The command for the code compilation.

public ICommand CompileCommand { get; set; }

Property Value

ICommand

IsTypeCompatible

Is type compatible.

public Func<Type, bool> IsTypeCompatible { get; set; }

Property Value

Func<Type, bool>

ReadOnly

Read only.

public bool ReadOnly { get; set; }

Property Value

bool

RedoCommand

The command for return the changes.

public ICommand RedoCommand { get; set; }

Property Value

ICommand

ReferencesCommand

The command for the references modification.

public ICommand ReferencesCommand { get; set; }

Property Value

ICommand

SaveCommand

The command for the code saving.

public ICommand SaveCommand { get; set; }

Property Value

ICommand

ShowStart

To show the start.

public bool ShowStart { get; set; }

Property Value

bool

ShowToolBar

To show the review panel.

public bool ShowToolBar { get; set; }

Property Value

bool

StartCommand

The command for start execution.

public ICommand StartCommand { get; set; }

Property Value

ICommand

UndoCommand

The command for undo the changes.

public ICommand UndoCommand { get; set; }

Property Value

ICommand

Methods

EditReferences()

Edit references.

public void EditReferences()

InitializeComponent()

InitializeComponent

public void InitializeComponent()

Load(SettingsStorage)

Load settings.

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

Save(SettingsStorage)

Save settings.

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

Events

CodeChanged

The code change event.

public event Action CodeChanged

Event Type

Action

CompiledCode

The code compilated event.

public event Action CompiledCode

Event Type

Action

LayoutChanged

The layout changed event.

public event Action LayoutChanged

Event Type

Action

ReferencesUpdated

The links update event.

public event Action ReferencesUpdated

Event Type

Action

SavingCode

The code saving event.

public event Action SavingCode

Event Type

Action

Started

The code started event.

public event Action Started

Event Type

Action