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