DependencyPropertyDescriptor.FromProperty Method (PropertyDescriptor)

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

public static DependencyPropertyDescriptor FromProperty(
	PropertyDescriptor property
)

Parameters

property
Type: System.ComponentModel.PropertyDescriptor

The PropertyDescriptor to check.

Return Value

Type: System.ComponentModel.DependencyPropertyDescriptor

If the property described by property is a dependency property, returns a valid DependencyPropertyDescriptor. Otherwise, returns a nullDependencyPropertyDescriptor.

This method is the primary method used by designer applications to obtain a DependencyPropertyDescriptor on basis of checking all properties for a PropertyDescriptor.

.NET Framework
Available since 3.0
Return to top
Show: