IViewModelExtensions

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 IViewModelExtensions

Extension methods for IViewModel.

Methods

CancelAndCloseViewModelAsync(IViewModel viewModel)

Cancels the editing of the data, but also closes the view model in the same call.

Returns

true if successful; otherwisefalse.

SaveAndCloseViewModelAsync(IViewModel viewModel)

Saves the data, but also closes the view model in the same call if the save succeeds.

Returns

true if successful; otherwisefalse.


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


Discussion