Class ValidatableViewModelBase
Represents the base class for Artemis view models that are interested in validation and the activated event
Inheritance
ReactiveObject
ReactiveValidationObject
ValidatableViewModelBase
Implements
IReactiveNotifyPropertyChanged<IReactiveObject>
IHandleObservableErrors
IReactiveObject
IEnableLogger
IValidatableViewModel
IActivatableViewModel
Inherited Members
ReactiveValidationObject.HasErrors
ReactiveValidationObject.ValidationContext
ReactiveValidationObject.ErrorsChanged
ReactiveObject.SuppressChangeNotifications()
ReactiveObject.AreChangeNotificationsEnabled()
ReactiveObject.DelayChangeNotifications()
ReactiveObject.Changing
ReactiveObject.Changed
ReactiveObject.ThrownExceptions
ReactiveObject.PropertyChanging
ReactiveObject.PropertyChanged
Namespace: Artemis.UI.Shared
Assembly: Artemis.UI.Shared.dll
Syntax
public abstract class ValidatableViewModelBase : ReactiveValidationObject, IReactiveNotifyPropertyChanged<IReactiveObject>, IHandleObservableErrors, IReactiveObject, IEnableLogger, IValidatableViewModel, IActivatableViewModel
Constructors
ValidatableViewModelBase()
Declaration
protected ValidatableViewModelBase()
Properties
Activator
Gets the Activator which will be used by the View when Activation/Deactivation occurs.
Declaration
public ViewModelActivator Activator { get; }
Property Value
Type | Description |
---|---|
ViewModelActivator |
DisplayName
Gets or sets the display name of the view model
Declaration
public string? DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
RaiseAndSetIfChanged<TRet>(ref TRet, TRet, string?)
RaiseAndSetIfChanged fully implements a Setter for a read-write property on a ReactiveObject, using CallerMemberName to raise the notification and the ref to the backing field to set the property.
Declaration
public TRet RaiseAndSetIfChanged<TRet>(ref TRet backingField, TRet newValue, string? propertyName = null)
Parameters
Type | Name | Description |
---|---|---|
TRet | backingField | A Reference to the backing field for this property. |
TRet | newValue | The new value. |
string | propertyName | The name of the property, usually automatically provided through the CallerMemberName attribute. |
Returns
Type | Description |
---|---|
TRet | The newly set value, normally discarded. |
Type Parameters
Name | Description |
---|---|
TRet | The type of the return value. |
Implements
ReactiveUI.IReactiveNotifyPropertyChanged<TSender>
ReactiveUI.IHandleObservableErrors
ReactiveUI.IReactiveObject
Splat.IEnableLogger
ReactiveUI.Validation.Abstractions.IValidatableViewModel
ReactiveUI.IActivatableViewModel