Class ScriptEditorViewModel
Represents a Stylet view model containing a script editor
Implements
IReactiveNotifyPropertyChanged<IReactiveObject>
    IHandleObservableErrors
    IReactiveObject
    IEnableLogger
    IActivatableViewModel
    
  Inherited Members
      ReactiveObject.SuppressChangeNotifications()
    
    
      ReactiveObject.AreChangeNotificationsEnabled()
    
    
      ReactiveObject.DelayChangeNotifications()
    
    
      ReactiveObject.Changing
    
    
      ReactiveObject.Changed
    
    
      ReactiveObject.ThrownExceptions
    
    
      ReactiveObject.PropertyChanging
    
    
      ReactiveObject.PropertyChanged
    
  Namespace: Artemis.UI.Shared.ScriptingProviders
Assembly: Artemis.UI.Shared.dll
Syntax
public class ScriptEditorViewModel : ActivatableViewModelBase, IReactiveNotifyPropertyChanged<IReactiveObject>, IHandleObservableErrors, IReactiveObject, IEnableLogger, IActivatableViewModel, IScriptEditorViewModel
  Constructors
ScriptEditorViewModel(ScriptType)
Creates a new instance of ScriptEditorViewModel
Declaration
public ScriptEditorViewModel(ScriptType scriptType)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ScriptType | scriptType | The script type this view model was created for  | 
      
Properties
Script
Gets the script this editor is editing
Declaration
public Script? Script { get; }
  Property Value
| Type | Description | 
|---|---|
| Script | 
ScriptType
Gets the script type this view model was created for
Declaration
public ScriptType ScriptType { get; }
  Property Value
| Type | Description | 
|---|---|
| ScriptType | 
Methods
ChangeScript(Script?)
Called whenever the view model must display a different script
Declaration
public void ChangeScript(Script? script)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Script | script | The script to display or null if no script is to be displayed  | 
      
OnScriptChanged(Script?)
Called after the script was changed to a different one
Declaration
protected virtual void OnScriptChanged(Script? script)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Script | script | The script to display or null if no script is to be displayed  | 
      
OnScriptChanging(Script?)
Called just before the script is changed to a different one
Declaration
protected virtual void OnScriptChanging(Script? script)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Script | script | The script to display or null if no script is to be displayed  | 
      
Implements
      ReactiveUI.IReactiveNotifyPropertyChanged<TSender>
  
  
      ReactiveUI.IHandleObservableErrors
  
  
      ReactiveUI.IReactiveObject
  
  
      Splat.IEnableLogger
  
  
      ReactiveUI.IActivatableViewModel