Show / Hide Table of Contents

Class ViewModelUtility

ViewModel 関連のユーティリティクラス。

Inheritance
System.Object
ViewModelUtility
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 static class ViewModelUtility

Properties

| Improve this Doc View Source

IsReadyCloseAllWindows

すべてのウィンドウが閉じることが可能か確認します。

Declaration
public static bool IsReadyCloseAllWindows { get; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

CloseViewModels(Type)

指定されたビューモデルのインスタンスの IWindowCloseCommand インターフェイス の WindowClose メソッドを実行します。

Declaration
public static void CloseViewModels(Type type)
Parameters
Type Name Description
System.Type type
| Improve this Doc View Source

Count(Type)

指定されたビューモデルのインスタンスの数を返します。

Declaration
public static int Count(Type type)
Parameters
Type Name Description
System.Type type
Returns
Type Description
System.Int32
| Improve this Doc View Source

GetMainWindowViewModel()

MainWindow となっている Window の ViewModel を返します。

Declaration
public static ViewModelBase GetMainWindowViewModel()
Returns
Type Description
ViewModelBase
| Improve this Doc View Source

GetViewModels(Type)

指定されたビューモデルのインスタンスの一覧を返します。

Declaration
public static IReadOnlyList<ViewModelBase> GetViewModels(Type type)
Parameters
Type Name Description
System.Type type
Returns
Type Description
System.Collections.Generic.IReadOnlyList<ViewModelBase>
  • Improve this Doc
  • View Source
Back to top Generated by DocFX