CodePanel
Визуальная панель для редактирования и компиляции кода.
Наследует: UserControl
Реализует: IPersistable, IUndoRedoManager, IComponentConnector
Конструкторы
public CodePanel()
codePanel = CodePanel()
Инициирует новый экземпляр документа CodePanel.
Свойства
public bool AutoCompile { get; set; }
value = codePanel.AutoCompile
codePanel.AutoCompile = value
Автоматическая компиляция при изменении кода.
public ICommand CompileCommand { get; set; }
value = codePanel.CompileCommand
codePanel.CompileCommand = value
Командный код для компиляции кода.
public Func<Type, bool> IsTypeCompatible { get; set; }
value = codePanel.IsTypeCompatible
codePanel.IsTypeCompatible = value
Совместим ли тип.
public bool ReadOnly { get; set; }
value = codePanel.ReadOnly
codePanel.ReadOnly = value
Только читайте.
public ICommand RedoCommand { get; set; }
value = codePanel.RedoCommand
codePanel.RedoCommand = value
Приказ о возвращении изменений.
public ICommand ReferencesCommand { get; set; }
value = codePanel.ReferencesCommand
codePanel.ReferencesCommand = value
Командование для модификации ссылок.
public ICommand SaveCommand { get; set; }
value = codePanel.SaveCommand
codePanel.SaveCommand = value
Команда для сохранения кода.
public bool ShowStart { get; set; }
value = codePanel.ShowStart
codePanel.ShowStart = value
Чтобы показать начало.
public bool ShowToolBar { get; set; }
value = codePanel.ShowToolBar
codePanel.ShowToolBar = value
Чтобы показать обзорную группу.
public ICommand StartCommand { get; set; }
value = codePanel.StartCommand
codePanel.StartCommand = value
Командование для начала исполнения.
public ICommand UndoCommand { get; set; }
value = codePanel.UndoCommand
codePanel.UndoCommand = value
Приказ отменить изменения.
Методы
public void InitializeComponent()
codePanel.InitializeComponent()
InitializeComponent
public void Load(SettingsStorage storage)
codePanel.Load(storage)
Загрузить настройки.
- storage
- Хранилище настроек.
public void Save(SettingsStorage storage)
codePanel.Save(storage)
Сохраните настройки.
- storage
- Хранилище настроек.
События
public event Action CodeChanged
codePanel.CodeChanged += handler
Событие изменения кода.
public event Action CompiledCode
codePanel.CompiledCode += handler
Событие компиляции кода.
public event Action LayoutChanged
codePanel.LayoutChanged += handler
Событие изменения макета.
public event Action ReferencesUpdated
codePanel.ReferencesUpdated += handler
Событие обновления ссылок.
Поля
public static readonly DependencyProperty AutoCompileProperty
value = CodePanel.AutoCompileProperty
DependencyProperty для AutoCompile.
public static readonly DependencyProperty CompileCommandProperty
value = CodePanel.CompileCommandProperty
DependencyProperty для CompileCommand.
public static readonly DependencyProperty RedoCommandProperty
value = CodePanel.RedoCommandProperty
DependencyProperty для RedoCommand.
public static readonly DependencyProperty ReferencesCommandProperty
value = CodePanel.ReferencesCommandProperty
DependencyProperty для ReferencesCommand.
public static readonly DependencyProperty SaveCommandProperty
value = CodePanel.SaveCommandProperty
DependencyProperty для SaveCommand.
public static readonly DependencyProperty ShowStartProperty
value = CodePanel.ShowStartProperty
DependencyProperty для ShowStart.
public static readonly DependencyProperty ShowToolBarProperty
value = CodePanel.ShowToolBarProperty
DependencyProperty для ShowToolBar.
public static readonly DependencyProperty StartCommandProperty
value = CodePanel.StartCommandProperty
DependencyProperty для StartCommand.
public static readonly DependencyProperty UndoCommandProperty
value = CodePanel.UndoCommandProperty
DependencyProperty для UndoCommand.