CodePanel

StockSharp.Xaml.CodeEditor

用于代码编辑和编译的视觉面板.

继承自: UserControl

实现: IPersistable, IUndoRedoManager, IComponentConnector

构造函数

CodePanel
public CodePanel()
codePanel = CodePanel()

初始化了 & ##CodePanel+#的新实例.

属性

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

代码更改时自动编译 。

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

代码汇编的命令 。

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

类型兼容 。

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

唯念一一一.

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

返回更改的命令 。

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

引用修改的命令 。

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

保存代码的命令 。

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

以示开来.

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

以示审阅.

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

开始执行的命令 。

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

撤消更改的命令 。

方法

EditReferences
public void EditReferences()
codePanel.EditReferences()

编辑参考文献。

InitializeComponent
public void InitializeComponent()
codePanel.InitializeComponent()

InitializeComponent

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

装入设置 。

storage
设置存储 。
Save
public void Save(SettingsStorage storage)
codePanel.Save(storage)

保存设置 。

storage
设置存储 。

事件

CodeChanged
public event Action CodeChanged
codePanel.CodeChanged += handler

代码更改事件.

CompiledCode
public event Action CompiledCode
codePanel.CompiledCode += handler

代码共通事件 。

LayoutChanged
public event Action LayoutChanged
codePanel.LayoutChanged += handler

版式更改了事件 。

ReferencesUpdated
public event Action ReferencesUpdated
codePanel.ReferencesUpdated += handler

链接更新事件 。

SavingCode
public event Action SavingCode
codePanel.SavingCode += handler

代码保存事件 。

Started
public event Action Started
codePanel.Started += handler

代码开始事件 。

字段

AutoCompileProperty
public static readonly DependencyProperty AutoCompileProperty
value = CodePanel.AutoCompileProperty

DependencyProperty 为AutoCompile.

CompileCommandProperty
public static readonly DependencyProperty CompileCommandProperty
value = CodePanel.CompileCommandProperty

DependencyProperty 为CompileCommand.

RedoCommandProperty
public static readonly DependencyProperty RedoCommandProperty
value = CodePanel.RedoCommandProperty

DependencyProperty 为RedoCommand.

ReferencesCommandProperty
public static readonly DependencyProperty ReferencesCommandProperty
value = CodePanel.ReferencesCommandProperty

DependencyProperty 为ReferencesCommand.

SaveCommandProperty
public static readonly DependencyProperty SaveCommandProperty
value = CodePanel.SaveCommandProperty

DependencyProperty 为SaveCommand.

ShowStartProperty
public static readonly DependencyProperty ShowStartProperty
value = CodePanel.ShowStartProperty

DependencyProperty 为ShowStart.

ShowToolBarProperty
public static readonly DependencyProperty ShowToolBarProperty
value = CodePanel.ShowToolBarProperty

DependencyProperty 为ShowToolBar.

StartCommandProperty
public static readonly DependencyProperty StartCommandProperty
value = CodePanel.StartCommandProperty

DependencyProperty 为StartCommand.

UndoCommandProperty
public static readonly DependencyProperty UndoCommandProperty
value = CodePanel.UndoCommandProperty

DependencyProperty 为UndoCommand.