Class ViewModelBase
プロパティ変更通知を実装したビューモデルの基底クラス。
Implements
System.ComponentModel.INotifyPropertyChanged
    System.IDisposable
  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 ViewModelBase : NotifyObject, INotifyPropertyChanged, IDisposable
  Constructors
| Improve this Doc View SourceViewModelBase()
コンストラクタ。
Declaration
public ViewModelBase()
  Properties
| Improve this Doc View SourceUiDispatcher
UI スレッドのディスパッチャ。
Declaration
protected Dispatcher UiDispatcher { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Windows.Threading.Dispatcher | 
Methods
| Improve this Doc View SourceDispose()
リソースの開放を行います。
Declaration
public void Dispose()
  Dispose(Boolean)
リソースの開放を行います。
Declaration
protected virtual void Dispose(bool disposing)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | disposing | 
Finalize()
デストラクタ。
Declaration
protected void Finalize()
  InvalidateRequerySuggested()
CommandManager.RequerySuggested イベントを強制的に発火させます(呼び出し元のスレッドが UI スレッドでない場合には、UI スレッドにて実行を行います)。
Declaration
protected void InvalidateRequerySuggested()
  IsUiThread()
UI スレッドからのアクセスかどうかを判定する。
Declaration
protected bool IsUiThread()
  Returns
| Type | Description | 
|---|---|
| System.Boolean | 
RaisePropertyChanged(String)
PropertyChanged イベントを発火します(呼び出し元のスレッドが UI スレッドでない場合には、UI スレッドにて実行を行います)。 propertyName が省略された場合、呼び出し元のメソッドまたはプロパティの名前を用います。
Declaration
protected override void RaisePropertyChanged(string propertyName = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | propertyName | 
Overrides
Implements
      System.ComponentModel.INotifyPropertyChanged
  
  
      System.IDisposable