DependencyPropertyServices.GetDependencyProperty<T> Method (Expression<Func<T>>) |
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<T>( Expression<Func<T>> expression )
Parameters
- expression
- Type: System.Linq.Expressions.Expression<Func<T>>
The lambda expression in the format () => new ClassName().PropertyName.
Type Parameters
- T
Return Value
Type: DependencyPropertyThe DependencyProperty instance.