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
CatelTypeInfo
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 class CatelTypeInfo
Class containing all information about a Catel type (such as properties).
Fields
Constructors
CatelTypeInfo(Type type)
Initializes a new instance of the CatelTypeInfo class.
Parameters
Name
Description
type
The type.
Exceptions
Name
Description
ArgumentNullException
The type isnull
.
Properties
IsRegisterPropertiesCalled
Gets a value indicating whether the RegisterProperties method has been called at least once.
Type
Gets the type.
Methods
GetCatelProperties()
Gets the Catel properties.
Returns
Dictionary containing the Catel properties.
GetNonCatelProperties()
Gets the non-Catel properties.
Returns
Dictionary containing the non-Catel properties.
GetPropertyData(string name)
Gets the property data.
Parameters
Name
Description
name
The name of the property.
Returns
The PropertyData of the requested property.
Exceptions
Name
Description
ArgumentException
The name isnull
or whitespace.
T:Catel.Data.PropertyNotRegisteredException
Thrown when the property is not registered.
IsPropertyRegistered(string name)
Returns whether a specific property is registered.
Parameters
Name
Description
name
The name of the property.
Returns
True if the property is registered, otherwise false.
Exceptions
Name
Description
ArgumentException
The name isnull
or whitespace.
RegisterProperties()
Registers all the properties for the specified type. This method can only be called once per type. The PropertyDataManager caches whether it has already registered the properties once.
Exceptions
Name
Description
InvalidOperationException
The properties are not declared correctly.
RegisterProperty(string name, PropertyData propertyData)
Registers a property for a specific type.
Parameters
Name
Description
name
The name of the property.
propertyData
The property data.
Exceptions
Name
Description
ArgumentException
The name isnull
or whitespace.
ArgumentNullException
The propertyData isnull
.
T:Catel.Data.PropertyAlreadyRegisteredException
A property with the same name is already registered.
UnregisterProperty(string name)
Unregisters a property for a specific type.
Parameters
Name
Description
name
The name of the property.
Exceptions
Name
Description
ArgumentException
The name isnull
or whitespace.
Have a question about Catel? Use StackOverflow with the Catel tag!
Discussion
Please enable JavaScript to view the comments powered by Disqus.