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

CustomTypeDescriptor extensions.

Definition

Namespace:Telerik.Windows.Data.Expressions

Assembly:Telerik.Windows.Data.dll

Syntax:

C#
public static class CustomTypeDescriptorExtensions

Inheritance: objectCustomTypeDescriptorExtensions

Methods

Gets the value of a property on the given custom type descriptor.

C#
public static T Property<T>(this ICustomTypeDescriptor typeDescriptor, string propertyName)
Parameters:typeDescriptorICustomTypeDescriptor

The type descriptor, which property will be accessed.

propertyNamestring

Name of the property.

Returns:

T

The value of the given property for the given custom type descriptor.

Gets the value of a property on the given component via call to TypeDescriptor.GetProperties.

C#
public static T Property<T>(object component, string propertyName)
Parameters:componentobject

The component, which property will be accessed.

propertyNamestring

Name of the property.

Returns:

T

The value of the given property for the given component.