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