Artemis Artemis
Artemis Artemis

Search Results for

    Class ViewModelBase

    Represents the base class for Artemis view models

    Inheritance
    object
    ReactiveObject
    ViewModelBase
    ActivatableViewModelBase
    DataModelDisplayViewModel
    Implements
    IReactiveNotifyPropertyChanged<IReactiveObject>
    IHandleObservableErrors
    IReactiveObject
    IEnableLogger
    Inherited Members
    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 ViewModelBase : ReactiveObject, IReactiveNotifyPropertyChanged<IReactiveObject>, IHandleObservableErrors, IReactiveObject, IEnableLogger

    Constructors

    ViewModelBase()

    Declaration
    protected ViewModelBase()

    Properties

    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
    Content is available under the PolyForm Noncommercial License, by Artemis RGB.