49 references to Key
PresentationFramework (6)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (4)
952
if (property == XamlLanguage.
Key
)
1213
_xamlNodesWriter.WriteStartMember(XamlLanguage.
Key
);
1248
_xamlNodesWriter.WriteStartMember(XamlLanguage.
Key
);
2697
if (reader.Member == XamlLanguage.
Key
)
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
124
else if (directive == XamlLanguage.
Key
&& _dictionaryKeyPropertyName != null)
System\Windows\Markup\RestrictiveXamlXmlReader.cs (1)
168
directive.Name == XamlLanguage.
Key
.Name ||
System.Xaml (28)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (18)
792
if (property.IsDirective && property == XamlLanguage.
Key
&& !Logic_ShouldConvertKey(_context))
1073
XamlMember keyProperty = instanceType.GetAliasedProperty(XamlLanguage.
Key
);
1121
if (xamlMember == XamlLanguage.
Key
)
1369
property == XamlLanguage.
Key
&&
1430
Debug.Assert(ctx.ParentProperty == XamlLanguage.
Key
);
1503
if (ctx.LiveDepth > 2 && ctx.ParentProperty == XamlLanguage.
Key
&&
1507
XamlLanguage.
Key
, deferredMarkupExtensionContext);
1627
if (prop != XamlLanguage.
Key
&& propertyForDirective is not null)
1917
ctx.CurrentProperty = XamlLanguage.
Key
;
2052
if (parentProperty != XamlLanguage.
Key
)
2080
if (parentProperty == XamlLanguage.
Key
)
2105
if (parentProperty != XamlLanguage.
Key
)
2115
else if (parentProperty == XamlLanguage.
Key
)
2135
Debug.Assert(token.Target.Property == XamlLanguage.
Key
);
2261
if (property is not null && property.IsDirective && ctx.ParentInstance is null && property != XamlLanguage.
Key
)
2513
if (token.Target.Property == XamlLanguage.
Key
)
2572
if (token.Target.Property == XamlLanguage.
Key
)
2602
if (token.Target.Property == XamlLanguage.
Key
|| token.Target.Property == XamlLanguage.Items)
System\Xaml\Parser\NodeStreamSorter.cs (2)
430
else if (!(prop.IsDirective && prop == XamlLanguage.
Key
))
466
if (member.IsDirective && member == XamlLanguage.
Key
)
System\Xaml\Parser\XamlScanner.cs (1)
681
if (attr.Property == XamlLanguage.
Key
)
System\Xaml\Schema\TypeReflector.cs (2)
328
if (directive == XamlLanguage.
Key
)
359
if (directive == XamlLanguage.
Key
)
System\Xaml\XamlLanguage.cs (2)
289
return
Key
;
423
Key
, Initialization, Items, Members, ClassAttributes, Name, PositionalParameters, Shared, Subclass,
System\Xaml\XamlObjectReader.cs (2)
462
XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.
Key
),
478
XamlMember dkp = typeOfValue.GetAliasedProperty(XamlLanguage.
Key
);
System\Xaml\XamlType.cs (1)
685
if (directive == XamlLanguage.
Key
)
System.Xaml.Tests (15)
System\Xaml\XamlLanguageTests.cs (3)
400
XamlDirective directive = XamlLanguage.
Key
;
401
Assert.Same(directive, XamlLanguage.
Key
);
584
Assert.Equal(new XamlDirective[] { XamlLanguage.Arguments, XamlLanguage.AsyncRecords, XamlLanguage.Class, XamlLanguage.Code, XamlLanguage.ClassModifier, XamlLanguage.ConnectionId, XamlLanguage.FactoryMethod, XamlLanguage.FieldModifier, XamlLanguage.
Key
, XamlLanguage.Initialization, XamlLanguage.Items, XamlLanguage.Members, XamlLanguage.ClassAttributes, XamlLanguage.Name, XamlLanguage.PositionalParameters, XamlLanguage.Shared, XamlLanguage.Subclass, XamlLanguage. SynchronousMode, XamlLanguage.TypeArguments, XamlLanguage.Uid, XamlLanguage.UnknownContent, XamlLanguage.Base, XamlLanguage.Lang, XamlLanguage.Space }, directives);
System\Xaml\XamlNodeListTests.cs (2)
333
writer.WriteStartMember(XamlLanguage.
Key
);
345
Assert.Equal(XamlLanguage.
Key
, reader.Member);
System\Xaml\XamlSchemaContextTests.cs (1)
404
yield return new object?[] { XamlNamespace, "Key", XamlLanguage.
Key
};
System\Xaml\XamlTypeTests.cs (9)
427
yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), XamlLanguage.
Key
, null };
428
yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), XamlLanguage.
Key
, null };
429
yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), XamlLanguage.
Key
, null };
430
yield return new object?[] { new NoUnderlyingOrBaseType(), XamlLanguage.
Key
, null };
442
XamlLanguage.
Key
,
448
XamlLanguage.
Key
,
454
XamlLanguage.
Key
,
460
XamlLanguage.
Key
,
628
yield return new object[] { XamlLanguage.
Key
};