New to Telerik UI for WPF? Start a free 30-day trial

TypeExtensions.

Definition

Namespace:Telerik.Windows.Controls.Data

Assembly:Telerik.Windows.Controls.Data.dll

Syntax:

C#
public static class TypeExtensions

Inheritance: objectTypeExtensions

Methods

Converts the type to a collection of ItemPropertyInfo objects.

C#
public static IEnumerable<ItemPropertyInfo> ToItemProperties(this Type source)
Parameters:sourceType

The type.

Returns:

IEnumerable<ItemPropertyInfo>

Converts the type to a collection of ItemPropertyDefinition objects.

C#
public static IEnumerable<ItemPropertyDefinition> ToItemPropertyDefinitions(this Type source)
Parameters:sourceType

The type.

Returns:

IEnumerable<ItemPropertyDefinition>

Takes a type, gets its ItemProperties, filters out the ones that should not be auto-generated, orders them according to their Order attribute (SL only), creates an ItemPropertyDefinition for each one and returns the resulting collection.

C#
public static IList<ItemPropertyDefinition> ToOrderedAutoGenerateFilterItemPropertyDefinitions(this Type source)
Parameters:sourceType

The source.

Returns:

IList<ItemPropertyDefinition>