Show / Hide Table of Contents

Class TransitionViewModelBase

データ検証と画面遷移及び表示状態設定機能を持つビューモデルの基底クラスです。

Inheritance
System.Object
NotifyObject
ViewModelBase
WeakEventViewModelBase
ValidationViewModelBase
DialogViewModelBase
TransitionViewModelBase
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable
System.Windows.IWeakEventListener
System.ComponentModel.INotifyDataErrorInfo
IDialogTransferContainer
IWindowCloseCommand
IViewModelStatus
Inherited Members
DialogViewModelBase.CommunicationDialog
DialogViewModelBase.DialogType
DialogViewModelBase.DialogActionCallback
DialogViewModelBase.ResultViewModel
DialogViewModelBase.OnContainerReceived(Object)
DialogViewModelBase.MessageDialogActionParam
DialogViewModelBase.MessageDialogActionCallback
ValidationViewModelBase.IsValid
ValidationViewModelBase.IsPropertyAnnotationError(String)
ValidationViewModelBase.Item[String]
ValidationViewModelBase.ViewModelState
ValidationViewModelBase.Validate()
ValidationViewModelBase.Validate(String)
ValidationViewModelBase.SetProperty<T>(T, T, String)
ValidationViewModelBase.RaiseErrorsChanged(String)
ValidationViewModelBase.HasErrors
ValidationViewModelBase.ErrorsChanged
ValidationViewModelBase.GetErrors(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
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 TransitionViewModelBase : DialogViewModelBase, INotifyPropertyChanged, IDisposable, IWeakEventListener, INotifyDataErrorInfo, IDialogTransferContainer, IWindowCloseCommand, IViewModelStatus, IReceiveFinished

Constructors

| Improve this Doc View Source

TransitionViewModelBase()

コンストラクタ。

Declaration
public TransitionViewModelBase()

Properties

| Improve this Doc View Source

CanCloseWindow

ウィンドウを閉じることが可能かを取得します。

Declaration
public bool CanCloseWindow { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Container

ウィンドウ作成元からのデータ受け取り用プロパティ。

Declaration
public override object Container { get; set; }
Property Value
Type Description
System.Object
Overrides
DialogViewModelBase.Container
| Improve this Doc View Source

CurrentStatus

ビューモデルの処理状態を取得・設定します。

Declaration
public ViewModelStatus CurrentStatus { get; set; }
Property Value
Type Description
ViewModelStatus
| Improve this Doc View Source

DisplayMode

ウィンドウの表示状態を取得・設定します。 View 側で Microsoft.Xaml.Behaviors.Core.PropertyChangedTrigger の Binding と DisplayModeAction の DisplayMode にバインドしてください。

Declaration
public WindowAction DisplayMode { get; protected set; }
Property Value
Type Description
WindowAction
| Improve this Doc View Source

PreviousViewModel

前画面のビューモデルを取得します。

Declaration
protected TransitionViewModelBase PreviousViewModel { get; }
Property Value
Type Description
TransitionViewModelBase
| Improve this Doc View Source

WindowCloseCommand

ウィンドウを閉じるコマンド。 ボタンの有効・無効は WindowCloseCanExecute(Object)、 コマンド処理の実体は WindowClose() を設定します。

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

WindowClosedCommand

ウィンドウがクローズされた際の操作コマンド。 ウィンドウの Closed イベントが発生した際に呼び出されるようにしてください。 コマンド処理の実体は OnWindowClosed() を設定します。

Declaration
public ICommand WindowClosedCommand { get; }
Property Value
Type Description
System.Windows.Input.ICommand

Methods

| Improve this Doc View Source

OnFinished(ITransContainer)

画面遷移完了時に実行する処理です。

Declaration
public virtual void OnFinished(ITransContainer container)
Parameters
Type Name Description
ITransContainer container
| Improve this Doc View Source

OnWindowClosed()

ウィンドウがクローズされた際の操作。

Declaration
protected virtual void OnWindowClosed()
| Improve this Doc View Source

TransitionComplete()

一連の画面遷移の完了を通知します。

Declaration
protected virtual void TransitionComplete()
| Improve this Doc View Source

WindowClose()

ビューモデルからウィンドウへ Close を通知するメソッドです。

Declaration
public virtual void WindowClose()
| Improve this Doc View Source

WindowCloseCanExecute(Object)

ウィンドウが閉じることの出来る状態かどうかを返します。 仮想メソッドは常に 'true' を返します。制御が必要な場合はオーバーライドしてください。

Declaration
protected virtual bool WindowCloseCanExecute(object param)
Parameters
Type Name Description
System.Object param
Returns
Type Description
System.Boolean

Implements

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