28 references to DeclaringType
PresentationFramework (8)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
1376Type currentType = eventProperty.DeclaringType.UnderlyingType; 1386eventProperty.DeclaringType.UnderlyingType);
System\Windows\Markup\Baml2006\Baml2006ReaderInternal.cs (1)
57property.DeclaringType.UnderlyingType == typeof(System.Windows.ResourceDictionary) &&
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (2)
256declaringType = xamlMember.DeclaringType; 297return xamlMember.DeclaringType;
System\Windows\Markup\Baml2006\WpfXamlMember.cs (2)
142result = new WpfXamlMember(DependencyProperty, underlyingProperty, DeclaringType.SchemaContext, _useV3Rules); 313WpfXamlType wpfXType = DeclaringType as WpfXamlType;
System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
159if (member != null && (wpfKnownType = member.DeclaringType as WpfKnownType) != null)
System.Xaml (20)
System\Xaml\Context\ObjectWriterContext.cs (2)
311throw new ArgumentException(SR.Format(SR.NotAmbientProperty, xamlMember.DeclaringType.Name, xamlMember.Name), nameof(properties)); 354if (frame.XamlType != null && frame.XamlType.CanAssignTo(prop.DeclaringType))
System\Xaml\InfosetObjects\XamlObjectWriter.cs (2)
1325declaringType = property.DeclaringType; 1661declaringType = parentProperty.DeclaringType;
System\Xaml\Parser\XamlScanner.cs (1)
798attrProperty.DeclaringType.Name == "Glyphs");
System\Xaml\XamlMarkupExtensionWriter.cs (1)
415string local = $"{property.DeclaringType.Name}.{property.Name}";
System\Xaml\XamlMember.cs (5)
336return DeclaringType.GetXamlNamespaces(); 993Debug.Assert(DeclaringType != null, "XamlDirective should not call into base.GetHashCode"); 994return (Name == null ? 0 : Name.GetHashCode()) ^ (int)_memberType ^ DeclaringType.GetHashCode(); 1026return xamlMember1.DeclaringType == xamlMember2.DeclaringType &&
System\Xaml\XamlObjectReader.cs (5)
645XamlType declaringType = xamlProperty.DeclaringType; 2135throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderXamlNamePropertyMustBeString, property.Name, property.DeclaringType)); 3225if (member.DeclaringType.UnderlyingType == baseDeclaringType) 3230XamlType baseType = member.DeclaringType.BaseType; 3250baseType = baseMember.DeclaringType.BaseType;
System\Xaml\XamlXmlWriter.cs (4)
813XamlType xamlType = property.IsAttachable ? property.DeclaringType : type; 843if (property.DeclaringType == owningType) 849local = $"{GetTypeName(property.DeclaringType)}.{property.Name}"; 1242if (frame.Member.DeclaringType == XamlLanguage.XData)