Пример #1
0
        public static DependencyProperty GetDependencyProperty(this IPropertyPathElement propertyPathElement, Type containingType)
        {
            DependencyProperty dependencyProperty;

            if (propertyPathElement.TryGetDependencyProperty(containingType, out dependencyProperty))
            {
                return(dependencyProperty);
            }

            throw new Granular.Exception("Type \"{0}\" does not contain a dependency property \"{1}\"", containingType.Name, propertyPathElement);
        }