DependencyPropertyServices.GetDependencyProperty<TClass, TProperty> Method (Expression<Func<TClass, TProperty>>) |
Namespace: PostSharp.Patterns.Xaml
Assembly: PostSharp.Patterns.Xaml (in PostSharp.Patterns.Xaml.dll) Version: 2023.0.3.0 (2023.0.3.0)
public static DependencyProperty GetDependencyProperty<TClass, TProperty>( Expression<Func<TClass, TProperty>> expression )
Parameters
- expression
- Type: System.Linq.Expressions.Expression<Func<TClass, TProperty>>
The lambda expression in the format (ClassName x) => x.PropertyName.
Type Parameters
- TClass
- TProperty
Return Value
Type: DependencyPropertyThe DependencyProperty instance.