138 references to Name
PresentationFramework (39)
System\Windows\Condition.cs (3)
265if (condition != null && eventArgs.Member.Name == "Binding" && eventArgs.MarkupExtension is BindingBase) 282if (eventArgs.Member.Name == "Property") 290else if (eventArgs.Member.Name == "Value")
System\Windows\DataTrigger.cs (1)
204if (trigger != null && eventArgs.Member.Name == "Binding" && eventArgs.MarkupExtension is BindingBase)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
1386RoutedEvent routedEvent = EventManager.GetRoutedEventFromName(eventProperty.Name,
System\Windows\Markup\Baml2006\Baml2006ReaderInternal.cs (1)
50property.Name.Equals("Source"))
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (3)
246xamlMember = declaringType.GetAttachableMember(xamlMember.Name); 250xamlMember = declaringType.GetMember(xamlMember.Name); 302return xamlMember.Name;
System\Windows\Markup\Baml2006\WpfKnownMemberInvoker.cs (1)
51string methodName = $"ShouldSerialize{_member.Name}";
System\Windows\Markup\Baml2006\WpfMemberInvoker.cs (1)
71string methodName = $"ShouldSerialize{_member.Name}";
System\Windows\Markup\Baml2006\WpfXamlMember.cs (2)
312_baseUnderlyingMember = wpfXType.FindBaseXamlMember(Name, IsAttachable); 317_baseUnderlyingMember = wpfXType.FindBaseXamlMember(Name, !IsAttachable);
System\Windows\Markup\Baml2006\WpfXamlType.cs (5)
187member = GetMember(member.Name); 360if (Members.TryAdd(xamlMember.Name, xamlMember)) 366return Members[xamlMember.Name]; 371if (AttachableMembers.TryAdd(xamlMember.Name, xamlMember)) 377return AttachableMembers[xamlMember.Name];
System\Windows\Markup\RestrictiveXamlXmlReader.cs (6)
167if (directive.Name == XamlLanguage.Items.Name || 168directive.Name == XamlLanguage.Key.Name || 169directive.Name == XamlLanguage.Name.Name ||
System\Windows\Setter.cs (3)
225if (setter == null || eventArgs.Member.Name != "Value") 254if (eventArgs.Member.Name == "Property") 262else if (eventArgs.Member.Name == "Value")
System\Windows\TemplateContent.cs (10)
102string prop = (this.Property == null) ? "-" : this.Property.Name; 557if (xamlReader.Member.Name == "Content") 559else if (xamlReader.Member.Name == "Columns") 564if (xamlReader.Member.Name == "Content") 566else if (xamlReader.Member.Name == "ContentTemplate") 568else if (xamlReader.Member.Name == "ContentTemplateSelector") 570else if (xamlReader.Member.Name == "ContentStringFormat") 572else if (xamlReader.Member.Name == "ContentSource") 678&& stack.CurrentFrame.Property.Name == "ContentSource") 1052return (member.IsUnknown && member.IsDirective && member.Name == "Freeze");
System\Windows\Trigger.cs (2)
290if (eventArgs.Member.Name == "Property") 298else if (eventArgs.Member.Name == "Value")
System.Xaml (57)
System\Xaml\Context\ObjectWriterContext.cs (2)
319throw new ArgumentException(SR.Format(SR.NotAmbientProperty, xamlMember.DeclaringType.Name, xamlMember.Name), nameof(properties)); 390if (inst is not XAML3.IQueryAmbient ambientCtrl || ambientCtrl.IsAmbientPropertyAvailable(prop.Name))
System\Xaml\Context\ObjectWriterFrame.cs (1)
73string prop = (Member is null) ? "-" : Member.Name;
System\Xaml\InfosetObjects\XamlNodes.cs (1)
124str += Member.Name;
System\Xaml\InfosetObjects\XamlObjectWriter.cs (6)
305_context.CurrentInstance = inst ?? throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.GetObjectNull, parentInstance.GetType(), parentProperty.Name))); 646throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.LateConstructionDirective, property.Name))); 655throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.SettingPropertiesIsNotAllowed, property.Name))); 1402inst = Logic_CreateFromValue(ctx, converter, value, property, property.Name); 1631object convertedValue = Logic_CreateFromValue(ctx, propertyForDirective.TypeConverter, value, propertyForDirective, propertyForDirective.Name); 2551owc.ParentProperty, owc.ParentProperty.Name, token);
System\Xaml\Parser\MePullParser.cs (1)
436error = SR.Format(SR.MissingComma2, _context.CurrentMember.Name, _tokenizer.TokenText);
System\Xaml\Parser\XamlPullParser.cs (1)
559contentProperty = new XamlMember(contentProperty.Name, currentType, false);
System\Xaml\Parser\XamlScanner.cs (3)
608if (KS.Eq(attr.Name.Name, XamlLanguage.TypeArguments.Name)) 736if (KS.Eq(_attributes[i].Name.ScopedName, XamlLanguage.Uid.Name)) 812attrProperty.Name == "UnicodeString" &&
System\Xaml\Runtime\ClrObjectRuntime.cs (2)
553throw CreateException((SR.Format(SR.XmlDataNull, property.Name))); 558throw new XamlInternalException(SR.Format(SR.XmlValueNotReader, property.Name));
System\Xaml\Schema\XamlDirective.cs (4)
66int result = (Name is null) ? 0 : Name.GetHashCode(); 81return $"{{{_xamlNamespaces[0]}}}{Name}"; 85return 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 is not null) ? member.Name : null, (type is not null) ? type.Name : null))
System\Xaml\XamlMarkupExtensionWriter.cs (4)
137throw new InvalidOperationException(SR.Format(SR.XamlMarkupExtensionWriterDuplicateMember, property.Name)); 413writer.sb.Append(property.Name); 419string local = $"{property.DeclaringType.Name}.{property.Name}"; 425writer.sb.Append(property.Name);
System\Xaml\XamlMember.cs (5)
351return $"{_declaringType}.{Name}"; 1046return (Name is null ? 0 : Name.GetHashCode()) ^ (int)_memberType ^ DeclaringType.GetHashCode(); 1066if (xamlMember1._memberType != xamlMember2._memberType || xamlMember1.Name != xamlMember2.Name)
System\Xaml\XamlObjectReader.cs (14)
909throw new InvalidOperationException(SR.Format(SR.AttachedPropertyOnTypeConvertedOrStringProperty, property.Name, value.ToString(), props[0].Key.ToString())); 1046namesOfAttributableProperties.Add(memberInfo.XamlNode.Member.Name); 1060if (!namesOfAttributableProperties.Contains(dependingProperty.Name)) 1081namesOfAttributableProperties.Add(memberInfo.XamlNode.Member.Name); 1103string dependentPropertyName = property.XamlNode.Member.Name; 1108propertiesWithDO.SetOrder(dependingProperty.Name, dependentPropertyName); 2144throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderXamlNamePropertyMustBeString, property.Name, property.DeclaringType)); 2258return string.CompareOrdinal(xProperty.Name, yProperty.Name); 2318return string.CompareOrdinal(xProperty.Name, yProperty.Name); 3258XamlMember baseMember = baseType.GetMember(member.Name); 3261baseMember = GetExcludedReadOnlyMember(baseType, member.Name); 3288if (member.Name == name)
System\Xaml\XamlSchemaContext.cs (1)
593string propertyName = member.Name;
System\Xaml\XamlType.cs (2)
373_reflector.Members.TryAdd(member.Name, member); 422_reflector.AttachableMembers.TryAdd(member.Name, member);
System\Xaml\XamlXmlWriter.cs (8)
193throw new ArgumentException(SR.Format(SR.MemberHasInvalidXamlName, property.Name), nameof(property)); 517throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterDuplicateMember, property.Name)); 828string local = (property.IsDirective) ? property.Name : $"{GetTypeName(xamlType)}.{property.Name}"; 842string local = property.Name; 858local = property.Name; 862local = $"{GetTypeName(property.DeclaringType)}.{property.Name}"; 1965XamlMember member = objectXamlType.GetMember(matchingProperty.Name);
System.Xaml.Tests (42)
System\Xaml\XamlDirectiveTests.cs (2)
32Assert.Equal(name, directive.Name); 67Assert.Equal(name, directive.Name);
System\Xaml\XamlLanguageTests.cs (24)
272Assert.Equal("Arguments", directive.Name); 285Assert.Equal("AsyncRecords", directive.Name); 298Assert.Equal("Class", directive.Name); 311Assert.Equal("ClassModifier", directive.Name); 324Assert.Equal("Code", directive.Name); 337Assert.Equal("ConnectionId", directive.Name); 350Assert.Equal("FactoryMethod", directive.Name); 363Assert.Equal("FieldModifier", directive.Name); 376Assert.Equal("_Items", directive.Name); 389Assert.Equal("_Initialization", directive.Name); 402Assert.Equal("Key", directive.Name); 415Assert.Equal("Members", directive.Name); 428Assert.Equal("ClassAttributes", directive.Name); 441Assert.Equal("Name", directive.Name); 454Assert.Equal("_PositionalParameters", directive.Name); 467Assert.Equal("Shared", directive.Name); 480Assert.Equal("Subclass", directive.Name); 493Assert.Equal("SynchronousMode", directive.Name); 506Assert.Equal("TypeArguments", directive.Name); 519Assert.Equal("Uid", directive.Name); 532Assert.Equal("_UnknownContent", directive.Name); 545Assert.Equal("base", directive.Name); 558Assert.Equal("lang", directive.Name); 571Assert.Equal("space", directive.Name);
System\Xaml\XamlMemberTests.cs (9)
25Assert.Equal(name, member.Name); 56Assert.Equal(propertyInfo.Name, member.Name); 78Assert.Equal(propertyInfo.Name, member.Name); 112Assert.Equal(eventInfo.Name, member.Name); 134Assert.Equal(eventInfo.Name, member.Name); 171Assert.Equal(attachablePropertyName, member.Name); 194Assert.Equal(attachablePropertyName, member.Name); 258Assert.Equal(attachablePropertyName, member.Name); 279Assert.Equal(attachablePropertyName, member.Name);
System\Xaml\XamlTypeTests.cs (7)
1241Assert.Equal(expectedGetAllMembers.OrderBy(m => m.Name), type.GetAllMembers().OrderBy(m => m.Name)); 1242Assert.Equal(expectedLookup?.OrderBy(m => m.Name), type.LookupAllMembersEntry()?.OrderBy(m => m.Name)); 5151XamlMember[] sortedActual = actual.OrderBy(m => m.Name).ToArray(); 5168Assert.Equal(expected.Name, actual.Name);