Show / Hide Table of Contents

Class ViewModelBase

プロパティ変更通知を実装したビューモデルの基底クラス。

Inheritance
System.Object
NotifyObject
ViewModelBase
WeakEventViewModelBase
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable
Inherited Members
NotifyObject.PropertyChanged
NotifyObject.SetProperty<T>(T, T, String)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: MakCraft.ViewModels
Assembly: MakViewModelBaseCore.dll
Syntax
public abstract class ViewModelBase : NotifyObject, INotifyPropertyChanged, IDisposable

Constructors

| Improve this Doc View Source

ViewModelBase()

コンストラクタ。

Declaration
public ViewModelBase()

Properties

| Improve this Doc View Source

UiDispatcher

UI スレッドのディスパッチャ。

Declaration
protected Dispatcher UiDispatcher { get; }
Property Value
Type Description
System.Windows.Threading.Dispatcher

Methods

| Improve this Doc View Source

Dispose()

リソースの開放を行います。

Declaration
public void Dispose()
| Improve this Doc View Source

Dispose(Boolean)

リソースの開放を行います。

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing
| Improve this Doc View Source

Finalize()

デストラクタ。

Declaration
protected void Finalize()
| Improve this Doc View Source

InvalidateRequerySuggested()

CommandManager.RequerySuggested イベントを強制的に発火させます(呼び出し元のスレッドが UI スレッドでない場合には、UI スレッドにて実行を行います)。

Declaration
protected void InvalidateRequerySuggested()
| Improve this Doc View Source

IsUiThread()

UI スレッドからのアクセスかどうかを判定する。

Declaration
protected bool IsUiThread()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

RaisePropertyChanged(String)

PropertyChanged イベントを発火します(呼び出し元のスレッドが UI スレッドでない場合には、UI スレッドにて実行を行います)。 propertyName が省略された場合、呼び出し元のメソッドまたはプロパティの名前を用います。

Declaration
protected override void RaisePropertyChanged(string propertyName = null)
Parameters
Type Name Description
System.String propertyName
Overrides
NotifyObject.RaisePropertyChanged(String)

Implements

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