28 references to DeclaringType
PresentationFramework (8)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
1371Type currentType = eventProperty.DeclaringType.UnderlyingType; 1381eventProperty.DeclaringType.UnderlyingType);
System\Windows\Markup\Baml2006\Baml2006ReaderInternal.cs (1)
49property.DeclaringType.UnderlyingType == typeof(System.Windows.ResourceDictionary) &&
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (2)
243declaringType = xamlMember.DeclaringType; 284return xamlMember.DeclaringType;
System\Windows\Markup\Baml2006\WpfXamlMember.cs (2)
139result = new WpfXamlMember(DependencyProperty, underlyingProperty, DeclaringType.SchemaContext, _useV3Rules); 310WpfXamlType wpfXType = DeclaringType as WpfXamlType;
System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
156if (member != null && (wpfKnownType = member.DeclaringType as WpfKnownType) != null)
System.Xaml (20)
System\Xaml\Context\ObjectWriterContext.cs (2)
308throw new ArgumentException(SR.Format(SR.NotAmbientProperty, xamlMember.DeclaringType.Name, xamlMember.Name), nameof(properties)); 351if (frame.XamlType is not null && frame.XamlType.CanAssignTo(prop.DeclaringType))
System\Xaml\InfosetObjects\XamlObjectWriter.cs (2)
1323declaringType = property.DeclaringType; 1659declaringType = parentProperty.DeclaringType;
System\Xaml\Parser\XamlScanner.cs (1)
795attrProperty.DeclaringType.Name == "Glyphs");
System\Xaml\XamlMarkupExtensionWriter.cs (1)
414string local = $"{property.DeclaringType.Name}.{property.Name}";
System\Xaml\XamlMember.cs (5)
333return DeclaringType.GetXamlNamespaces(); 990Debug.Assert(DeclaringType is not null, "XamlDirective should not call into base.GetHashCode"); 991return (Name is null ? 0 : Name.GetHashCode()) ^ (int)_memberType ^ DeclaringType.GetHashCode(); 1023return xamlMember1.DeclaringType == xamlMember2.DeclaringType &&
System\Xaml\XamlObjectReader.cs (5)
640XamlType declaringType = xamlProperty.DeclaringType; 2130throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderXamlNamePropertyMustBeString, property.Name, property.DeclaringType)); 3220if (member.DeclaringType.UnderlyingType == baseDeclaringType) 3225XamlType baseType = member.DeclaringType.BaseType; 3245baseType = baseMember.DeclaringType.BaseType;
System\Xaml\XamlXmlWriter.cs (4)
811XamlType xamlType = property.IsAttachable ? property.DeclaringType : type; 841if (property.DeclaringType == owningType) 847local = $"{GetTypeName(property.DeclaringType)}.{property.Name}"; 1240if (frame.Member.DeclaringType == XamlLanguage.XData)