Beispiel #1
0
        public override object ProvideValue(IServiceProvider serviceProvider)
        {
            var strProperty = Property as string;

            var dependencyProperty = strProperty != null?DependencyPropertyUtils.ResolveAttachedDependencyProperty(strProperty, serviceProvider) : Property as DependencyProperty;

            return(dependencyProperty != null ? new PropertyPath(dependencyProperty) : new PropertyPath(Property));
        }
Beispiel #2
0
 public override object ProvideValue(IServiceProvider serviceProvider)
 {
     return(DependencyPropertyUtils.ResolveAttachedDependencyProperty(Property, serviceProvider) ?? DependencyPropertyManager.UnresolvedDependencyProperty);
 }