Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DependencyPropertyDescriptor::FromName Method (String^, Type^, Type^, Boolean)

.NET Framework (current version)
 

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,
	bool ignorePropertyType
)

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.

ignorePropertyType
Type: System::Boolean

Specifies to ignore the property type.

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 4.0
Return to top
Show:
© 2017 Microsoft