IViewModelWrapperService

Name Value
Assembly Catel.Core
Namespace Catel.Services
Available on .NET Framework 4.5, .NET Framework 4.6, Xamarin - Android, Xamarin - iOS
public interface IViewModelWrapperService

The view model wrapper service which is responsible of ensuring the view model container layer.

Methods

IsWrapped(IView view)

Determines whether the specified view is already wrapped.

Parameters

Name Description
view The view.

Returns

true if the specified view is already wrapped; otherwise,false.

Exceptions

Name Description
ArgumentNullException The view isnull.

Wrap(IView view, object viewModelSource, WrapOptions wrapOptions)

Wraps the specified view.

Parameters

Name Description
view The view.
viewModelSource The view model source containing theViewModel property.
wrapOptions The wrap options.

Returns

The IViewModelWrapper.

Exceptions

Name Description
ArgumentNullException The view isnull.

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


Discussion