Navigation :
Introduction
FAQ
Setup, deployment & projects
Getting started
Examples
Catel.Core
Catel.MVVM
Catel.Fody
Catel.ReSharper
Tips & tricks
API reference
-
Catel.Cores
--
Catel
---
Catel.Android
---
Catel.ApiCop
---
Catel.Caching
---
Catel.Collections
---
Catel.ComponentModel
---
Catel.Configuration
---
Catel.Core
---
Catel.Data
---- AdvancedPropertyChangedEventArgs
---- AttributeValidatorProvider
---- BoxingCache
---- BusinessRuleValidationResult
---- CatelTypeInfo
---- ChangeNotificationWrapper
---- ChildAwareModelBase
---- ComparableModelBase
---- CompositeValidator
---- CompositeValidatorProvider
---- DispatcherObservableObject
---- EditableObjectHelper
---- EventChangeType
---- ExcludeFromValidationAttribute
---- FieldValidationResult
---- IAdvancedNotifyPropertyChanged
---- IBusinessRuleValidationResult
---- IFieldValidationResult
---- IModel
---- IModelEditor
---- IModelEqualityComparer
---- IModelExtensions
---- IModelSerialization
---- ISavableModel
---- ISavableModelExtensions
---- IValidatable
---- IValidatableExtensions
---- IValidatableModel
---- IValidatableModelExtensions
---- IValidationContext
---- IValidationContextExtensions
---- IValidationResult
---- IValidationSummary
---- IValidator
---- IValidatorProvider
---- IValueValidator
---- InvalidPropertyException
---- InvalidPropertyValueException
---- ModelBase
---- ModelBaseExtensions
---- ModelEqualityComparer
---- ObservableObject
---- ObservableObjectExtensions
---- PropertyAlreadyRegisteredException
---- PropertyBag
---- PropertyData
---- PropertyDataManager
---- PropertyNotNullableException
---- PropertyNotRegisteredException
---- PropertyValue
---- SavableModelBase
---- SuspensionContext
---- ValidatableModelBase
---- ValidateModelAttribute
---- ValidationContext
---- ValidationContextChange
---- ValidationContextChangeType
---- ValidationContextHelper
---- ValidationEventArgs
---- ValidationExtensions
---- ValidationResult
---- ValidationResultType
---- ValidationSummary
---- ValidatorBase
---- ValidatorProviderBase
---- XmlNameMapper
---
Catel.ExceptionHandling
---
Catel.IO
---
Catel.IoC
---
Catel.Linq
---
Catel.Logging
---
Catel.Messaging
---
Catel.Pooling
---
Catel.Reflection
---
Catel.Runtime
---
Catel.Scoping
---
Catel.Services
---
Catel.Test
---
Catel.Text
---
Catel.Threading
--- Argument
--- AsyncEventHandler
--- AsyncEventHandlerExtensions
--- ByteArrayExtensions
--- CatelEnvironment
--- CompositeFilter
--- CompositePredicate
--- CoreModule
--- DesignTimeCodeAttribute
--- DesignTimeHelper
--- DesignTimeInitializer
--- Disposable
--- DisposableToken
--- Enum
--- EnvironmentHelper
--- EventHandlerExtensions
--- ExceptionExtensions
--- ExceptionFactory
--- ExpressionHelper
--- FastDateTime
--- HashHelper
--- IBindableEnum
--- ICommandManagerExtensions
--- ICompositeFilter
--- IDisposableToken
--- IExecute
--- IExecuteWithObject
--- IFluent
--- INotifyPropertyChangedExtensions
--- IUniqueIdentifyable
--- IWeakAction
--- IWeakEventListener
--- IWeakFunc
--- IWeakReference
--- JsonExtensions
--- KnownPlatforms
--- LanguageHelper
--- MVVMModule
--- MustBeImplementedException
--- NotSupportedInPlatformException
--- ObjectHelper
--- ObjectToStringHelper
--- OpenInstanceActionHandler
--- OpenInstanceEventHandler
--- ParallelHelper
--- Platforms
--- ProcessExtensions
--- ProgressContext
--- ResourceHelper
--- SerializationJsonModule
--- StringExtensions
--- StringToObjectHelper
--- SupportedPlatforms
--- TagHelper
--- ThemeHelper
--- ThreadHelper
--- UniqueIdentifierHelper
--- UriExtensions
--- WeakAction
--- WeakActionBase
--- WeakEventListener
--- WeakFunc
--
Systems
-
Catel.MVVMs
-
Catel.Serialization.Jsons
IValidatable
Name
Value
Assembly
Catel.Core
Namespace
Catel.Data
Available on
.NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS
public interface IValidatable : IDataWarningInfo, INotifyDataWarningInfo
Implements interfaces
IDataWarningInfo ,INotifyDataWarningInfo
Interface defining a validatable object.
Properties
IsHidingValidationResults
Gets a value indicating whether the object is currently hiding its validation results. If the object hides its validation results, it is still possible to retrieve the validation results using the ValidationContext.
IsValidated
Gets or sets a value indicating whether this object is validated or not.
ValidationContext
Gets the validation context which contains all information about the validation.
Validator
Gets or sets the validator to use. By default, this value retrieves the default validator from them IValidatorProvider if it is registered in the ServiceLocator .
Events
Validated
Occurs when the object is validated.
Validating
Occurs when the object is validating.
Methods
Validate(bool force)
Validates the current object for field and business rule errors.
Parameters
Name
Description
force
if set totrue
, a validation is forced. When the validation is not forced, it means that when the object is already validated, and no properties have been changed, no validation actually occurs since there is no reason for any values to have changed.
To check wether this object contains any errors, use the ValidationContext property.
Have a question about Catel? Use StackOverflow with the Catel tag!
Discussion
Please enable JavaScript to view the comments powered by Disqus.