274 references to XamlLanguage
PresentationFramework (60)
System\Windows\FrameworkTemplate.cs (3)
1045if (Names.CurrentFrame.Property == XamlLanguage.ConnectionId) 1073if (member == owner.GetAliasedProperty(XamlLanguage.Name) 1074|| XamlLanguage.Name == member)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (35)
753_xamlNodesWriter.WriteStartObject(XamlLanguage.XData); 754XamlMember xDataTextProperty = XamlLanguage.XData.GetMember("Text"); 786_xamlNodesWriter.WriteStartMember(XamlLanguage.Initialization); 945XamlMember property = BamlSchemaContext.GetXamlDirective(XamlLanguage.Xaml2006Namespace, BamlSchemaContext.GetString(stringId)); 947if (property == XamlLanguage.Key) 1046_context.CurrentFrame.Member != XamlLanguage.PositionalParameters) 1076_xamlNodesWriter.WriteStartMember(XamlLanguage.PositionalParameters); 1077_context.CurrentFrame.Member = XamlLanguage.PositionalParameters; 1090_xamlNodesWriter.WriteStartObject(XamlLanguage.Type); 1091_xamlNodesWriter.WriteStartMember(XamlLanguage.PositionalParameters); 1195_xamlNodesWriter.WriteStartMember(XamlLanguage.Base); 1208_xamlNodesWriter.WriteStartMember(XamlLanguage.Key); 1218_xamlNodesWriter.WriteStartObject(XamlLanguage.Type); 1219_xamlNodesWriter.WriteStartMember(XamlLanguage.PositionalParameters); 1243_xamlNodesWriter.WriteStartMember(XamlLanguage.Key); 1254_xamlNodesWriter.WriteStartObject(XamlLanguage.Type); 1255_xamlNodesWriter.WriteStartMember(XamlLanguage.PositionalParameters); 1277_xamlNodesWriter.WriteStartMember(XamlLanguage.ConnectionId); 1748_xamlNodesWriter.WriteStartMember(XamlLanguage.PositionalParameters); 1764_xamlNodesWriter.WriteStartObject(XamlLanguage.Static); 1765_xamlNodesWriter.WriteStartMember(XamlLanguage.PositionalParameters); 1782_xamlNodesWriter.WriteStartObject(XamlLanguage.Type); 1860_xamlNodesWriter.WriteStartObject(XamlLanguage.Type); 1861_xamlNodesWriter.WriteStartMember(XamlLanguage.PositionalParameters); 1900_xamlNodesWriter.WriteStartMember(XamlLanguage.PositionalParameters); 1917_xamlNodesWriter.WriteStartObject(XamlLanguage.Static); 1918_xamlNodesWriter.WriteStartMember(XamlLanguage.PositionalParameters); 1939_xamlNodesWriter.WriteStartObject(XamlLanguage.Type); 1940_xamlNodesWriter.WriteStartMember(XamlLanguage.PositionalParameters); 2269_xamlNodesWriter.WriteStartMember(XamlLanguage.ConnectionId); 2374_context.CurrentFrame.Member = parentProperty = XamlLanguage.Items; 2378_context.CurrentFrame.Member = parentProperty = XamlLanguage.Initialization; 2442else if (elementType == XamlLanguage.Array) 2496_context.CurrentFrame.Member = XamlLanguage.Items; 2699if (reader.Member == XamlLanguage.Key)
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (2)
660= new Lazy<XamlMember>(() => XamlLanguage.Static.GetMember("MemberType")); 663= new Lazy<XamlMember>(() => XamlLanguage.Static.GetMember("Type"));
System\Windows\Markup\Baml2006\WpfKnownType.cs (4)
120if (directive == XamlLanguage.Name) 124else if (directive == XamlLanguage.Key && _dictionaryKeyPropertyName != null) 128else if (directive == XamlLanguage.Lang) 132else if (directive == XamlLanguage.Uid)
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (2)
351= new Lazy<XamlMember>(() => XamlLanguage.Static.GetMember("MemberType")); 354= new Lazy<XamlMember>(() => XamlLanguage.Static.GetMember("Type"));
System\Windows\Markup\RestrictiveXamlXmlReader.cs (5)
22private static readonly HashSet<string> AllXamlNamespaces = new HashSet<string>(XamlLanguage.XamlNamespaces); 167if (directive.Name == XamlLanguage.Items.Name || 168directive.Name == XamlLanguage.Key.Name || 169directive.Name == XamlLanguage.Name.Name || 170Member == XamlLanguage.PositionalParameters)
System\Windows\Markup\WpfXamlLoader.cs (5)
261xamlReader.Member != XamlLanguage.Space) 335currentProperty != XamlLanguage.Space) 359if (stack.CurrentFrame.Property.IsDirective && stack.CurrentFrame.Property == XamlLanguage.Shared) 386else if (stack.CurrentFrame.Property == XmlSpace.Value || stack.CurrentFrame.Property == XamlLanguage.Space) 400stack.CurrentFrame.Property == XamlLanguage.ConnectionId &&
System\Windows\Markup\XamlReader.cs (1)
594XamlMember synchronousRecordProperty = _textReader.SchemaContext.GetXamlDirective(XamlLanguage.Xaml2006Namespace, "AsyncRecords");
System\Windows\ResourceDictionary.cs (1)
1169(reader.Member != XamlLanguage.PositionalParameters && reader.Member != xamlMemberResourceKey))
System\Windows\TemplateContent.cs (2)
815if (xamlReader.Member == parentType.GetAliasedProperty(XamlLanguage.Name)) 985if (!insideTemplate && frames.CurrentFrame.Property == XamlLanguage.ConnectionId)
System.Xaml (214)
System\Xaml\Context\ObjectWriterContext.cs (1)
291if (frame.Member == XamlLanguage.Initialization)
System\Xaml\Context\ServiceProviderContext.cs (1)
301if (_xamlContext.ParentProperty == XamlLanguage.Initialization)
System\Xaml\Context\XamlParserContext.cs (3)
259get { return _stack.CurrentFrame.Member == XamlLanguage.Items; } 264get { return _stack.CurrentFrame.Member == XamlLanguage.Initialization; } 269get { return _stack.CurrentFrame.Member == XamlLanguage.UnknownContent; }
System\Xaml\InfosetObjects\XamlObjectWriter.cs (63)
106_context.AddNamespacePrefix(KnownStrings.XmlPrefix, XamlLanguage.Xml1998Namespace); 235if (ctx.ParentInstance is null && ctx.ParentProperty != XamlLanguage.Arguments) 576else if (property == XamlLanguage.UnknownContent) 621if (property == XamlLanguage.PositionalParameters) 653if (property.IsDirective && property != XamlLanguage.Items && property != XamlLanguage.PositionalParameters) 711if (property == XamlLanguage.Arguments) 715else if (property == XamlLanguage.Initialization) 719else if (property == XamlLanguage.Items) 723else if (property == XamlLanguage.PositionalParameters) 727else if (property == XamlLanguage.Class) 771if (valueXamlType == XamlLanguage.String || !valueXamlType.CanAssignTo(property.Type)) 773if (property.IsDirective && property == XamlLanguage.Key && !Logic_ShouldConvertKey(_context)) 854if (parentProperty == XamlLanguage.PositionalParameters) 856_context.CurrentType = XamlLanguage.PositionalParameterDescriptor; 1045XamlMember keyProperty = instanceType.GetAliasedProperty(XamlLanguage.Key); 1068return xamlMember == XamlLanguage.Arguments 1069|| xamlMember == XamlLanguage.Base 1070|| xamlMember == XamlLanguage.FactoryMethod 1071|| xamlMember == XamlLanguage.Initialization 1072|| xamlMember == XamlLanguage.PositionalParameters 1073|| xamlMember == XamlLanguage.TypeArguments; 1080return xamlMember == XamlLanguage.Arguments 1081|| xamlMember == XamlLanguage.FactoryMethod 1082|| xamlMember == XamlLanguage.PositionalParameters 1083|| xamlMember == XamlLanguage.TypeArguments; 1091if (xamlMember == XamlLanguage.Key) 1095if (xamlMember == XamlLanguage.Uid) 1097if (xamlType.GetAliasedProperty(XamlLanguage.Uid) is null) 1129args[i] = Logic_PushAndPopAProvideValueStackFrame(ctx, XamlLanguage.PositionalParameters, me, false); 1136!ctx.CurrentPreconstructionPropertyValues.TryGetValue(XamlLanguage.FactoryMethod, out factoryMethodName)) 1334property == XamlLanguage.Key && 1392Debug.Assert(ctx.ParentProperty == XamlLanguage.Key); 1461if (ctx.LiveDepth > 2 && ctx.ParentProperty == XamlLanguage.Key && 1465XamlLanguage.Key, deferredMarkupExtensionContext); 1483if (property != XamlLanguage.Space) 1586if (prop != XamlLanguage.Key && propertyForDirective is not null) 1594if (prop == XamlLanguage.Name) 1607else if (prop == XamlLanguage.ConnectionId) 1611else if (prop == XamlLanguage.Base) 1705else if (ctx.ParentProperty == XamlLanguage.Items) 1737bool inDictionary = ((ctx.ParentProperty == XamlLanguage.Items) && ctx.ParentType.IsDictionary); 1811if (excludeObjectType && itemType == XamlLanguage.Object) 1866ctx.CurrentProperty = XamlLanguage.Key; 1955if (value is NameFixupToken && parentProperty != XamlLanguage.Items) 1962if (parentProperty == XamlLanguage.PositionalParameters) 1964ctx.CurrentType = XamlLanguage.PositionalParameterDescriptor; 1993if (parentProperty != XamlLanguage.Key) 2015if (parentProperty == parentType.GetAliasedProperty(XamlLanguage.Name)) 2020if (parentProperty == XamlLanguage.Key) 2034if (parentProperty == XamlLanguage.Base) 2045if (parentProperty != XamlLanguage.Key) 2054else if (parentProperty == XamlLanguage.Key) 2074Debug.Assert(token.Target.Property == XamlLanguage.Key); 2168throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.DirectiveNotAtRoot, XamlLanguage.Class))); 2173throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.DirectiveMustBeString, XamlLanguage.Class))); 2198if (property is not null && property.IsDirective && ctx.ParentInstance is null && property != XamlLanguage.Key) 2440if (token.Target.Property == XamlLanguage.Key) 2444else if (token.Target.Property == XamlLanguage.Items) 2497if (token.Target.Property == XamlLanguage.Key) 2501else if (token.Target.Property == XamlLanguage.Items) 2528if (token.Target.Property == XamlLanguage.Key || token.Target.Property == XamlLanguage.Items)
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
222_context.AddNamespacePrefix(KnownStrings.XmlPrefix, XamlLanguage.Xml1998Namespace);
System\Xaml\Parser\MePullParser.cs (2)
485_context.CurrentMember = XamlLanguage.PositionalParameters; 487XamlNode startProperty = new XamlNode(XamlNodeType.StartMember, XamlLanguage.PositionalParameters);
System\Xaml\Parser\NodeStreamSorter.cs (11)
227EnqueueOneXmlDirectiveProperty(XamlLanguage.Space, KnownStrings.Preserve); 231EnqueueOneXmlDirectiveProperty(XamlLanguage.Lang, _settings.XmlLang); 235EnqueueOneXmlDirectiveProperty(XamlLanguage.Base, _settings.BaseUri.ToString()); 409else if (!(prop.IsDirective && prop == XamlLanguage.Key)) 423if ((member == XamlLanguage.Initialization) 424|| (member == XamlLanguage.PositionalParameters) 425|| (member == XamlLanguage.FactoryMethod) 426|| (member == XamlLanguage.Arguments) 427|| (member == XamlLanguage.TypeArguments) 428|| (member == XamlLanguage.Base)) 441if (member.IsDirective && member == XamlLanguage.Key)
System\Xaml\Parser\XamlAttribute.cs (6)
63if(Property == XamlLanguage.Space) 67else if ((Property == XamlLanguage.FactoryMethod) 68|| (Property == XamlLanguage.Arguments) 69|| (Property == XamlLanguage.TypeArguments) 70|| (Property == XamlLanguage.Base) 86else if (Property == tagType.GetAliasedProperty(XamlLanguage.Name))
System\Xaml\Parser\XamlPullParser.cs (14)
577yield return Logic_StartObject(XamlLanguage.XData, null); 578XamlMember xDataTextProperty = XamlLanguage.XData.GetMember("Text"); 704yield return Logic_StartObject(XamlLanguage.XData, null); 705XamlMember xDataTextProperty = XamlLanguage.XData.GetMember("Text"); 856property = XamlLanguage.UnknownContent; 866var initProperty = XamlLanguage.Initialization; 924_context.CurrentMember = XamlLanguage.Items; 927var startProperty = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items); 982? XamlLanguage.String 1049else if (valueElementType == XamlLanguage.Array) 1087XamlType collectionType = _context.CurrentMember == XamlLanguage.Items ? _context.CurrentType : _context.CurrentMember.Type; 1135if (prop.Type == XamlLanguage.String) 1174if (allowedType == XamlLanguage.String || allowedType == XamlLanguage.Object)
System\Xaml\Parser\XamlScanner.cs (5)
596if (KS.Eq(attr.Name.Name, XamlLanguage.TypeArguments.Name)) 667if (attr.Property == XamlLanguage.Key) 720if (KS.Eq(_attributes[i].Name.ScopedName, XamlLanguage.Uid.Name)) 855XamlLanguage.XamlNamespaces.Contains(xmlns) && 856KS.Eq(XamlLanguage.XData.Name, name);
System\Xaml\Schema\BuiltInValueConverter.cs (1)
66=> s_Object ??= new XamlValueConverter<TypeConverter>(null, XamlLanguage.Object);
System\Xaml\Schema\MemberReflector.cs (1)
96s_UnknownReflector.Type = XamlLanguage.Object;
System\Xaml\Schema\TypeReflector.cs (9)
78_baseType.Value = XamlLanguage.Object; 316if (directive == XamlLanguage.Key) 321else if (directive == XamlLanguage.Name) 326else if (directive == XamlLanguage.Uid) 331else if (directive == XamlLanguage.Lang) 346if (directive == XamlLanguage.Key) 350else if (directive == XamlLanguage.Name) 354else if (directive == XamlLanguage.Uid) 358else if (directive == XamlLanguage.Lang)
System\Xaml\Schema\XamlNamespace.cs (1)
179type = XamlLanguage.LookupClrNamespaceType(_assemblyNamespaces[0], typeName);
System\Xaml\XamlLanguage.cs (2)
378if (nsPair.ClrNamespace == SWMNamespace && nsPair.Assembly == typeof(XamlLanguage).Assembly) 427{ typeof(XamlLanguage).Assembly, typeof(MarkupExtension).Assembly };
System\Xaml\XamlMarkupExtensionWriter.cs (3)
360if (member.XamlProperty == XamlLanguage.PositionalParameters) 448if (property == XamlLanguage.PositionalParameters) 545if (node.NodeType != XamlNodeType.StartMember || node.XamlProperty != XamlLanguage.PositionalParameters)
System\Xaml\XamlMember.cs (4)
231return XamlLanguage.Object; 233_reflector.TargetType = LookupTargetType() ?? XamlLanguage.Object; 246_reflector.Type = LookupType() ?? XamlLanguage.Object; 657return XamlLanguage.Object;
System\Xaml\XamlObjectReader.cs (41)
290if (XamlNode.Member == XamlLanguage.PositionalParameters) 336&& (member.PreferredXamlNamespace != XamlLanguage.Xml1998Namespace); 416MemberMarkupInfo itemsInfo = new MemberMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items) }; 461XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Key), 477XamlMember dkp = typeOfValue.GetAliasedProperty(XamlLanguage.Key); 613XamlNode = new XamlNode(XamlNodeType.StartObject, XamlLanguage.XData), 618XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.XData.GetMember("Text")), 643if((xamlProperty == declaringType.GetAliasedProperty(XamlLanguage.Lang)) && (propertyValue is string)) 647XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Lang), 676if (objectInfo.Properties[0].XamlNode.Member == XamlLanguage.Items) 727var itemsInfo = new MemberMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items) }; 1165context.FindPrefix(XamlLanguage.TypeArguments.PreferredXamlNamespace); 1250XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.FactoryMethod), 1304XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items) 1309XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Arguments) 1329XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.PositionalParameters) 1448valueXamlType.GetAliasedProperty(XamlLanguage.Name) is not null || 1490if (property == xamlType.GetAliasedProperty(XamlLanguage.Name)) 1597return XamlLanguage.String.CanAssignTo(property.Type); 1752XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Name), 1804var items = new MemberMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items) }; 1812XamlNode = new XamlNode(XamlNodeType.StartObject, XamlLanguage.Array), 1819XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Array.GetMember("Type")), //x:ArrayExtension.Type 1845XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Array.ContentProperty), 1894return new ObjectMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartObject, XamlLanguage.Null) }; 2067XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Initialization), 2093objectInfo.XamlNode.XamlType == XamlLanguage.Null; 2202bool xIsContentOrItemsProperty = xInfo.IsContent || (xProperty == XamlLanguage.Items); 2203bool yIsContentOrItemsProperty = yInfo.IsContent || (yProperty == XamlLanguage.Items); 2217bool xIsInitialization = (xProperty == XamlLanguage.Initialization); 2218bool yIsInitialization = (yProperty == XamlLanguage.Initialization); 2232bool xIsArgumentsDirective = (xProperty == XamlLanguage.Arguments); 2233bool yIsArgumentsDirective = (yProperty == XamlLanguage.Arguments); 2273bool xIsPositionalParameterProperty = (xProperty == XamlLanguage.PositionalParameters); 2274bool yIsPositionalParameterProperty = (yProperty == XamlLanguage.PositionalParameters); 2335XamlNode = new XamlNode(XamlNodeType.StartObject, XamlLanguage.Reference); 2336nameProperty = new MemberMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.PositionalParameters) }; 2505if (ns != XamlLanguage.Xaml2006Namespace) 2594if (basePrefix != XamlLanguage.PreferredPrefix && !namespaceToPrefixMap.ContainsValue(string.Empty)) 2729XamlMember runtimeNameProperty = type.GetAliasedProperty(XamlLanguage.Name); 3226while (baseType is not null && baseType != XamlLanguage.Object)
System\Xaml\XamlSchemaContext.cs (11)
146if (XamlLanguage.XamlNamespaces.Contains(xmlns)) 148result = XamlLanguage.PreferredPrefix; 185if (KS.Eq(result, XamlLanguage.PreferredPrefix)) 251if (XamlLanguage.XamlNamespaces.Contains(xamlNamespace)) 253return XamlLanguage.LookupXamlDirective(name); 255else if (XamlLanguage.XmlNamespaces.Contains(xamlNamespace)) 257return XamlLanguage.LookupXmlDirective(name); 316result = XamlLanguage.LookupXamlType(xamlNamespace, name); 524return GetXamlType(type, XamlLanguage.TypeAlias(type)); 896if (XamlLanguage.AllTypes.Contains(type)) 902combinedList.AddRange(XamlLanguage.XamlNamespaces);
System\Xaml\XamlType.cs (13)
199_reflector.KeyType = LookupKeyType() ?? XamlLanguage.Object; 216_reflector.ItemType = LookupItemType() ?? XamlLanguage.Object; 323_reflector.MarkupExtensionReturnType = LookupMarkupExtensionReturnType() ?? XamlLanguage.Object; 644if (directive == XamlLanguage.Key) 649else if (directive == XamlLanguage.Name) 653else if (directive == XamlLanguage.Uid) 657else if (directive == XamlLanguage.Lang) 708return XamlLanguage.Object; 864return CanAssignTo(XamlLanguage.MarkupExtension); 869return CanAssignTo(XamlLanguage.INameScope); 1121return CanAssignTo(XamlLanguage.IXmlSerializable); 1161if (result is not null && result.TargetType != XamlLanguage.Object) 1568if (UnderlyingType == XamlLanguage.Type.UnderlyingType)
System\Xaml\XamlXmlWriter.cs (21)
108prefixAssignmentHistory = new Dictionary<string, string>() { {"xml", XamlLanguage.Xml1998Namespace} }; 209WriteStartObject(XamlLanguage.Null); 282(xamlMember == XamlLanguage.Items || 283xamlMember == XamlLanguage.Initialization || 284xamlMember == XamlLanguage.PositionalParameters || 285xamlMember == XamlLanguage.UnknownContent); 347&& enumerator.Current.Member != XamlLanguage.Items) 541WriteStartMember(XamlLanguage.TypeArguments); 710if (ns == XamlLanguage.Xml1998Namespace) 722ns = XamlLanguage.Xml1998Namespace; 1016if ((property == XamlLanguage.Items && parentType is not null && parentType.IsWhitespaceSignificantCollection) || 1017(property == XamlLanguage.UnknownContent)) 1048if (property == XamlLanguage.PositionalParameters) 1120if ((property == XamlLanguage.Items && parentType is not null && parentType.IsWhitespaceSignificantCollection) || 1121(property == XamlLanguage.UnknownContent)) 1157if (property == XamlLanguage.PositionalParameters) 1240if (frame.Member.DeclaringType == XamlLanguage.XData) 1683if (XamlLanguage.String.CanAssignTo(property.Type)) 1729if (XamlLanguage.String.CanAssignTo(property.Type) && !string.IsNullOrEmpty(value)) 2154Writer.WriteStartObject(XamlLanguage.MarkupExtension); 2155Writer.WriteStartMember(XamlLanguage.PositionalParameters);