Artemis logo
Search Results for

    Show / Hide Table of Contents

    Class CorePropertyChanged

    Represents a basic bindable class which notifies when a property value changes.

    Inheritance
    System.Object
    CorePropertyChanged
    ArtemisDevice
    ArtemisLed
    BreakableModel
    ColorGradientStop
    LayerProperty<T>
    LayerPropertyKeyframe<T>
    Plugin
    PluginFeature
    PluginFeatureInfo
    PluginInfo
    PluginPrerequisite
    PluginPrerequisiteAction
    PluginSetting<T>
    PrerequisiteActionProgress
    ProfileCategory
    ProfileConfiguration
    ProfileConfigurationHotkey
    ProfileConfigurationIcon
    Script
    ScriptConfiguration
    Timeline
    Namespace: Artemis.Core
    Assembly: Artemis.Core.dll
    Syntax
    public abstract class CorePropertyChanged : INotifyPropertyChanged

    Methods

    | Improve this Doc View Source

    OnPropertyChanged(String)

    Triggers the PropertyChanged-event when a a property value has changed.

    Declaration
    protected virtual void OnPropertyChanged(string propertyName = null)
    Parameters
    Type Name Description
    System.String propertyName

    Name of the property used to notify listeners. This value is optional and can be provided automatically when invoked from compilers that support System.Runtime.CompilerServices.CallerMemberNameAttribute .

    | Improve this Doc View Source

    RequiresUpdate<T>(ref T, T)

    Checks if the property already matches the desirec value or needs to be updated.

    Declaration
    protected virtual bool RequiresUpdate<T>(ref T storage, T value)
    Parameters
    Type Name Description
    T storage

    Reference to the backing-filed.

    T value

    Value to apply.

    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    Type of the property.

    | Improve this Doc View Source

    SetAndNotify<T>(ref T, T, String)

    Checks if the property already matches the desired value and updates it if not.

    Declaration
    [NotifyPropertyChangedInvocator]
    protected virtual bool SetAndNotify<T>(ref T storage, T value, string propertyName = null)
    Parameters
    Type Name Description
    T storage

    Reference to the backing-filed.

    T value

    Value to apply.

    System.String propertyName

    Name of the property used to notify listeners. This value is optional and can be provided automatically when invoked from compilers that support System.Runtime.CompilerServices.CallerMemberNameAttribute .

    Returns
    Type Description
    System.Boolean

    true if the value was changed, false if the existing value matched the desired value.

    Type Parameters
    Name Description
    T

    Type of the property.

    Events

    | Improve this Doc View Source

    PropertyChanged

    Occurs when a property value changes.

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    System.ComponentModel.PropertyChangedEventHandler
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX