Show / Hide Table of Contents

Class ModalViewModelBase

データ検証とモーダルダイアログ表示機能を持つビューモデルの基底クラスです。

Inheritance
System.Object
NotifyObject
ViewModelBase
WeakEventViewModelBase
ValidationViewModelBase
DialogViewModelBase
ModalViewModelBase
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable
System.Windows.IWeakEventListener
System.ComponentModel.IDataErrorInfo
IDialogTransferContainer
Inherited Members
DialogViewModelBase.CommunicationDialog
DialogViewModelBase.DialogType
DialogViewModelBase.Container
DialogViewModelBase.DialogActionCallback
DialogViewModelBase.ResultViewModel
DialogViewModelBase.OnContainerReceived(Object)
DialogViewModelBase.MessageDialogActionParam
DialogViewModelBase.MessageDialogActionCallback
ValidationViewModelBase.IsValid
ValidationViewModelBase.RemoveItemValidationError<T>(Expression<Func<T>>)
ValidationViewModelBase.RemoveItemValidationError(String)
ValidationViewModelBase.IsPropertyAnnotationError<T>(Expression<Func<T>>)
ValidationViewModelBase.IsPropertyAnnotationError(String)
ValidationViewModelBase.ViewModelState
ValidationViewModelBase.RaisePropertyChangedWithRemoveItemValidationError<T>(Expression<Func<T>>)
ValidationViewModelBase.RaisePropertyChangedWithRemoveItemValidationError(String)
ValidationViewModelBase.SetPropertyWithRemoveItemValidationError<T>(T, T, String)
ValidationViewModelBase.Error
ValidationViewModelBase.Item[String]
WeakEventViewModelBase.ReceiveWeakEvent(Type, Object, EventArgs)
WeakEventViewModelBase.OnReceivedPropertyChangeNotification(Type, Object, EventArgs)
WeakEventViewModelBase.OnReceiveWeakEventNotification(Type, Object, EventArgs)
ViewModelBase.UiDispatcher
ViewModelBase.IsUiThread()
ViewModelBase.RaisePropertyChanged(String)
ViewModelBase.InvalidateRequerySuggested()
ViewModelBase.Dispose()
ViewModelBase.Dispose(Boolean)
NotifyObject.PropertyChanged
NotifyObject.SetProperty<T>(T, T, String)
NotifyObject.RaisePropertyChanged<T>(Expression<Func<T>>)
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 ModalViewModelBase : DialogViewModelBase, INotifyPropertyChanged, IDisposable, IWeakEventListener, IDataErrorInfo, IDialogTransferContainer

Constructors

| Improve this Doc View Source

ModalViewModelBase()

コンストラクタ。

Declaration
public ModalViewModelBase()

Properties

| Improve this Doc View Source

OkCommand

OK ボタン用のコマンドです。 ボタンの有効・無効は OkCanExecute(Object)、コマンド処理の実体は OkExecute() を設定します。

Declaration
public ICommand OkCommand { get; }
Property Value
Type Description
System.Windows.Input.ICommand
| Improve this Doc View Source

Result

View 側の System.Windows.Window.DialogResult セットのトリガーとなるプロパティです。 View 側で Microsoft.Expression.Interactivity.Core.PropertyChangedTrigger の Binding と Microsoft.Expression.Interactivity.Core.ChangePropertyAction の Value にバインドしてください。

Declaration
public bool? Result { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

Methods

| Improve this Doc View Source

OkCanExecute(Object)

OkCommand の 有効/無効 を返します。 データ検証エラーの有無を返します。データ検証エラーを用いないで判断したい場合はオーバーライドしてください。

Declaration
protected virtual bool OkCanExecute(object param)
Parameters
Type Name Description
System.Object param
Returns
Type Description
System.Boolean
| Improve this Doc View Source

OkExecute()

モーダルダイアログの OK ボタンクリック時の処理。 仮想メソッドは Window の DialogResult プロパティに true をセットする動作のみです。制御が必要な場合はオーバーライドしてください。

Declaration
protected virtual void OkExecute()

Implements

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