Navigation :
Introduction
FAQ
Setup, deployment & projects
Getting started
Examples
Catel.Core
Catel.MVVM
Catel.Fody
Catel.ReSharper
Tips & tricks
API reference
-
Catel.Cores
-
Catel.MVVMs
--
Catels
---
Catel.MVVM
----
Catel.MVVM.Auditing
----
Catel.MVVM.Converters
----
Catel.MVVM.Navigation
----
Catel.MVVM.Properties
----
Catel.MVVM.Providers
----
Catel.MVVM.Tasks
----
Catel.MVVM.Views
---- Binding
---- BindingBase
---- BindingContext
---- BindingContextExtensions
---- BindingExtensions
---- BindingMode
---- BindingParty
---- BindingPartyExtensions
---- CancelingEventArgs
---- CancellableEventArgs
---- Command
---- CommandBase
---- CommandBinding
---- CommandCanceledEventArgs
---- CommandContainerBase
---- CommandCreatedEventArgs
---- CommandEventArgs
---- CommandExecutedEventArgs
---- CommandHelper
---- CommandManager
---- CommandManagerWrapper
---- CommandProgressChangedEventArgs
---- CompositeCommand
---- DataContextSubscriptionMode
---- DataContextSubscriptionService
---- DefaultViewModelToModelMappingConverter
---- IAuthenticationProvider
---- ICatelCommand
---- ICatelTaskCommand
---- ICommandManager
---- ICompositeCommand
---- IDataContextSubscriptionService
---- ILocator
---- IProgressNotifyableViewModel
---- IRelationalViewModel
---- ITaskProgressReport
---- IUrlLocator
---- IViewLocator
---- IViewModel
---- IViewModelCommandManager
---- IViewModelContainer
---- IViewModelExtensions
---- IViewModelFactory
---- IViewModelFactoryExtensions
---- IViewModelLocator
---- IViewModelLocatorExtensions
---- IViewModelManager
---- IViewModelToModelConverter
---- InvalidViewModelException
---- LocatorBase
---- ModelAttribute
---- ModelCleanUpMode
---- ModelNotRegisteredException
---- ModuleInitializer
---- NavigationViewModelBase
---- ObjectExtensions
---- ObjectToDisplayNameConverter
---- ProgressNotifyableViewModel
---- ProgressiveTaskCommand
---- PropertyNotFoundInModelException
---- SavingEventArgs
---- TaskCommand
---- UrlLocator
---- ViewHelper
---- ViewLocator
---- ViewModelBase
---- ViewModelClosedEventArgs
---- ViewModelCommandManager
---- ViewModelExtensions
---- ViewModelFactory
---- ViewModelLocator
---- ViewModelManager
---- ViewModelManagerExtensions
---- ViewModelNotRegisteredException
---- ViewModelServiceHelper
---- ViewModelToModelAttribute
---- ViewModelToModelConverterBase
---- ViewModelToModelMapping
---- ViewModelToModelMode
---- WrongViewModelTypeException
---
Catel.Windows
---
Androids
--
Systems
-
Catel.Serialization.Jsons
ViewModelToModelMode
Name
Value
Assembly
Catel.MVVM
Namespace
Catel.MVVM
Available on
.NET Framework 4.5, .NET Framework 4.6, Xamarin - Android, Xamarin - iOS
public enum ViewModelToModelMode : Enum
Base types
Enum
Specifies the different mapping modes available for the ViewModelToModelAttribute .
Fields
Explicit
3
Automatically maps properties from the model to the view model as soon as the model is initialized. As soon as a property value changes in the model, the view model value is updated instantly. However, the mapping from the view model to model is explicit.
OneWay
1
Automatically maps the property from the model to the view model if the model changes the property value. This mode does not map any values from the view model to the model, thus can also be seen as read-only mode.
OneWayToSource
2
Automatically maps the property from the view model to the model if the view model changes the property value. This mode does not map any values from the model to the view model, but still keeps track of all validation that occurs in the model.
TwoWay
0
Automatically maps the property from view model to model and back as soon as either one changes the property value.
Have a question about Catel? Use StackOverflow with the Catel tag!
Discussion
Please enable JavaScript to view the comments powered by Disqus.