Пример #1
0
        public static string GetDeclaringTypeName(this DependencyProperty dependencyProperty)
        {
#if SILVERLIGHT
            return(dependencyProperty.GetDependencyPropertyInfo()?.DeclaringType.Name ?? "Unknown");
#else
            return(dependencyProperty.OwnerType.Name);
#endif
        }
Пример #2
0
        public static Type GetPropertyType(this DependencyProperty dependencyProperty)
        {
#if SILVERLIGHT
            return(dependencyProperty.GetDependencyPropertyInfo()?.PropertyType);
#else
            return(dependencyProperty.PropertyType);
#endif
        }
Пример #3
0
 public static Type GetDeclaringType(this DependencyProperty dependencyProperty)
 {
     return(dependencyProperty.GetDependencyPropertyInfo()?.DeclaringType);
 }
Пример #4
0
 public static bool IsExpando(this DependencyProperty dependencyProperty)
 {
     return(dependencyProperty.GetDependencyPropertyInfo()?.IsExpando ?? false);
 }