CodePanel
StockSharp.Xaml.CodeEditor
用于代码编辑和编译的视觉面板.
继承自: UserControl
实现: IPersistable, IUndoRedoManager, IComponentConnector
构造函数
属性
AutoCompile
public bool AutoCompile { get; set; }
value = codePanel.AutoCompile
codePanel.AutoCompile = value
代码更改时自动编译 。
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
撤消更改的命令 。
方法
InitializeComponent
public void InitializeComponent()
codePanel.InitializeComponent()
InitializeComponent
事件
ReferencesUpdated
public event Action ReferencesUpdated
codePanel.ReferencesUpdated += 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.