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
-
IPersistableIUndoRedoManager
- Inherited Members
- Extension Methods
Constructors
CodePanel()
Initializes a new instance of the CodePanel.
public CodePanel()
Fields
AutoCompileProperty
public static readonly DependencyProperty AutoCompileProperty
Field Value
CompileCommandProperty
public static readonly DependencyProperty CompileCommandProperty
Field Value
RedoCommandProperty
public static readonly DependencyProperty RedoCommandProperty
Field Value
ReferencesCommandProperty
public static readonly DependencyProperty ReferencesCommandProperty
Field Value
SaveCommandProperty
public static readonly DependencyProperty SaveCommandProperty
Field Value
ShowStartProperty
public static readonly DependencyProperty ShowStartProperty
Field Value
ShowToolBarProperty
public static readonly DependencyProperty ShowToolBarProperty
Field Value
StartCommandProperty
public static readonly DependencyProperty StartCommandProperty
Field Value
UndoCommandProperty
public static readonly DependencyProperty UndoCommandProperty
Field Value
Properties
AutoCompile
Auto compile when code changed.
public bool AutoCompile { get; set; }
Property Value
Code
public CodeInfo Code { get; set; }
Property Value
CompileCommand
The command for the code compilation.
public ICommand CompileCommand { get; set; }
Property Value
IsTypeCompatible
Is type compatible.
public Func<Type, bool> IsTypeCompatible { get; set; }
Property Value
ReadOnly
Read only.
public bool ReadOnly { get; set; }
Property Value
RedoCommand
The command for return the changes.
public ICommand RedoCommand { get; set; }
Property Value
ReferencesCommand
The command for the references modification.
public ICommand ReferencesCommand { get; set; }
Property Value
SaveCommand
The command for the code saving.
public ICommand SaveCommand { get; set; }
Property Value
ShowStart
To show the start.
public bool ShowStart { get; set; }
Property Value
ShowToolBar
To show the review panel.
public bool ShowToolBar { get; set; }
Property Value
StartCommand
The command for start execution.
public ICommand StartCommand { get; set; }
Property Value
UndoCommand
The command for undo the changes.
public ICommand UndoCommand { get; set; }
Property Value
Methods
EditReferences()
Edit references.
public void EditReferences()
InitializeComponent()
InitializeComponent
public void InitializeComponent()
Load(SettingsStorage)
Load settings.
public void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
Save(SettingsStorage)
Save settings.
public void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
Events
CodeChanged
The code change event.
public event Action CodeChanged
Event Type
CompiledCode
The code compilated event.
public event Action CompiledCode
Event Type
LayoutChanged
The layout changed event.
public event Action LayoutChanged
Event Type
ReferencesUpdated
The links update event.
public event Action ReferencesUpdated
Event Type
SavingCode
The code saving event.
public event Action SavingCode
Event Type
Started
The code started event.
public event Action Started