Table of Contents

Class EffectConfigurationViewModel

Namespace
Artemis.UI.Shared.LayerEffects
Assembly
Artemis.UI.Shared.dll

Represents a view model for an effect configuration window

public abstract class EffectConfigurationViewModel : ValidatableViewModelBase, IReactiveNotifyPropertyChanged<IReactiveObject>, IHandleObservableErrors, IReactiveObject, IEnableLogger, IValidatableViewModel, IDisposable, IActivatableViewModel
Inheritance
object
ReactiveObject
ReactiveValidationObject
EffectConfigurationViewModel
Implements
IReactiveNotifyPropertyChanged<IReactiveObject>
IHandleObservableErrors
IReactiveObject
IEnableLogger
IValidatableViewModel
IActivatableViewModel
Inherited Members
ReactiveValidationObject.Dispose()
ReactiveValidationObject.HasErrors
ReactiveValidationObject.ValidationContext
ReactiveValidationObject.ErrorsChanged
ReactiveObject.SuppressChangeNotifications()
ReactiveObject.AreChangeNotificationsEnabled()
ReactiveObject.DelayChangeNotifications()
ReactiveObject.Changing
ReactiveObject.Changed
ReactiveObject.ThrownExceptions
ReactiveObject.PropertyChanging
ReactiveObject.PropertyChanged

Constructors

EffectConfigurationViewModel(BaseLayerEffect)

Creates a new instance of the EffectConfigurationViewModel class

protected EffectConfigurationViewModel(BaseLayerEffect layerEffect)

Parameters

layerEffect BaseLayerEffect

Properties

LayerEffect

Gets the layer effect this view model is associated with

public BaseLayerEffect LayerEffect { get; }

Property Value

BaseLayerEffect

Methods

CanClose()

Called when the window wants to close, returning false will cause the window to stay open.

public virtual bool CanClose()

Returns

bool

true if the window may close; otherwise false.

CanCloseAsync()

Called when the window wants to close, returning false will cause the window to stay open.

public virtual Task<bool> CanCloseAsync()

Returns

Task<bool>

A task true if the window may close; otherwise false.

RequestClose()

Closes the dialog

public void RequestClose()

Events

CloseRequested

Occurs when a close was requested

public event EventHandler? CloseRequested

Event Type

EventHandler