@@ -116,7 +116,8 @@ private static IEnumerable<AttachedPropertyReference> GetAttachedProperties(Type
116116 }
117117
118118 foreach ( var property in type . Properties . Where ( t => t . PropertyType . FullName == Consts . DependencyPropertyFullName
119- || t . PropertyType . FullName == Consts . DependencyPropertyFullNameXaml ) )
119+ || t . PropertyType . FullName == Consts . DependencyPropertyFullNameWindowsXaml
120+ || t . PropertyType . FullName == Consts . DependencyPropertyFullNameMicrosoftXaml ) )
120121 {
121122 if ( IsAttachedProperty ( property , methods ) )
122123 yield return new AttachedPropertyReference ( property ) ;
@@ -138,7 +139,8 @@ private static bool IsAttachedProperty(FieldDefinition field, Dictionary<string,
138139
139140 return ! hasExistingProperty . IsTrue ( ) && ! hasExistingField . IsTrue ( ) &&
140141 // Class X has a static field of type DependencyProperty [Name]Property
141- ( field . FieldType . FullName == Consts . DependencyPropertyFullName || field . FieldType . FullName == Consts . DependencyPropertyFullNameXaml )
142+ ( field . FieldType . FullName == Consts . DependencyPropertyFullName || field . FieldType . FullName == Consts . DependencyPropertyFullNameWindowsXaml
143+ || field . FieldType . FullName == Consts . DependencyPropertyFullNameMicrosoftXaml )
142144 && field . IsPublic
143145 && field . IsStatic
144146 && field . IsInitOnly
@@ -163,7 +165,8 @@ private static bool IsAttachedProperty(PropertyDefinition property, Dictionary<s
163165
164166 return ! hasExistingProperty . IsTrue ( ) && ! hasExistingField . IsTrue ( ) &&
165167 // Class X has a static field of type DependencyProperty [Name]Property
166- ( property . PropertyType . Name == Consts . DependencyPropertyFullName || property . PropertyType . FullName == Consts . DependencyPropertyFullNameXaml )
168+ ( property . PropertyType . FullName == Consts . DependencyPropertyFullName || property . PropertyType . FullName == Consts . DependencyPropertyFullNameWindowsXaml
169+ || property . PropertyType . FullName == Consts . DependencyPropertyFullNameMicrosoftXaml )
167170
168171
169172 // Class X also has static methods with the following names: Get[Name] and Set[Name]
0 commit comments