Under Desk Bike

    Show / Hide Table of Contents

    Class NotifyObject

    Abstract base class for classes that implement INotifyPropertyChanged.

    Inheritance
    object
    NotifyObject
    Bike
    Implements
    INotifyPropertyChanged
    Namespace: Codaris.Common
    Assembly: Codaris.Common.dll
    Syntax
    public abstract class NotifyObject : INotifyPropertyChanged

    Methods

    OnPropertyChanged(string)

    Called when the property changed.

    protected void OnPropertyChanged(string name = null)
    Parameters
    Type Name Description
    string name

    The property name.

    See Also
    INotifyPropertyChanged

    SetProperty<T>(ref T, T, Action<T>, string)

    Sets the property value and raises the changed event.

    protected bool SetProperty<T>(ref T field, T value, Action<T> onChanged = null, string name = null)
    Parameters
    Type Name Description
    T field

    The field.

    T value

    The value.

    Action<T> onChanged

    The action to execute if the value changes.

    string name

    The name of the property.

    Returns
    Type Description
    bool

    True if property was changed.

    Type Parameters
    Name Description
    T

    The type of the property.

    See Also
    INotifyPropertyChanged

    Events

    PropertyChanged

    Occurs when a property value changes.

    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    PropertyChangedEventHandler
    See Also
    INotifyPropertyChanged

    Implements

    INotifyPropertyChanged

    See Also

    INotifyPropertyChanged
    Back to top Copyright (c) 2021 by Wayne Venables