Class DialogViewModelBase
データ検証とダイアログ表示の基本機能を提供するビューモデルの基底クラスです。
Inheritance
System.Object
    
    
    
    
    DialogViewModelBase
      
      
  Implements
System.ComponentModel.INotifyPropertyChanged
    System.IDisposable
    System.Windows.IWeakEventListener
    System.ComponentModel.IDataErrorInfo
    
  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 DialogViewModelBase : ValidationViewModelBase, INotifyPropertyChanged, IDisposable, IWeakEventListener, IDataErrorInfo, IDialogTransferContainer
  Constructors
| Improve this Doc View SourceDialogViewModelBase()
コンストラクタ。
Declaration
public DialogViewModelBase()
  Properties
| Improve this Doc View SourceCommunicationDialog
作成する Dialog に渡すデータを取得・設定します。 View 側で DialogTransferDataAction の Parameter にバインドしてください。
Declaration
public object CommunicationDialog { get; protected set; }
  Property Value
| Type | Description | 
|---|---|
| System.Object | 
Container
ウィンドウ作成元から渡されたデータの受取用。
Declaration
public virtual object Container { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Object | 
DialogActionCallback
ダイアログが閉じられた後に実行するコールバックを取得・設定します。 View 側で DialogTransferDataAction の ActionCallBack にバインドしてください。
Declaration
public Action<bool?> DialogActionCallback { get; protected set; }
  Property Value
| Type | Description | 
|---|---|
| System.Action<System.Nullable<System.Boolean>> | 
DialogType
表示するカスタムダイアログボックスの型の情報。 View 側で DialogTransferDataAction の DialogType にバインドしてください。
Declaration
public Type DialogType { get; protected set; }
  Property Value
| Type | Description | 
|---|---|
| System.Type | 
MessageDialogActionCallback
MessageDialogAction の実行後に呼ばれるCallBack。 View 側で MessageDialogAction の ActionCallBack にバインドしてください。
Declaration
public Action<MessageBoxResult> MessageDialogActionCallback { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Action<System.Windows.MessageBoxResult> | 
MessageDialogActionParam
MessageDialogAction に渡すパラメーター。 View 側で Microsoft.Expression.Interactivity.Core.PropertyChangedTrigger の Binding と MessageDialogAction の Parameter にバインドしてください。
Declaration
public IMessageDialogActionParameter MessageDialogActionParam { get; set; }
  Property Value
| Type | Description | 
|---|---|
| IMessageDialogActionParameter | 
ResultViewModel
ダイアログ表示で生成されたダイアログのビューモデルへの参照を取得・設定します (ダイアログで設定された値の参照用)。 View 側で DialogTransferDataAction の ResultViewModel にバインドしてください。
Declaration
public object ResultViewModel { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Object | 
Methods
| Improve this Doc View SourceOnContainerReceived(Object)
ウィンドウ作成元からのデータを受け取った際に行う処理。
Declaration
protected virtual void OnContainerReceived(object container)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | container | 
Implements
      System.ComponentModel.INotifyPropertyChanged
  
  
      System.IDisposable
  
  
      System.Windows.IWeakEventListener
  
  
      System.ComponentModel.IDataErrorInfo