Table of Contents

Class BrushConfigurationViewModel

Namespace
Artemis.UI.Shared.LayerBrushes
Assembly
Artemis.UI.Shared.dll

Represents a view model for a brush configuration window

public abstract class BrushConfigurationViewModel : ValidatableViewModelBase, IReactiveNotifyPropertyChanged<IReactiveObject>, IHandleObservableErrors, IReactiveObject, IEnableLogger, IValidatableViewModel, IDisposable, IActivatableViewModel
Inheritance
object
ReactiveObject
ReactiveValidationObject
BrushConfigurationViewModel
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

BrushConfigurationViewModel(BaseLayerBrush)

Creates a new instance of the BrushConfigurationViewModel class

protected BrushConfigurationViewModel(BaseLayerBrush layerBrush)

Parameters

layerBrush BaseLayerBrush

Properties

LayerBrush

Gets the layer brush this view model is associated with

public BaseLayerBrush LayerBrush { get; }

Property Value

BaseLayerBrush

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