Show / Hide Table of Contents

Class NotifyObject

プロパティ変更通知を実装した基底クラス。

Inheritance
System.Object
NotifyObject
ViewModelBase
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: MakCraft.ViewModels
Assembly: MakViewModelsBase.dll
Syntax
public abstract class NotifyObject : INotifyPropertyChanged

Constructors

| Improve this Doc View Source

NotifyObject()

コンストラクタ。

Declaration
public NotifyObject()

Methods

| Improve this Doc View Source

RaisePropertyChanged(String)

PropertyChanged イベントを発火します。 propertyName が省略された場合、呼び出し元のメソッドまたはプロパティの名前を用います。

Declaration
protected virtual void RaisePropertyChanged(string propertyName = null)
Parameters
Type Name Description
System.String propertyName
| Improve this Doc View Source

RaisePropertyChanged<T>(Expression<Func<T>>)

PropertyChanged イベントを発火します。

Declaration
protected void RaisePropertyChanged<T>(Expression<Func<T>> e)
Parameters
Type Name Description
System.Linq.Expressions.Expression<System.Func<T>> e
Type Parameters
Name Description
T
| Improve this Doc View Source

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

プロパティ名 property を value の値で書き換え、PropertyChanged イベントを発火します。 propertyName パラメータが省略された場合、呼び出し元のプロパティの名前を用います。

Declaration
protected void SetProperty<T>(ref T property, T value, string propertyName = null)
Parameters
Type Name Description
T property
T value
System.String propertyName
Type Parameters
Name Description
T

Events

| Improve this Doc View Source

PropertyChanged

PropertyChanged イベント処理用のデリゲート。

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

Implements

System.ComponentModel.INotifyPropertyChanged
  • Improve this Doc
  • View Source
Back to top Generated by DocFX