96 references to Name
PresentationFramework (39)
System\Windows\Condition.cs (3)
270if (condition != null && eventArgs.Member.Name == "Binding" && eventArgs.MarkupExtension is BindingBase) 287if (eventArgs.Member.Name == "Property") 295else if (eventArgs.Member.Name == "Value")
System\Windows\DataTrigger.cs (1)
206if (trigger != null && eventArgs.Member.Name == "Binding" && eventArgs.MarkupExtension is BindingBase)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
1385RoutedEvent routedEvent = EventManager.GetRoutedEventFromName(eventProperty.Name,
System\Windows\Markup\Baml2006\Baml2006ReaderInternal.cs (1)
58property.Name.Equals("Source"))
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (3)
259xamlMember = declaringType.GetAttachableMember(xamlMember.Name); 263xamlMember = declaringType.GetMember(xamlMember.Name); 315return xamlMember.Name;
System\Windows\Markup\Baml2006\WpfKnownMemberInvoker.cs (1)
54string methodName = $"ShouldSerialize{_member.Name}";
System\Windows\Markup\Baml2006\WpfMemberInvoker.cs (1)
74string methodName = $"ShouldSerialize{_member.Name}";
System\Windows\Markup\Baml2006\WpfXamlMember.cs (2)
315_baseUnderlyingMember = wpfXType.FindBaseXamlMember(Name, IsAttachable); 320_baseUnderlyingMember = wpfXType.FindBaseXamlMember(Name, !IsAttachable);
System\Windows\Markup\Baml2006\WpfXamlType.cs (5)
190member = GetMember(member.Name); 363if (Members.TryAdd(xamlMember.Name, xamlMember)) 369return Members[xamlMember.Name]; 374if (AttachableMembers.TryAdd(xamlMember.Name, xamlMember)) 380return AttachableMembers[xamlMember.Name];
System\Windows\Markup\RestrictiveXamlXmlReader.cs (6)
168if (directive.Name == XamlLanguage.Items.Name || 169directive.Name == XamlLanguage.Key.Name || 170directive.Name == XamlLanguage.Name.Name ||
System\Windows\Setter.cs (3)
235if (setter == null || eventArgs.Member.Name != "Value") 264if (eventArgs.Member.Name == "Property") 272else if (eventArgs.Member.Name == "Value")
System\Windows\TemplateContent.cs (10)
105string prop = (this.Property == null) ? "-" : this.Property.Name; 558if (xamlReader.Member.Name == "Content") 560else if (xamlReader.Member.Name == "Columns") 565if (xamlReader.Member.Name == "Content") 567else if (xamlReader.Member.Name == "ContentTemplate") 569else if (xamlReader.Member.Name == "ContentTemplateSelector") 571else if (xamlReader.Member.Name == "ContentStringFormat") 573else if (xamlReader.Member.Name == "ContentSource") 679&& stack.CurrentFrame.Property.Name == "ContentSource") 1053return (member.IsUnknown && member.IsDirective && member.Name == "Freeze");
System\Windows\Trigger.cs (2)
296if (eventArgs.Member.Name == "Property") 304else if (eventArgs.Member.Name == "Value")
System.Xaml (57)
System\Xaml\Context\ObjectWriterContext.cs (2)
311throw new ArgumentException(SR.Format(SR.NotAmbientProperty, xamlMember.DeclaringType.Name, xamlMember.Name), nameof(properties)); 384if (ambientCtrl == null || ambientCtrl.IsAmbientPropertyAvailable(prop.Name))
System\Xaml\Context\ObjectWriterFrame.cs (1)
76string prop = (Member == null) ? "-" : Member.Name;
System\Xaml\InfosetObjects\XamlNodes.cs (1)
126str += Member.Name;
System\Xaml\InfosetObjects\XamlObjectWriter.cs (6)
300_context.CurrentInstance = inst ?? throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.GetObjectNull, parentInstance.GetType(), parentProperty.Name))); 633throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.LateConstructionDirective, property.Name))); 642throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.SettingPropertiesIsNotAllowed, property.Name))); 1367inst = Logic_CreateFromValue(ctx, converter, value, property, property.Name); 1592object convertedValue = Logic_CreateFromValue(ctx, propertyForDirective.TypeConverter, value, propertyForDirective, propertyForDirective.Name); 2479owc.ParentProperty, owc.ParentProperty.Name, token);
System\Xaml\Parser\MePullParser.cs (1)
417error = SR.Format(SR.MissingComma2, _context.CurrentMember.Name, _tokenizer.TokenText);
System\Xaml\Parser\XamlPullParser.cs (1)
528contentProperty = new XamlMember(contentProperty.Name, currentType, false);
System\Xaml\Parser\XamlScanner.cs (3)
599if (KS.Eq(attr.Name.Name, XamlLanguage.TypeArguments.Name)) 723if (KS.Eq(_attributes[i].Name.ScopedName, XamlLanguage.Uid.Name)) 797attrProperty.Name == "UnicodeString" &&
System\Xaml\Runtime\ClrObjectRuntime.cs (2)
531throw CreateException((SR.Format(SR.XmlDataNull, property.Name))); 537throw new XamlInternalException(SR.Format(SR.XmlValueNotReader, property.Name));
System\Xaml\Schema\XamlDirective.cs (4)
68int result = (Name == null) ? 0 : Name.GetHashCode(); 83return $"{{{_xamlNamespaces[0]}}}{Name}"; 87return Name;
System\Xaml\Schema\XamlMemberInvoker.cs (1)
116string methodName = KnownStrings.ShouldSerialize + _member.Name;
System\Xaml\XamlException.cs (1)
147: base(SR.Format(SR.DuplicateMemberSet, (member != null) ? member.Name : null, (type != null) ? type.Name : null))
System\Xaml\XamlMarkupExtensionWriter.cs (4)
138throw new InvalidOperationException(SR.Format(SR.XamlMarkupExtensionWriterDuplicateMember, property.Name)); 409writer.sb.Append(property.Name); 415string local = $"{property.DeclaringType.Name}.{property.Name}"; 421writer.sb.Append(property.Name);
System\Xaml\XamlMember.cs (5)
342return $"{_declaringType}.{Name}"; 994return (Name == null ? 0 : Name.GetHashCode()) ^ (int)_memberType ^ DeclaringType.GetHashCode(); 1012if (xamlMember1._memberType != xamlMember2._memberType || xamlMember1.Name != xamlMember2.Name)
System\Xaml\XamlObjectReader.cs (14)
915throw new InvalidOperationException(SR.Format(SR.AttachedPropertyOnTypeConvertedOrStringProperty, property.Name, value.ToString(), props[0].Key.ToString())); 1052namesOfAttributableProperties.Add(memberInfo.XamlNode.Member.Name); 1066if (!namesOfAttributableProperties.Contains(dependingProperty.Name)) 1085namesOfAttributableProperties.Add(memberInfo.XamlNode.Member.Name); 1105string dependentPropertyName = property.XamlNode.Member.Name; 1110propertiesWithDO.SetOrder(dependingProperty.Name, dependentPropertyName); 2135throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderXamlNamePropertyMustBeString, property.Name, property.DeclaringType)); 2249return string.CompareOrdinal(xProperty.Name, yProperty.Name); 2309return string.CompareOrdinal(xProperty.Name, yProperty.Name); 3233XamlMember baseMember = baseType.GetMember(member.Name); 3236baseMember = GetExcludedReadOnlyMember(baseType, member.Name); 3259if (member.Name == name)
System\Xaml\XamlSchemaContext.cs (1)
574string propertyName = member.Name;
System\Xaml\XamlType.cs (2)
356_reflector.Members.TryAdd(member.Name, member); 403_reflector.AttachableMembers.TryAdd(member.Name, member);
System\Xaml\XamlXmlWriter.cs (8)
194throw new ArgumentException(SR.Format(SR.MemberHasInvalidXamlName, property.Name), nameof(property)); 511throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterDuplicateMember, property.Name)); 815string local = (property.IsDirective) ? property.Name : $"{GetTypeName(xamlType)}.{property.Name}"; 829string local = property.Name; 845local = property.Name; 849local = $"{GetTypeName(property.DeclaringType)}.{property.Name}"; 1928XamlMember member = objectXamlType.GetMember(matchingProperty.Name);