C# Class MetroTrilithon.Mvvm.PropertyChangedExtensions

Show file Open project: Grabacr07/MetroTrilithon

Public Methods

Method Description
Subscribe ( this source, Action action ) : IDisposable

INotifyPropertyChanged.PropertyChanged イベントを購読します。

Subscribe ( this source, PropertyChangedEventHandler handler ) : IDisposable

INotifyPropertyChanged.PropertyChanged イベントを購読します。

Subscribe ( this source, string propertyName, System.Action action, bool immediately = true ) : ListenerWrapper

指定したプロパティ名で発生した INotifyPropertyChanged.PropertyChanged イベントを購読します。

Method Details

Subscribe() public static method

INotifyPropertyChanged.PropertyChanged イベントを購読します。
public static Subscribe ( this source, Action action ) : IDisposable
source this イベント ソース。
action Action イベント発生時に、 を受け取って実行されるメソッド。
return IDisposable

Subscribe() public static method

INotifyPropertyChanged.PropertyChanged イベントを購読します。
public static Subscribe ( this source, PropertyChangedEventHandler handler ) : IDisposable
source this
handler PropertyChangedEventHandler
return IDisposable

Subscribe() public static method

指定したプロパティ名で発生した INotifyPropertyChanged.PropertyChanged イベントを購読します。
public static Subscribe ( this source, string propertyName, System.Action action, bool immediately = true ) : ListenerWrapper
source this イベント ソース。
propertyName string イベントを購読するプロパティの名前。
action System.Action イベント発生時に実行するメソッド。
immediately bool このメソッドの呼び出し時点で を 1 度実行する場合は true、それ以外の場合は false。既定値は true です。
return ListenerWrapper