public static INameScope GetNameScope(DependencyObject dependencyObject) { return (INameScope)dependencyObject.GetValue(NameScopeProperty); }
private bool CheckCondition(DependencyObject source) { object value = source.GetValue(this.Property); return value != null && value.Equals(ConvertToType(this.Value, this.Property.PropertyType)); }