public static string GetDeclaringTypeName(this DependencyProperty dependencyProperty) { #if SILVERLIGHT return(dependencyProperty.GetDependencyPropertyInfo()?.DeclaringType.Name ?? "Unknown"); #else return(dependencyProperty.OwnerType.Name); #endif }
public static Type GetPropertyType(this DependencyProperty dependencyProperty) { #if SILVERLIGHT return(dependencyProperty.GetDependencyPropertyInfo()?.PropertyType); #else return(dependencyProperty.PropertyType); #endif }
public static Type GetDeclaringType(this DependencyProperty dependencyProperty) { return(dependencyProperty.GetDependencyPropertyInfo()?.DeclaringType); }
public static bool IsExpando(this DependencyProperty dependencyProperty) { return(dependencyProperty.GetDependencyPropertyInfo()?.IsExpando ?? false); }