Maps theme-effective element types to the factories that create their state managers.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public sealed class ItemStateManagerFactoryRegistry
Inheritance: objectItemStateManagerFactoryRegistry
Methods
Registers the state-manager factory for a theme-effective element type, replacing any prior registration for that type.
public static void AddStateManagerFactory(ItemStateManagerFactoryBase stateManagerFactory, Type themeType)
The factory used to create the type's state manager.
themeTypeTypeThe element type used as the registry key.
Gets a registered state-manager factory, optionally searching the base types of a RadItem-derived type.
public static ItemStateManagerFactoryBase GetStateManagerFactory(Type themeType, bool searchBaseTypes)
The theme-effective element type to look up.
searchBaseTypesbooltrue to search base types when no exact factory is registered. Use false for non-RadItem implementations of IStylableElement that have no registered factory.
Returns:ItemStateManagerFactoryBase
The exact or first matching base-type factory, or null when no factory is found and the search completes.
Exceptions: ArgumentExceptionthemeType is neither a RadItem type nor an IStylableElement type.
searchBaseTypes is true, themeType implements IStylableElement without deriving from RadItem, and no factory is registered for the type or any of its base types.
Gets the factory registered for the specified type without searching its base types.