274 references to XamlLanguage
PresentationFramework (60)
System\Windows\FrameworkTemplate.cs (3)
1054if (Names.CurrentFrame.Property == XamlLanguage.ConnectionId) 1082if (member == owner.GetAliasedProperty(XamlLanguage.Name) 1083|| XamlLanguage.Name == member)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (35)
758_xamlNodesWriter.WriteStartObject(XamlLanguage.XData); 759XamlMember xDataTextProperty = XamlLanguage.XData.GetMember("Text"); 791_xamlNodesWriter.WriteStartMember(XamlLanguage.Initialization); 950XamlMember property = BamlSchemaContext.GetXamlDirective(XamlLanguage.Xaml2006Namespace, BamlSchemaContext.GetString(stringId)); 952if (property == XamlLanguage.Key) 1051_context.CurrentFrame.Member != XamlLanguage.PositionalParameters) 1081_xamlNodesWriter.WriteStartMember(XamlLanguage.PositionalParameters); 1082_context.CurrentFrame.Member = XamlLanguage.PositionalParameters; 1095_xamlNodesWriter.WriteStartObject(XamlLanguage.Type); 1096_xamlNodesWriter.WriteStartMember(XamlLanguage.PositionalParameters); 1200_xamlNodesWriter.WriteStartMember(XamlLanguage.Base); 1213_xamlNodesWriter.WriteStartMember(XamlLanguage.Key); 1223_xamlNodesWriter.WriteStartObject(XamlLanguage.Type); 1224_xamlNodesWriter.WriteStartMember(XamlLanguage.PositionalParameters); 1248_xamlNodesWriter.WriteStartMember(XamlLanguage.Key); 1259_xamlNodesWriter.WriteStartObject(XamlLanguage.Type); 1260_xamlNodesWriter.WriteStartMember(XamlLanguage.PositionalParameters); 1282_xamlNodesWriter.WriteStartMember(XamlLanguage.ConnectionId); 1753_xamlNodesWriter.WriteStartMember(XamlLanguage.PositionalParameters); 1769_xamlNodesWriter.WriteStartObject(XamlLanguage.Static); 1770_xamlNodesWriter.WriteStartMember(XamlLanguage.PositionalParameters); 1787_xamlNodesWriter.WriteStartObject(XamlLanguage.Type); 1865_xamlNodesWriter.WriteStartObject(XamlLanguage.Type); 1866_xamlNodesWriter.WriteStartMember(XamlLanguage.PositionalParameters); 1905_xamlNodesWriter.WriteStartMember(XamlLanguage.PositionalParameters); 1922_xamlNodesWriter.WriteStartObject(XamlLanguage.Static); 1923_xamlNodesWriter.WriteStartMember(XamlLanguage.PositionalParameters); 1944_xamlNodesWriter.WriteStartObject(XamlLanguage.Type); 1945_xamlNodesWriter.WriteStartMember(XamlLanguage.PositionalParameters); 2274_xamlNodesWriter.WriteStartMember(XamlLanguage.ConnectionId); 2379_context.CurrentFrame.Member = parentProperty = XamlLanguage.Items; 2383_context.CurrentFrame.Member = parentProperty = XamlLanguage.Initialization; 2447else if (elementType == XamlLanguage.Array) 2501_context.CurrentFrame.Member = XamlLanguage.Items; 2704if (reader.Member == XamlLanguage.Key)
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (2)
673= new Lazy<XamlMember>(() => XamlLanguage.Static.GetMember("MemberType")); 676= new Lazy<XamlMember>(() => XamlLanguage.Static.GetMember("Type"));
System\Windows\Markup\Baml2006\WpfKnownType.cs (4)
123if (directive == XamlLanguage.Name) 127else if (directive == XamlLanguage.Key && _dictionaryKeyPropertyName != null) 131else if (directive == XamlLanguage.Lang) 135else if (directive == XamlLanguage.Uid)
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (2)
356= new Lazy<XamlMember>(() => XamlLanguage.Static.GetMember("MemberType")); 359= new Lazy<XamlMember>(() => XamlLanguage.Static.GetMember("Type"));
System\Windows\Markup\RestrictiveXamlXmlReader.cs (5)
23private static readonly HashSet<string> AllXamlNamespaces = new HashSet<string>(XamlLanguage.XamlNamespaces); 168if (directive.Name == XamlLanguage.Items.Name || 169directive.Name == XamlLanguage.Key.Name || 170directive.Name == XamlLanguage.Name.Name || 171Member == XamlLanguage.PositionalParameters)
System\Windows\Markup\WpfXamlLoader.cs (5)
262xamlReader.Member != XamlLanguage.Space) 336currentProperty != XamlLanguage.Space) 360if (stack.CurrentFrame.Property.IsDirective && stack.CurrentFrame.Property == XamlLanguage.Shared) 387else if (stack.CurrentFrame.Property == XmlSpace.Value || stack.CurrentFrame.Property == XamlLanguage.Space) 401stack.CurrentFrame.Property == XamlLanguage.ConnectionId &&
System\Windows\Markup\XamlReader.cs (1)
607XamlMember synchronousRecordProperty = _textReader.SchemaContext.GetXamlDirective(XamlLanguage.Xaml2006Namespace, "AsyncRecords");
System\Windows\ResourceDictionary.cs (1)
1179(reader.Member != XamlLanguage.PositionalParameters && reader.Member != xamlMemberResourceKey))
System\Windows\TemplateContent.cs (2)
818if (xamlReader.Member == parentType.GetAliasedProperty(XamlLanguage.Name)) 988if (!insideTemplate && frames.CurrentFrame.Property == XamlLanguage.ConnectionId)
System.Xaml (214)
System\Xaml\Context\ObjectWriterContext.cs (1)
294if (frame.Member == XamlLanguage.Initialization)
System\Xaml\Context\ServiceProviderContext.cs (1)
303if (_xamlContext.ParentProperty == XamlLanguage.Initialization)
System\Xaml\Context\XamlParserContext.cs (3)
261get { return _stack.CurrentFrame.Member == XamlLanguage.Items; } 266get { return _stack.CurrentFrame.Member == XamlLanguage.Initialization; } 271get { return _stack.CurrentFrame.Member == XamlLanguage.UnknownContent; }
System\Xaml\InfosetObjects\XamlObjectWriter.cs (63)
108_context.AddNamespacePrefix(KnownStrings.XmlPrefix, XamlLanguage.Xml1998Namespace); 237if (ctx.ParentInstance == null && ctx.ParentProperty != XamlLanguage.Arguments) 578else if (property == XamlLanguage.UnknownContent) 623if (property == XamlLanguage.PositionalParameters) 655if (property.IsDirective && property != XamlLanguage.Items && property != XamlLanguage.PositionalParameters) 713if (property == XamlLanguage.Arguments) 717else if (property == XamlLanguage.Initialization) 721else if (property == XamlLanguage.Items) 725else if (property == XamlLanguage.PositionalParameters) 729else if (property == XamlLanguage.Class) 773if (valueXamlType == XamlLanguage.String || !valueXamlType.CanAssignTo(property.Type)) 775if (property.IsDirective && property == XamlLanguage.Key && !Logic_ShouldConvertKey(_context)) 856if (parentProperty == XamlLanguage.PositionalParameters) 858_context.CurrentType = XamlLanguage.PositionalParameterDescriptor; 1047XamlMember keyProperty = instanceType.GetAliasedProperty(XamlLanguage.Key); 1070return xamlMember == XamlLanguage.Arguments 1071|| xamlMember == XamlLanguage.Base 1072|| xamlMember == XamlLanguage.FactoryMethod 1073|| xamlMember == XamlLanguage.Initialization 1074|| xamlMember == XamlLanguage.PositionalParameters 1075|| xamlMember == XamlLanguage.TypeArguments; 1082return xamlMember == XamlLanguage.Arguments 1083|| xamlMember == XamlLanguage.FactoryMethod 1084|| xamlMember == XamlLanguage.PositionalParameters 1085|| xamlMember == XamlLanguage.TypeArguments; 1093if (xamlMember == XamlLanguage.Key) 1097if (xamlMember == XamlLanguage.Uid) 1099if (null == xamlType.GetAliasedProperty(XamlLanguage.Uid)) 1131args[i] = Logic_PushAndPopAProvideValueStackFrame(ctx, XamlLanguage.PositionalParameters, me, false); 1138!ctx.CurrentPreconstructionPropertyValues.TryGetValue(XamlLanguage.FactoryMethod, out factoryMethodName)) 1336property == XamlLanguage.Key && 1394Debug.Assert(ctx.ParentProperty == XamlLanguage.Key); 1463if (ctx.LiveDepth > 2 && ctx.ParentProperty == XamlLanguage.Key && 1467XamlLanguage.Key, deferredMarkupExtensionContext); 1485if (property != XamlLanguage.Space) 1588if (prop != XamlLanguage.Key && propertyForDirective != null) 1596if (prop == XamlLanguage.Name) 1609else if (prop == XamlLanguage.ConnectionId) 1613else if (prop == XamlLanguage.Base) 1707else if (ctx.ParentProperty == XamlLanguage.Items) 1739bool inDictionary = ((ctx.ParentProperty == XamlLanguage.Items) && ctx.ParentType.IsDictionary); 1813if (excludeObjectType && itemType == XamlLanguage.Object) 1868ctx.CurrentProperty = XamlLanguage.Key; 1957if (value is NameFixupToken && parentProperty != XamlLanguage.Items) 1964if (parentProperty == XamlLanguage.PositionalParameters) 1966ctx.CurrentType = XamlLanguage.PositionalParameterDescriptor; 1995if (parentProperty != XamlLanguage.Key) 2017if (parentProperty == parentType.GetAliasedProperty(XamlLanguage.Name)) 2022if (parentProperty == XamlLanguage.Key) 2036if (parentProperty == XamlLanguage.Base) 2047if (parentProperty != XamlLanguage.Key) 2056else if (parentProperty == XamlLanguage.Key) 2076Debug.Assert(token.Target.Property == XamlLanguage.Key); 2170throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.DirectiveNotAtRoot, XamlLanguage.Class))); 2175throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.DirectiveMustBeString, XamlLanguage.Class))); 2200if (property != null && property.IsDirective && ctx.ParentInstance == null && property != XamlLanguage.Key) 2442if (token.Target.Property == XamlLanguage.Key) 2446else if (token.Target.Property == XamlLanguage.Items) 2499if (token.Target.Property == XamlLanguage.Key) 2503else if (token.Target.Property == XamlLanguage.Items) 2530if (token.Target.Property == XamlLanguage.Key || token.Target.Property == XamlLanguage.Items)
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
224_context.AddNamespacePrefix(KnownStrings.XmlPrefix, XamlLanguage.Xml1998Namespace);
System\Xaml\Parser\MePullParser.cs (2)
488_context.CurrentMember = XamlLanguage.PositionalParameters; 490XamlNode startProperty = new XamlNode(XamlNodeType.StartMember, XamlLanguage.PositionalParameters);
System\Xaml\Parser\NodeStreamSorter.cs (11)
230EnqueueOneXmlDirectiveProperty(XamlLanguage.Space, KnownStrings.Preserve); 234EnqueueOneXmlDirectiveProperty(XamlLanguage.Lang, _settings.XmlLang); 238EnqueueOneXmlDirectiveProperty(XamlLanguage.Base, _settings.BaseUri.ToString()); 412else if (!(prop.IsDirective && prop == XamlLanguage.Key)) 426if ((member == XamlLanguage.Initialization) 427|| (member == XamlLanguage.PositionalParameters) 428|| (member == XamlLanguage.FactoryMethod) 429|| (member == XamlLanguage.Arguments) 430|| (member == XamlLanguage.TypeArguments) 431|| (member == XamlLanguage.Base)) 444if (member.IsDirective && member == XamlLanguage.Key)
System\Xaml\Parser\XamlAttribute.cs (6)
65if(Property == XamlLanguage.Space) 69else if ((Property == XamlLanguage.FactoryMethod) 70|| (Property == XamlLanguage.Arguments) 71|| (Property == XamlLanguage.TypeArguments) 72|| (Property == XamlLanguage.Base) 88else if (Property == tagType.GetAliasedProperty(XamlLanguage.Name))
System\Xaml\Parser\XamlPullParser.cs (14)
579yield return Logic_StartObject(XamlLanguage.XData, null); 580XamlMember xDataTextProperty = XamlLanguage.XData.GetMember("Text"); 706yield return Logic_StartObject(XamlLanguage.XData, null); 707XamlMember xDataTextProperty = XamlLanguage.XData.GetMember("Text"); 858property = XamlLanguage.UnknownContent; 868var initProperty = XamlLanguage.Initialization; 926_context.CurrentMember = XamlLanguage.Items; 929var startProperty = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items); 984? XamlLanguage.String 1051else if (valueElementType == XamlLanguage.Array) 1089XamlType collectionType = _context.CurrentMember == XamlLanguage.Items ? _context.CurrentType : _context.CurrentMember.Type; 1137if (prop.Type == XamlLanguage.String) 1176if (allowedType == XamlLanguage.String || allowedType == XamlLanguage.Object)
System\Xaml\Parser\XamlScanner.cs (5)
599if (KS.Eq(attr.Name.Name, XamlLanguage.TypeArguments.Name)) 670if (attr.Property == XamlLanguage.Key) 723if (KS.Eq(_attributes[i].Name.ScopedName, XamlLanguage.Uid.Name)) 858XamlLanguage.XamlNamespaces.Contains(xmlns) && 859KS.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)
98s_UnknownReflector.Type = XamlLanguage.Object;
System\Xaml\Schema\TypeReflector.cs (9)
80_baseType.Value = XamlLanguage.Object; 318if (directive == XamlLanguage.Key) 323else if (directive == XamlLanguage.Name) 328else if (directive == XamlLanguage.Uid) 333else if (directive == XamlLanguage.Lang) 348if (directive == XamlLanguage.Key) 352else if (directive == XamlLanguage.Name) 356else if (directive == XamlLanguage.Uid) 360else if (directive == XamlLanguage.Lang)
System\Xaml\Schema\XamlNamespace.cs (1)
181type = XamlLanguage.LookupClrNamespaceType(_assemblyNamespaces[0], typeName);
System\Xaml\XamlLanguage.cs (2)
379if (nsPair.ClrNamespace == SWMNamespace && nsPair.Assembly == typeof(XamlLanguage).Assembly) 428{ typeof(XamlLanguage).Assembly, typeof(MarkupExtension).Assembly };
System\Xaml\XamlMarkupExtensionWriter.cs (3)
361if (member.XamlProperty == XamlLanguage.PositionalParameters) 449if (property == XamlLanguage.PositionalParameters) 546if (node.NodeType != XamlNodeType.StartMember || node.XamlProperty != XamlLanguage.PositionalParameters)
System\Xaml\XamlMember.cs (4)
234return XamlLanguage.Object; 236_reflector.TargetType = LookupTargetType() ?? XamlLanguage.Object; 249_reflector.Type = LookupType() ?? XamlLanguage.Object; 660return XamlLanguage.Object;
System\Xaml\XamlObjectReader.cs (41)
295if (XamlNode.Member == XamlLanguage.PositionalParameters) 341&& (member.PreferredXamlNamespace != XamlLanguage.Xml1998Namespace); 421MemberMarkupInfo itemsInfo = new MemberMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items) }; 466XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Key), 482XamlMember dkp = typeOfValue.GetAliasedProperty(XamlLanguage.Key); 618XamlNode = new XamlNode(XamlNodeType.StartObject, XamlLanguage.XData), 623XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.XData.GetMember("Text")), 648if((xamlProperty == declaringType.GetAliasedProperty(XamlLanguage.Lang)) && (propertyValue is string)) 652XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Lang), 681if (objectInfo.Properties[0].XamlNode.Member == XamlLanguage.Items) 732var itemsInfo = new MemberMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items) }; 1170context.FindPrefix(XamlLanguage.TypeArguments.PreferredXamlNamespace); 1255XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.FactoryMethod), 1309XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items) 1314XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Arguments) 1334XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.PositionalParameters) 1453valueXamlType.GetAliasedProperty(XamlLanguage.Name) != null || 1495if (property == xamlType.GetAliasedProperty(XamlLanguage.Name)) 1602return XamlLanguage.String.CanAssignTo(property.Type); 1757XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Name), 1809var items = new MemberMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items) }; 1817XamlNode = new XamlNode(XamlNodeType.StartObject, XamlLanguage.Array), 1824XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Array.GetMember("Type")), //x:ArrayExtension.Type 1850XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Array.ContentProperty), 1899return new ObjectMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartObject, XamlLanguage.Null) }; 2072XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Initialization), 2098objectInfo.XamlNode.XamlType == XamlLanguage.Null; 2207bool xIsContentOrItemsProperty = xInfo.IsContent || (xProperty == XamlLanguage.Items); 2208bool yIsContentOrItemsProperty = yInfo.IsContent || (yProperty == XamlLanguage.Items); 2222bool xIsInitialization = (xProperty == XamlLanguage.Initialization); 2223bool yIsInitialization = (yProperty == XamlLanguage.Initialization); 2237bool xIsArgumentsDirective = (xProperty == XamlLanguage.Arguments); 2238bool yIsArgumentsDirective = (yProperty == XamlLanguage.Arguments); 2278bool xIsPositionalParameterProperty = (xProperty == XamlLanguage.PositionalParameters); 2279bool yIsPositionalParameterProperty = (yProperty == XamlLanguage.PositionalParameters); 2340XamlNode = new XamlNode(XamlNodeType.StartObject, XamlLanguage.Reference); 2341nameProperty = new MemberMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.PositionalParameters) }; 2510if (ns != XamlLanguage.Xaml2006Namespace) 2599if (basePrefix != XamlLanguage.PreferredPrefix && !namespaceToPrefixMap.ContainsValue(string.Empty)) 2734XamlMember runtimeNameProperty = type.GetAliasedProperty(XamlLanguage.Name); 3231while (baseType != null && baseType != XamlLanguage.Object)
System\Xaml\XamlSchemaContext.cs (11)
148if (XamlLanguage.XamlNamespaces.Contains(xmlns)) 150result = XamlLanguage.PreferredPrefix; 187if (KS.Eq(result, XamlLanguage.PreferredPrefix)) 253if (XamlLanguage.XamlNamespaces.Contains(xamlNamespace)) 255return XamlLanguage.LookupXamlDirective(name); 257else if (XamlLanguage.XmlNamespaces.Contains(xamlNamespace)) 259return XamlLanguage.LookupXmlDirective(name); 318result = XamlLanguage.LookupXamlType(xamlNamespace, name); 526return GetXamlType(type, XamlLanguage.TypeAlias(type)); 898if (XamlLanguage.AllTypes.Contains(type)) 904combinedList.AddRange(XamlLanguage.XamlNamespaces);
System\Xaml\XamlType.cs (13)
202_reflector.KeyType = LookupKeyType() ?? XamlLanguage.Object; 219_reflector.ItemType = LookupItemType() ?? XamlLanguage.Object; 326_reflector.MarkupExtensionReturnType = LookupMarkupExtensionReturnType() ?? XamlLanguage.Object; 647if (directive == XamlLanguage.Key) 652else if (directive == XamlLanguage.Name) 656else if (directive == XamlLanguage.Uid) 660else if (directive == XamlLanguage.Lang) 711return XamlLanguage.Object; 867return CanAssignTo(XamlLanguage.MarkupExtension); 872return CanAssignTo(XamlLanguage.INameScope); 1124return CanAssignTo(XamlLanguage.IXmlSerializable); 1164if (result != null && result.TargetType != XamlLanguage.Object) 1571if (UnderlyingType == XamlLanguage.Type.UnderlyingType)
System\Xaml\XamlXmlWriter.cs (21)
110prefixAssignmentHistory = new Dictionary<string, string>() { {"xml", XamlLanguage.Xml1998Namespace} }; 211WriteStartObject(XamlLanguage.Null); 284(xamlMember == XamlLanguage.Items || 285xamlMember == XamlLanguage.Initialization || 286xamlMember == XamlLanguage.PositionalParameters || 287xamlMember == XamlLanguage.UnknownContent); 349&& enumerator.Current.Member != XamlLanguage.Items) 543WriteStartMember(XamlLanguage.TypeArguments); 712if (ns == XamlLanguage.Xml1998Namespace) 724ns = XamlLanguage.Xml1998Namespace; 1018if ((property == XamlLanguage.Items && parentType != null && parentType.IsWhitespaceSignificantCollection) || 1019(property == XamlLanguage.UnknownContent)) 1050if (property == XamlLanguage.PositionalParameters) 1122if ((property == XamlLanguage.Items && parentType != null && parentType.IsWhitespaceSignificantCollection) || 1123(property == XamlLanguage.UnknownContent)) 1159if (property == XamlLanguage.PositionalParameters) 1242if (frame.Member.DeclaringType == XamlLanguage.XData) 1685if (XamlLanguage.String.CanAssignTo(property.Type)) 1731if (XamlLanguage.String.CanAssignTo(property.Type) && !string.IsNullOrEmpty(value)) 2156Writer.WriteStartObject(XamlLanguage.MarkupExtension); 2157Writer.WriteStartMember(XamlLanguage.PositionalParameters);