C# Class Catel.MVVM.ViewModelManagerExtensions

Extensions for the IViewModelManager interface.
Show file Open project: Catel/Catel

Public Methods

Method Description
CancelAndCloseViewModels ( this viewModelManager, bool>.Func predicate ) : void

Closes all view models that are currently being managed by the ViewModelManager which match the predicate.

SaveAndCloseViewModels ( this viewModelManager, bool>.Func predicate ) : void

Closes all view models that are currently being managed by the ViewModelManager which match the predicate.

Method Details

CancelAndCloseViewModels() public static method

Closes all view models that are currently being managed by the ViewModelManager which match the predicate.
The is null. The is null.
public static CancelAndCloseViewModels ( this viewModelManager, bool>.Func predicate ) : void
viewModelManager this The view model manager.
predicate bool>.Func The predicate.
return void

SaveAndCloseViewModels() public static method

Closes all view models that are currently being managed by the ViewModelManager which match the predicate.
The is null. The is null.
public static SaveAndCloseViewModels ( this viewModelManager, bool>.Func predicate ) : void
viewModelManager this The view model manager.
predicate bool>.Func The predicate.
return void