Navigation :
DefaultViewModelToModelMappingConverter
Name |
Value |
Assembly |
Catel.MVVM |
Namespace |
Catel.MVVM |
Available on |
.NET Framework 4.5, .NET Framework 4.6, Xamarin - Android, Xamarin - iOS |
public class DefaultViewModelToModelMappingConverter : ViewModelToModelConverterBase
Base types
ViewModelToModelConverterBase
ViewModelToModelMapping Copy Converter
Constructors
DefaultViewModelToModelMappingConverter(string[] propertyNames)
Creates an instance of converter
Parameters
Name |
Description |
propertyNames |
All properties to watch |
Methods
CanConvert(Type[] types, Type outType, Type viewModelType)
Determines whether this instance can convert the specified types.
Parameters
Name |
Description |
types |
The types. |
outType |
Type of the out. |
viewModelType |
Type of the view model. |
Returns
true
if this instance can convert the specified types; otherwise,false
.
CanConvertBack(Type inType, Type[] outTypes, Type viewModelType)
Determines whether this instance can convert back the specified in type.
Parameters
Name |
Description |
inType |
Type of the in. |
outTypes |
The out types. |
viewModelType |
Type of the view model. |
Returns
true
if this instance can convert back the specified in type; otherwise,false
.
Convert(object[] values, IViewModel viewModel)
Converts the specified values.
Parameters
Name |
Description |
values |
The values. |
viewModel |
The view model. |
Returns
System.Object.
ConvertBack(object value, IViewModel viewModel)
Converts the specified values back.
Parameters
Name |
Description |
value |
Property value |
viewModel |
Owner VM |
Returns
System.Object[].
Have a question about Catel? Use StackOverflow with the Catel tag!
Discussion