Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Xaml Namespace / Dependency­Property­Services Class / Dependency­Property­Services Methods / Dependency­Property­Services.​Get­Dependency­Property Method / Dependency­Property­Services.​Get­Dependency­Property Method (Type, String)

DependencyPropertyServices.GetDependencyProperty Method (Type, String)

Gets the DependencyProperty object associated with a property of a given name for a given type.

Namespace:  PostSharp.Patterns.Xaml
Assembly:  PostSharp.Patterns.Xaml (in PostSharp.Patterns.Xaml.dll) Version: 5.0.38.0 (5.0.38.0)
Syntax
C#
public static DependencyProperty GetDependencyProperty(
	Type type,
	string propertyName
)

Parameters

type
Type: System.Type
The type for which the dependency property was registered.
propertyName
Type: System.String
The name of the property.

Return Value

Type: DependencyProperty
The DependencyProperty instance.
See Also