This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class DependencyPropertyExtensions | |
| { | |
| public static T GetValue<T>(this DependencyObject obj, Expression<Func<T>> expression) | |
| { | |
| var dpd = DependencyHelper.GetDpdFromExpression(expression); | |
| return (T)dpd.GetValue(obj); | |
| } | |
| public static void SetValue<T>(this DependencyObject obj, Expression<Func<T>> expression, T value) | |
| { |