DependencyPropertyDescriptor.FromName Method (String, Type, Type)

 

Returns a DependencyPropertyDescriptor for a provided property name.

Namespace:   System.ComponentModel
Assembly:  WindowsBase (in WindowsBase.dll)

public static DependencyPropertyDescriptor FromName(
	string name,
	Type ownerType,
	Type targetType
)

Parameters

name
Type: System.String

The registered name of a dependency property or an attached property.

ownerType
Type: System.Type

The Type of the object that owns the property definition.

targetType
Type: System.Type

The Type of the object you want to set the property for.

The name may refer to a dependency property or an attached property, and is the name parameter as passed to the Register or RegisterAttached call that defined the property in question. ownerType is the type of object that owns the property, again as passed to Register or RegisterAttached. targetType is the type of object you want to set the property for. For dependency properties, ownerType and targetType are the same type. For attached properties they usually differ.

.NET Framework
Available since 3.0
Return to top
Show: