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 側で Dialog
Declaration
public object CommunicationDialog { get; protected set; }
Property Value
Type | Description |
---|---|
System. |
Container
ウィンドウ作成元から渡されたデータの受取用。
Declaration
public virtual object Container { get; set; }
Property Value
Type | Description |
---|---|
System. |
DialogActionCallback
ダイアログが閉じられた後に実行するコールバックを取得・設定します。
View 側で Dialog
Declaration
public Action<bool?> DialogActionCallback { get; protected set; }
Property Value
Type | Description |
---|---|
System. |
DialogType
表示するカスタムダイアログボックスの型の情報。
View 側で Dialog
Declaration
public Type DialogType { get; protected set; }
Property Value
Type | Description |
---|---|
System. |
MessageDialogActionCallback
Message
Declaration
public Action<MessageBoxResult> MessageDialogActionCallback { get; set; }
Property Value
Type | Description |
---|---|
System. |
MessageDialogActionParam
Message
Declaration
public IMessageDialogActionParameter MessageDialogActionParam { get; set; }
Property Value
Type | Description |
---|---|
IMessage |
ResultViewModel
ダイアログ表示で生成されたダイアログのビューモデルへの参照を取得・設定します
(ダイアログで設定された値の参照用)。
View 側で Dialog
Declaration
public object ResultViewModel { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceOnContainerReceived(Object)
ウィンドウ作成元からのデータを受け取った際に行う処理。
Declaration
protected virtual void OnContainerReceived(object container)
Parameters
Type | Name | Description |
---|---|---|
System. |
container |
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable
System.Windows.IWeakEventListener
System.ComponentModel.IDataErrorInfo