ViewModelManagerExtensions

Name Value
Assembly Catel.MVVM
Namespace Catel.MVVM
Available on .NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS
public static class ViewModelManagerExtensions

Extensions for the IViewModelManager interface.

Methods

CancelAndCloseViewModelsAsync(IViewModelManager viewModelManager, Func<IViewModel, bool> predicate)

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

Parameters

Name Description
viewModelManager The view model manager.
predicate The predicate.

Exceptions

Name Description
ArgumentNullException The viewModelManager isnull.

SaveAndCloseViewModelsAsync(IViewModelManager viewModelManager, Func<IViewModel, bool> predicate)

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

Parameters

Name Description
viewModelManager The view model manager.
predicate The predicate.

Exceptions

Name Description
ArgumentNullException The viewModelManager isnull.

Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion