523 references to XamlLanguage
PresentationFramework (60)
System\Windows\FrameworkTemplate.cs (3)
1044
if (Names.CurrentFrame.Property ==
XamlLanguage
.ConnectionId)
1069
if (member == owner.GetAliasedProperty(
XamlLanguage
.Name)
1070
||
XamlLanguage
.Name == member)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (35)
754
_xamlNodesWriter.WriteStartObject(
XamlLanguage
.XData);
755
XamlMember xDataTextProperty =
XamlLanguage
.XData.GetMember("Text");
789
_xamlNodesWriter.WriteStartMember(
XamlLanguage
.Initialization);
950
XamlMember property = BamlSchemaContext.GetXamlDirective(
XamlLanguage
.Xaml2006Namespace, BamlSchemaContext.GetString(stringId));
952
if (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);
1757
_xamlNodesWriter.WriteStartMember(
XamlLanguage
.PositionalParameters);
1773
_xamlNodesWriter.WriteStartObject(
XamlLanguage
.Static);
1774
_xamlNodesWriter.WriteStartMember(
XamlLanguage
.PositionalParameters);
1791
_xamlNodesWriter.WriteStartObject(
XamlLanguage
.Type);
1869
_xamlNodesWriter.WriteStartObject(
XamlLanguage
.Type);
1870
_xamlNodesWriter.WriteStartMember(
XamlLanguage
.PositionalParameters);
1909
_xamlNodesWriter.WriteStartMember(
XamlLanguage
.PositionalParameters);
1926
_xamlNodesWriter.WriteStartObject(
XamlLanguage
.Static);
1927
_xamlNodesWriter.WriteStartMember(
XamlLanguage
.PositionalParameters);
1948
_xamlNodesWriter.WriteStartObject(
XamlLanguage
.Type);
1949
_xamlNodesWriter.WriteStartMember(
XamlLanguage
.PositionalParameters);
2270
_xamlNodesWriter.WriteStartMember(
XamlLanguage
.ConnectionId);
2375
_context.CurrentFrame.Member = parentProperty =
XamlLanguage
.Items;
2379
_context.CurrentFrame.Member = parentProperty =
XamlLanguage
.Initialization;
2440
else if (elementType ==
XamlLanguage
.Array)
2494
_context.CurrentFrame.Member =
XamlLanguage
.Items;
2697
if (reader.Member ==
XamlLanguage
.Key)
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (2)
662
= new Lazy<XamlMember>(() =>
XamlLanguage
.Static.GetMember("MemberType"));
665
= new Lazy<XamlMember>(() =>
XamlLanguage
.Static.GetMember("Type"));
System\Windows\Markup\Baml2006\WpfKnownType.cs (4)
120
if (directive ==
XamlLanguage
.Name)
124
else if (directive ==
XamlLanguage
.Key && _dictionaryKeyPropertyName != null)
128
else if (directive ==
XamlLanguage
.Lang)
132
else 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)
22
private static readonly HashSet<string> AllXamlNamespaces = new HashSet<string>(
XamlLanguage
.XamlNamespaces);
167
if (directive.Name ==
XamlLanguage
.Items.Name ||
168
directive.Name ==
XamlLanguage
.Key.Name ||
169
directive.Name ==
XamlLanguage
.Name.Name ||
170
Member ==
XamlLanguage
.PositionalParameters)
System\Windows\Markup\WpfXamlLoader.cs (5)
258
xamlReader.Member !=
XamlLanguage
.Space)
332
currentProperty !=
XamlLanguage
.Space)
356
if (stack.CurrentFrame.Property.IsDirective && stack.CurrentFrame.Property ==
XamlLanguage
.Shared)
383
else if (stack.CurrentFrame.Property == XmlSpace.Value || stack.CurrentFrame.Property ==
XamlLanguage
.Space)
397
stack.CurrentFrame.Property ==
XamlLanguage
.ConnectionId &&
System\Windows\Markup\XamlReader.cs (1)
594
XamlMember synchronousRecordProperty = _textReader.SchemaContext.GetXamlDirective(
XamlLanguage
.Xaml2006Namespace, "AsyncRecords");
System\Windows\ResourceDictionary.cs (1)
1171
(reader.Member !=
XamlLanguage
.PositionalParameters && reader.Member != xamlMemberResourceKey))
System\Windows\TemplateContent.cs (2)
814
if (xamlReader.Member == parentType.GetAliasedProperty(
XamlLanguage
.Name))
984
if (!insideTemplate && frames.CurrentFrame.Property ==
XamlLanguage
.ConnectionId)
System.Xaml (214)
System\Xaml\Context\ObjectWriterContext.cs (1)
301
if (frame.Member ==
XamlLanguage
.Initialization)
System\Xaml\Context\ServiceProviderContext.cs (1)
305
if (_xamlContext.ParentProperty ==
XamlLanguage
.Initialization)
System\Xaml\Context\XamlParserContext.cs (3)
263
get { return _stack.CurrentFrame.Member ==
XamlLanguage
.Items; }
268
get { return _stack.CurrentFrame.Member ==
XamlLanguage
.Initialization; }
273
get { return _stack.CurrentFrame.Member ==
XamlLanguage
.UnknownContent; }
System\Xaml\InfosetObjects\XamlObjectWriter.cs (63)
106
_context.AddNamespacePrefix(KnownStrings.XmlPrefix,
XamlLanguage
.Xml1998Namespace);
241
if (ctx.ParentInstance is null && ctx.ParentProperty !=
XamlLanguage
.Arguments)
591
else if (property ==
XamlLanguage
.UnknownContent)
636
if (property ==
XamlLanguage
.PositionalParameters)
670
if (property.IsDirective && property !=
XamlLanguage
.Items && property !=
XamlLanguage
.PositionalParameters)
729
if (property ==
XamlLanguage
.Arguments)
733
else if (property ==
XamlLanguage
.Initialization)
737
else if (property ==
XamlLanguage
.Items)
741
else if (property ==
XamlLanguage
.PositionalParameters)
745
else if (property ==
XamlLanguage
.Class)
790
if (valueXamlType ==
XamlLanguage
.String || !valueXamlType.CanAssignTo(property.Type))
792
if (property.IsDirective && property ==
XamlLanguage
.Key && !Logic_ShouldConvertKey(_context))
876
if (parentProperty ==
XamlLanguage
.PositionalParameters)
878
_context.CurrentType =
XamlLanguage
.PositionalParameterDescriptor;
1073
XamlMember keyProperty = instanceType.GetAliasedProperty(
XamlLanguage
.Key);
1098
return xamlMember ==
XamlLanguage
.Arguments
1099
|| xamlMember ==
XamlLanguage
.Base
1100
|| xamlMember ==
XamlLanguage
.FactoryMethod
1101
|| xamlMember ==
XamlLanguage
.Initialization
1102
|| xamlMember ==
XamlLanguage
.PositionalParameters
1103
|| xamlMember ==
XamlLanguage
.TypeArguments;
1110
return xamlMember ==
XamlLanguage
.Arguments
1111
|| xamlMember ==
XamlLanguage
.FactoryMethod
1112
|| xamlMember ==
XamlLanguage
.PositionalParameters
1113
|| xamlMember ==
XamlLanguage
.TypeArguments;
1121
if (xamlMember ==
XamlLanguage
.Key)
1126
if (xamlMember ==
XamlLanguage
.Uid)
1128
if (xamlType.GetAliasedProperty(
XamlLanguage
.Uid) is null)
1160
args[i] = Logic_PushAndPopAProvideValueStackFrame(ctx,
XamlLanguage
.PositionalParameters, me, false);
1167
!ctx.CurrentPreconstructionPropertyValues.TryGetValue(
XamlLanguage
.FactoryMethod, out factoryMethodName))
1369
property ==
XamlLanguage
.Key &&
1430
Debug.Assert(ctx.ParentProperty ==
XamlLanguage
.Key);
1503
if (ctx.LiveDepth > 2 && ctx.ParentProperty ==
XamlLanguage
.Key &&
1507
XamlLanguage
.Key, deferredMarkupExtensionContext);
1525
if (property !=
XamlLanguage
.Space)
1627
if (prop !=
XamlLanguage
.Key && propertyForDirective is not null)
1635
if (prop ==
XamlLanguage
.Name)
1648
else if (prop ==
XamlLanguage
.ConnectionId)
1652
else if (prop ==
XamlLanguage
.Base)
1749
else if (ctx.ParentProperty ==
XamlLanguage
.Items)
1783
bool inDictionary = ((ctx.ParentProperty ==
XamlLanguage
.Items) && ctx.ParentType.IsDictionary);
1859
if (excludeObjectType && itemType ==
XamlLanguage
.Object)
1917
ctx.CurrentProperty =
XamlLanguage
.Key;
2012
if (value is NameFixupToken && parentProperty !=
XamlLanguage
.Items)
2020
if (parentProperty ==
XamlLanguage
.PositionalParameters)
2022
ctx.CurrentType =
XamlLanguage
.PositionalParameterDescriptor;
2052
if (parentProperty !=
XamlLanguage
.Key)
2075
if (parentProperty == parentType.GetAliasedProperty(
XamlLanguage
.Name))
2080
if (parentProperty ==
XamlLanguage
.Key)
2095
if (parentProperty ==
XamlLanguage
.Base)
2105
if (parentProperty !=
XamlLanguage
.Key)
2115
else if (parentProperty ==
XamlLanguage
.Key)
2135
Debug.Assert(token.Target.Property ==
XamlLanguage
.Key);
2229
throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.DirectiveNotAtRoot,
XamlLanguage
.Class)));
2234
throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.DirectiveMustBeString,
XamlLanguage
.Class)));
2261
if (property is not null && property.IsDirective && ctx.ParentInstance is null && property !=
XamlLanguage
.Key)
2513
if (token.Target.Property ==
XamlLanguage
.Key)
2517
else if (token.Target.Property ==
XamlLanguage
.Items)
2572
if (token.Target.Property ==
XamlLanguage
.Key)
2576
else if (token.Target.Property ==
XamlLanguage
.Items)
2602
if (token.Target.Property ==
XamlLanguage
.Key || token.Target.Property ==
XamlLanguage
.Items)
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
230
_context.AddNamespacePrefix(KnownStrings.XmlPrefix,
XamlLanguage
.Xml1998Namespace);
System\Xaml\Parser\MePullParser.cs (2)
507
_context.CurrentMember =
XamlLanguage
.PositionalParameters;
509
XamlNode startProperty = new XamlNode(XamlNodeType.StartMember,
XamlLanguage
.PositionalParameters);
System\Xaml\Parser\NodeStreamSorter.cs (11)
233
EnqueueOneXmlDirectiveProperty(
XamlLanguage
.Space, KnownStrings.Preserve);
238
EnqueueOneXmlDirectiveProperty(
XamlLanguage
.Lang, _settings.XmlLang);
243
EnqueueOneXmlDirectiveProperty(
XamlLanguage
.Base, _settings.BaseUri.ToString());
430
else if (!(prop.IsDirective && prop ==
XamlLanguage
.Key))
446
if ((member ==
XamlLanguage
.Initialization)
447
|| (member ==
XamlLanguage
.PositionalParameters)
448
|| (member ==
XamlLanguage
.FactoryMethod)
449
|| (member ==
XamlLanguage
.Arguments)
450
|| (member ==
XamlLanguage
.TypeArguments)
451
|| (member ==
XamlLanguage
.Base))
466
if (member.IsDirective && member ==
XamlLanguage
.Key)
System\Xaml\Parser\XamlAttribute.cs (6)
63
if(Property ==
XamlLanguage
.Space)
67
else if ((Property ==
XamlLanguage
.FactoryMethod)
68
|| (Property ==
XamlLanguage
.Arguments)
69
|| (Property ==
XamlLanguage
.TypeArguments)
70
|| (Property ==
XamlLanguage
.Base)
86
else if (Property == tagType.GetAliasedProperty(
XamlLanguage
.Name))
System\Xaml\Parser\XamlPullParser.cs (14)
612
yield return Logic_StartObject(
XamlLanguage
.XData, null);
613
XamlMember xDataTextProperty =
XamlLanguage
.XData.GetMember("Text");
744
yield return Logic_StartObject(
XamlLanguage
.XData, null);
745
XamlMember xDataTextProperty =
XamlLanguage
.XData.GetMember("Text");
899
property =
XamlLanguage
.UnknownContent;
910
var initProperty =
XamlLanguage
.Initialization;
969
_context.CurrentMember =
XamlLanguage
.Items;
972
var startProperty = new XamlNode(XamlNodeType.StartMember,
XamlLanguage
.Items);
1030
?
XamlLanguage
.String
1101
else if (valueElementType ==
XamlLanguage
.Array)
1140
XamlType collectionType = _context.CurrentMember ==
XamlLanguage
.Items ? _context.CurrentType : _context.CurrentMember.Type;
1192
if (prop.Type ==
XamlLanguage
.String)
1237
if (allowedType ==
XamlLanguage
.String || allowedType ==
XamlLanguage
.Object)
System\Xaml\Parser\XamlScanner.cs (5)
608
if (KS.Eq(attr.Name.Name,
XamlLanguage
.TypeArguments.Name))
681
if (attr.Property ==
XamlLanguage
.Key)
736
if (KS.Eq(_attributes[i].Name.ScopedName,
XamlLanguage
.Uid.Name))
878
XamlLanguage
.XamlNamespaces.Contains(xmlns) &&
879
KS.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)
99
s_UnknownReflector.Type =
XamlLanguage
.Object;
System\Xaml\Schema\TypeReflector.cs (9)
82
_baseType.Value =
XamlLanguage
.Object;
328
if (directive ==
XamlLanguage
.Key)
333
else if (directive ==
XamlLanguage
.Name)
338
else if (directive ==
XamlLanguage
.Uid)
343
else if (directive ==
XamlLanguage
.Lang)
359
if (directive ==
XamlLanguage
.Key)
363
else if (directive ==
XamlLanguage
.Name)
367
else if (directive ==
XamlLanguage
.Uid)
371
else if (directive ==
XamlLanguage
.Lang)
System\Xaml\Schema\XamlNamespace.cs (1)
181
type =
XamlLanguage
.LookupClrNamespaceType(_assemblyNamespaces[0], typeName);
System\Xaml\XamlLanguage.cs (2)
381
if (nsPair.ClrNamespace == SWMNamespace && nsPair.Assembly == typeof(
XamlLanguage
).Assembly)
434
typeof(
XamlLanguage
).Assembly, typeof(MarkupExtension).Assembly
System\Xaml\XamlMarkupExtensionWriter.cs (3)
365
if (member.XamlProperty ==
XamlLanguage
.PositionalParameters)
454
if (property ==
XamlLanguage
.PositionalParameters)
554
if (node.NodeType != XamlNodeType.StartMember || node.XamlProperty !=
XamlLanguage
.PositionalParameters)
System\Xaml\XamlMember.cs (4)
236
return
XamlLanguage
.Object;
239
_reflector.TargetType = LookupTargetType() ??
XamlLanguage
.Object;
253
_reflector.Type = LookupType() ??
XamlLanguage
.Object;
692
return
XamlLanguage
.Object;
System\Xaml\XamlObjectReader.cs (41)
290
if (XamlNode.Member ==
XamlLanguage
.PositionalParameters)
336
&& (member.PreferredXamlNamespace !=
XamlLanguage
.Xml1998Namespace);
417
MemberMarkupInfo itemsInfo = new MemberMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartMember,
XamlLanguage
.Items) };
462
XamlNode = new XamlNode(XamlNodeType.StartMember,
XamlLanguage
.Key),
478
XamlMember dkp = typeOfValue.GetAliasedProperty(
XamlLanguage
.Key);
615
XamlNode = new XamlNode(XamlNodeType.StartObject,
XamlLanguage
.XData),
620
XamlNode = new XamlNode(XamlNodeType.StartMember,
XamlLanguage
.XData.GetMember("Text")),
645
if((xamlProperty == declaringType.GetAliasedProperty(
XamlLanguage
.Lang)) && (propertyValue is string))
649
XamlNode = new XamlNode(XamlNodeType.StartMember,
XamlLanguage
.Lang),
676
if (objectInfo.Properties[0].XamlNode.Member ==
XamlLanguage
.Items)
724
var itemsInfo = new MemberMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartMember,
XamlLanguage
.Items) };
1168
context.FindPrefix(
XamlLanguage
.TypeArguments.PreferredXamlNamespace);
1252
XamlNode = new XamlNode(XamlNodeType.StartMember,
XamlLanguage
.FactoryMethod),
1307
XamlNode = new XamlNode(XamlNodeType.StartMember,
XamlLanguage
.Items)
1312
XamlNode = new XamlNode(XamlNodeType.StartMember,
XamlLanguage
.Arguments)
1332
XamlNode = new XamlNode(XamlNodeType.StartMember,
XamlLanguage
.PositionalParameters)
1453
valueXamlType.GetAliasedProperty(
XamlLanguage
.Name) is not null ||
1495
if (property == xamlType.GetAliasedProperty(
XamlLanguage
.Name))
1604
return
XamlLanguage
.String.CanAssignTo(property.Type);
1762
XamlNode = new XamlNode(XamlNodeType.StartMember,
XamlLanguage
.Name),
1814
var items = new MemberMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartMember,
XamlLanguage
.Items) };
1822
XamlNode = new XamlNode(XamlNodeType.StartObject,
XamlLanguage
.Array),
1829
XamlNode = new XamlNode(XamlNodeType.StartMember,
XamlLanguage
.Array.GetMember("Type")), // x:ArrayExtension.Type
1855
XamlNode = new XamlNode(XamlNodeType.StartMember,
XamlLanguage
.Array.ContentProperty),
1905
return new ObjectMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartObject,
XamlLanguage
.Null) };
2080
XamlNode = new XamlNode(XamlNodeType.StartMember,
XamlLanguage
.Initialization),
2106
objectInfo.XamlNode.XamlType ==
XamlLanguage
.Null;
2216
bool xIsContentOrItemsProperty = xInfo.IsContent || (xProperty ==
XamlLanguage
.Items);
2217
bool yIsContentOrItemsProperty = yInfo.IsContent || (yProperty ==
XamlLanguage
.Items);
2231
bool xIsInitialization = (xProperty ==
XamlLanguage
.Initialization);
2232
bool yIsInitialization = (yProperty ==
XamlLanguage
.Initialization);
2246
bool xIsArgumentsDirective = (xProperty ==
XamlLanguage
.Arguments);
2247
bool yIsArgumentsDirective = (yProperty ==
XamlLanguage
.Arguments);
2287
bool xIsPositionalParameterProperty = (xProperty ==
XamlLanguage
.PositionalParameters);
2288
bool yIsPositionalParameterProperty = (yProperty ==
XamlLanguage
.PositionalParameters);
2350
XamlNode = new XamlNode(XamlNodeType.StartObject,
XamlLanguage
.Reference);
2351
nameProperty = new MemberMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartMember,
XamlLanguage
.PositionalParameters) };
2520
if (ns !=
XamlLanguage
.Xaml2006Namespace)
2610
if (basePrefix !=
XamlLanguage
.PreferredPrefix && !namespaceToPrefixMap.ContainsValue(string.Empty))
2748
XamlMember runtimeNameProperty = type.GetAliasedProperty(
XamlLanguage
.Name);
3253
while (baseType is not null && baseType !=
XamlLanguage
.Object)
System\Xaml\XamlSchemaContext.cs (11)
151
if (
XamlLanguage
.XamlNamespaces.Contains(xmlns))
153
result =
XamlLanguage
.PreferredPrefix;
195
if (KS.Eq(result,
XamlLanguage
.PreferredPrefix))
263
if (
XamlLanguage
.XamlNamespaces.Contains(xamlNamespace))
265
return
XamlLanguage
.LookupXamlDirective(name);
267
else if (
XamlLanguage
.XmlNamespaces.Contains(xamlNamespace))
269
return
XamlLanguage
.LookupXmlDirective(name);
333
result =
XamlLanguage
.LookupXamlType(xamlNamespace, name);
546
return GetXamlType(type,
XamlLanguage
.TypeAlias(type));
930
if (
XamlLanguage
.AllTypes.Contains(type))
936
combinedList.AddRange(
XamlLanguage
.XamlNamespaces);
System\Xaml\XamlType.cs (13)
205
_reflector.KeyType = LookupKeyType() ??
XamlLanguage
.Object;
224
_reflector.ItemType = LookupItemType() ??
XamlLanguage
.Object;
341
_reflector.MarkupExtensionReturnType = LookupMarkupExtensionReturnType() ??
XamlLanguage
.Object;
685
if (directive ==
XamlLanguage
.Key)
690
else if (directive ==
XamlLanguage
.Name)
694
else if (directive ==
XamlLanguage
.Uid)
698
else if (directive ==
XamlLanguage
.Lang)
753
return
XamlLanguage
.Object;
924
return CanAssignTo(
XamlLanguage
.MarkupExtension);
929
return CanAssignTo(
XamlLanguage
.INameScope);
1202
return CanAssignTo(
XamlLanguage
.IXmlSerializable);
1245
if (result is not null && result.TargetType !=
XamlLanguage
.Object)
1687
if (UnderlyingType ==
XamlLanguage
.Type.UnderlyingType)
System\Xaml\XamlXmlWriter.cs (21)
108
prefixAssignmentHistory = new Dictionary<string, string>() { {"xml",
XamlLanguage
.Xml1998Namespace} };
210
WriteStartObject(
XamlLanguage
.Null);
285
(xamlMember ==
XamlLanguage
.Items ||
286
xamlMember ==
XamlLanguage
.Initialization ||
287
xamlMember ==
XamlLanguage
.PositionalParameters ||
288
xamlMember ==
XamlLanguage
.UnknownContent);
353
&& enumerator.Current.Member !=
XamlLanguage
.Items)
550
WriteStartMember(
XamlLanguage
.TypeArguments);
722
if (ns ==
XamlLanguage
.Xml1998Namespace)
735
ns =
XamlLanguage
.Xml1998Namespace;
1037
if ((property ==
XamlLanguage
.Items && parentType is not null && parentType.IsWhitespaceSignificantCollection) ||
1038
(property ==
XamlLanguage
.UnknownContent))
1069
if (property ==
XamlLanguage
.PositionalParameters)
1142
if ((property ==
XamlLanguage
.Items && parentType is not null && parentType.IsWhitespaceSignificantCollection) ||
1143
(property ==
XamlLanguage
.UnknownContent))
1179
if (property ==
XamlLanguage
.PositionalParameters)
1263
if (frame.Member.DeclaringType ==
XamlLanguage
.XData)
1719
if (
XamlLanguage
.String.CanAssignTo(property.Type))
1767
if (
XamlLanguage
.String.CanAssignTo(property.Type) && !string.IsNullOrEmpty(value))
2196
Writer.WriteStartObject(
XamlLanguage
.MarkupExtension);
2197
Writer.WriteStartMember(
XamlLanguage
.PositionalParameters);
System.Xaml.Tests (249)
System\Xaml\XamlDirectiveTests.cs (1)
68
Assert.Equal(
XamlLanguage
.Object, directive.Type);
System\Xaml\XamlLanguageTests.cs (162)
19
Assert.Equal(new string[] { "http://schemas.microsoft.com/winfx/2006/xaml" },
XamlLanguage
.XamlNamespaces);
25
Assert.Equal(new string[] { "http://www.w3.org/XML/1998/namespace" },
XamlLanguage
.XmlNamespaces);
31
XamlType type =
XamlLanguage
.Array;
32
Assert.Same(type,
XamlLanguage
.Array);
36
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
42
XamlType type =
XamlLanguage
.Member;
43
Assert.Same(type,
XamlLanguage
.Member);
47
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
53
XamlType type =
XamlLanguage
.Null;
54
Assert.Same(type,
XamlLanguage
.Null);
58
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
64
XamlType type =
XamlLanguage
.Property;
65
Assert.Same(type,
XamlLanguage
.Property);
69
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
75
XamlType type =
XamlLanguage
.Reference;
76
Assert.Same(type,
XamlLanguage
.Reference);
80
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
86
XamlType type =
XamlLanguage
.Static;
87
Assert.Same(type,
XamlLanguage
.Static);
91
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
97
XamlType type =
XamlLanguage
.Type;
98
Assert.Same(type,
XamlLanguage
.Type);
102
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
108
XamlType type =
XamlLanguage
.String;
109
Assert.Same(type,
XamlLanguage
.String);
113
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
119
XamlType type =
XamlLanguage
.Double;
120
Assert.Same(type,
XamlLanguage
.Double);
124
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
130
XamlType type =
XamlLanguage
.Int32;
131
Assert.Same(type,
XamlLanguage
.Int32);
135
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
141
XamlType type =
XamlLanguage
.Boolean;
142
Assert.Same(type,
XamlLanguage
.Boolean);
146
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
152
XamlType type =
XamlLanguage
.XData;
153
Assert.Same(type,
XamlLanguage
.XData);
157
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
163
XamlType type =
XamlLanguage
.Object;
164
Assert.Same(type,
XamlLanguage
.Object);
168
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
174
XamlType type =
XamlLanguage
.Char;
175
Assert.Same(type,
XamlLanguage
.Char);
179
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
185
XamlType type =
XamlLanguage
.Single;
186
Assert.Same(type,
XamlLanguage
.Single);
190
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
196
XamlType type =
XamlLanguage
.Byte;
197
Assert.Same(type,
XamlLanguage
.Byte);
201
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
207
XamlType type =
XamlLanguage
.Int16;
208
Assert.Same(type,
XamlLanguage
.Int16);
212
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
218
XamlType type =
XamlLanguage
.Int64;
219
Assert.Same(type,
XamlLanguage
.Int64);
223
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
229
XamlType type =
XamlLanguage
.Decimal;
230
Assert.Same(type,
XamlLanguage
.Decimal);
234
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
240
XamlType type =
XamlLanguage
.Uri;
241
Assert.Same(type,
XamlLanguage
.Uri);
245
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
251
XamlType type =
XamlLanguage
.TimeSpan;
252
Assert.Same(type,
XamlLanguage
.TimeSpan);
256
Assert.Equal(
XamlLanguage
.XamlNamespaces[0], type.PreferredXamlNamespace);
262
ReadOnlyCollection<XamlType> types =
XamlLanguage
.AllTypes;
263
Assert.Same(types,
XamlLanguage
.AllTypes);
264
Assert.Equal(new XamlType[] {
XamlLanguage
.Array,
XamlLanguage
.Member,
XamlLanguage
.Null,
XamlLanguage
.Property,
XamlLanguage
.Reference,
XamlLanguage
.Static,
XamlLanguage
.Type,
XamlLanguage
.String,
XamlLanguage
.Double,
XamlLanguage
.Int16,
XamlLanguage
.Int32,
XamlLanguage
.Int64,
XamlLanguage
.Boolean,
XamlLanguage
.XData,
XamlLanguage
.Object,
XamlLanguage
.Char,
XamlLanguage
.Single,
XamlLanguage
.Byte,
XamlLanguage
.Decimal,
XamlLanguage
.Uri,
XamlLanguage
.TimeSpan }, types);
270
XamlDirective directive =
XamlLanguage
.Arguments;
271
Assert.Same(directive,
XamlLanguage
.Arguments);
283
XamlDirective directive =
XamlLanguage
.AsyncRecords;
284
Assert.Same(directive,
XamlLanguage
.AsyncRecords);
296
XamlDirective directive =
XamlLanguage
.Class;
297
Assert.Same(directive,
XamlLanguage
.Class);
309
XamlDirective directive =
XamlLanguage
.ClassModifier;
310
Assert.Same(directive,
XamlLanguage
.ClassModifier);
322
XamlDirective directive =
XamlLanguage
.Code;
323
Assert.Same(directive,
XamlLanguage
.Code);
335
XamlDirective directive =
XamlLanguage
.ConnectionId;
336
Assert.Same(directive,
XamlLanguage
.ConnectionId);
348
XamlDirective directive =
XamlLanguage
.FactoryMethod;
349
Assert.Same(directive,
XamlLanguage
.FactoryMethod);
361
XamlDirective directive =
XamlLanguage
.FieldModifier;
362
Assert.Same(directive,
XamlLanguage
.FieldModifier);
374
XamlDirective directive =
XamlLanguage
.Items;
375
Assert.Same(directive,
XamlLanguage
.Items);
387
XamlDirective directive =
XamlLanguage
.Initialization;
388
Assert.Same(directive,
XamlLanguage
.Initialization);
400
XamlDirective directive =
XamlLanguage
.Key;
401
Assert.Same(directive,
XamlLanguage
.Key);
413
XamlDirective directive =
XamlLanguage
.Members;
414
Assert.Same(directive,
XamlLanguage
.Members);
426
XamlDirective directive =
XamlLanguage
.ClassAttributes;
427
Assert.Same(directive,
XamlLanguage
.ClassAttributes);
439
XamlDirective directive =
XamlLanguage
.Name;
440
Assert.Same(directive,
XamlLanguage
.Name);
452
XamlDirective directive =
XamlLanguage
.PositionalParameters;
453
Assert.Same(directive,
XamlLanguage
.PositionalParameters);
465
XamlDirective directive =
XamlLanguage
.Shared;
466
Assert.Same(directive,
XamlLanguage
.Shared);
478
XamlDirective directive =
XamlLanguage
.Subclass;
479
Assert.Same(directive,
XamlLanguage
.Subclass);
491
XamlDirective directive =
XamlLanguage
.SynchronousMode;
492
Assert.Same(directive,
XamlLanguage
.SynchronousMode);
504
XamlDirective directive =
XamlLanguage
.TypeArguments;
505
Assert.Same(directive,
XamlLanguage
.TypeArguments);
517
XamlDirective directive =
XamlLanguage
.Uid;
518
Assert.Same(directive,
XamlLanguage
.Uid);
530
XamlDirective directive =
XamlLanguage
.UnknownContent;
531
Assert.Same(directive,
XamlLanguage
.UnknownContent);
543
XamlDirective directive =
XamlLanguage
.Base;
544
Assert.Same(directive,
XamlLanguage
.Base);
556
XamlDirective directive =
XamlLanguage
.Lang;
557
Assert.Same(directive,
XamlLanguage
.Lang);
569
XamlDirective directive =
XamlLanguage
.Space;
570
Assert.Same(directive,
XamlLanguage
.Space);
582
ReadOnlyCollection<XamlDirective> directives =
XamlLanguage
.AllDirectives;
583
Assert.Same(directives,
XamlLanguage
.AllDirectives);
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\XamlMemberTests.cs (11)
1525
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true),
XamlLanguage
.Object,
XamlLanguage
.Object };
1555
XamlLanguage
.Object,
XamlLanguage
.Object
1564
null,
XamlLanguage
.Object
1572
null,
XamlLanguage
.Object
1675
Assert.Equal(expected ??
XamlLanguage
.Object, member.Type);
1682
Assert.Equal(
XamlLanguage
.Object, directive.Type);
1687
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), new XamlValueConverter<TypeConverter>(null,
XamlLanguage
.Object), null };
1688
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true), new XamlValueConverter<TypeConverter>(null,
XamlLanguage
.Object), null };
1722
new XamlValueConverter<TypeConverter>(null,
XamlLanguage
.Object), null
System\Xaml\XamlNodeListTests.cs (4)
273
writer.WriteStartObject(
XamlLanguage
.Object);
283
Assert.Equal(
XamlLanguage
.Object, reader.Type);
333
writer.WriteStartMember(
XamlLanguage
.Key);
345
Assert.Equal(
XamlLanguage
.Key, reader.Member);
System\Xaml\XamlSchemaContextTests.cs (33)
394
yield return new object?[] { XamlNamespace, "AsyncRecords",
XamlLanguage
.AsyncRecords };
395
yield return new object?[] { XamlNamespace, "Arguments",
XamlLanguage
.Arguments };
396
yield return new object?[] { XamlNamespace, "Class",
XamlLanguage
.Class };
397
yield return new object?[] { XamlNamespace, "ClassModifier",
XamlLanguage
.ClassModifier };
398
yield return new object?[] { XamlNamespace, "Code",
XamlLanguage
.Code };
399
yield return new object?[] { XamlNamespace, "ConnectionId",
XamlLanguage
.ConnectionId };
400
yield return new object?[] { XamlNamespace, "FactoryMethod",
XamlLanguage
.FactoryMethod };
401
yield return new object?[] { XamlNamespace, "FieldModifier",
XamlLanguage
.FieldModifier };
402
yield return new object?[] { XamlNamespace, "_Initialization",
XamlLanguage
.Initialization };
403
yield return new object?[] { XamlNamespace, "_Items",
XamlLanguage
.Items };
404
yield return new object?[] { XamlNamespace, "Key",
XamlLanguage
.Key };
405
yield return new object?[] { XamlNamespace, "Members",
XamlLanguage
.Members };
406
yield return new object?[] { XamlNamespace, "ClassAttributes",
XamlLanguage
.ClassAttributes };
407
yield return new object?[] { XamlNamespace, "Name",
XamlLanguage
.Name };
408
yield return new object?[] { XamlNamespace, "_PositionalParameters",
XamlLanguage
.PositionalParameters };
409
yield return new object?[] { XamlNamespace, "Shared",
XamlLanguage
.Shared };
410
yield return new object?[] { XamlNamespace, "Subclass",
XamlLanguage
.Subclass };
411
yield return new object?[] { XamlNamespace, "SynchronousMode",
XamlLanguage
.SynchronousMode };
412
yield return new object?[] { XamlNamespace, "TypeArguments",
XamlLanguage
.TypeArguments };
413
yield return new object?[] { XamlNamespace, "Uid",
XamlLanguage
.Uid };
414
yield return new object?[] { XamlNamespace, "_UnknownContent",
XamlLanguage
.UnknownContent };
422
yield return new object?[] { XmlNamespace, "base",
XamlLanguage
.Base };
423
yield return new object?[] { XmlNamespace, "lang",
XamlLanguage
.Lang };
424
yield return new object?[] { XmlNamespace, "space",
XamlLanguage
.Space };
708
new XamlTypeName("clr-namespace:System.Xaml;assembly=" + typeof(
XamlLanguage
).Assembly.FullName, "XamlType"),
713
new XamlTypeName("clr-namespace:System.Windows.Markup;assembly=" + typeof(
XamlLanguage
).Assembly.FullName, "MemberDefinition"),
718
new XamlTypeName("clr-namespace:System.Windows.Markup;assembly=" + typeof(
XamlLanguage
).Assembly.FullName, "Member"),
723
new XamlTypeName("clr-namespace:System.Windows.Markup.Sub;assembly=" + typeof(
XamlLanguage
).Assembly.FullName, "Member"),
733
new XamlTypeName("clr-namespace:System.Windows.Markup;assembly=" + typeof(
XamlLanguage
).Assembly.FullName, "PropertyDefinition"),
738
new XamlTypeName("clr-namespace:System.Windows.Markup;assembly=" + typeof(
XamlLanguage
).Assembly.FullName, "Property"),
743
new XamlTypeName("clr-namespace:System.Windows.Markup.Sub;assembly=" + typeof(
XamlLanguage
).Assembly.FullName, "Property"),
753
new XamlTypeName("clr-namespace:System.Windows.Markup;assembly=" + typeof(
XamlLanguage
).Assembly.FullName, "AmbientAttribute"),
758
new XamlTypeName("clr-namespace:System.Windows.Markup;assembly=" + typeof(
XamlLanguage
).Assembly.FullName, "NoSuchType"),
System\Xaml\XamlTypeTests.cs (38)
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,
474
XamlLanguage
.Name,
480
XamlLanguage
.Name,
486
XamlLanguage
.Name,
492
XamlLanguage
.Name,
506
XamlLanguage
.Uid,
512
XamlLanguage
.Uid,
518
XamlLanguage
.Uid,
524
XamlLanguage
.Uid,
538
XamlLanguage
.Lang,
544
XamlLanguage
.Lang,
550
XamlLanguage
.Lang,
556
XamlLanguage
.Lang,
570
XamlLanguage
.Lang,
588
XamlLanguage
.Lang,
594
XamlLanguage
.Lang,
603
XamlLanguage
.Lang,
628
yield return new object[] {
XamlLanguage
.Key };
629
yield return new object[] {
XamlLanguage
.Name };
630
yield return new object[] {
XamlLanguage
.Uid };
631
yield return new object[] {
XamlLanguage
.Lang };
700
Assert.Throws<XamlSchemaException>(() => type.LookupAliasedPropertyEntry(
XamlLanguage
.Lang));
701
Assert.Throws<XamlSchemaException>(() => type.GetAliasedProperty(
XamlLanguage
.Lang));
1701
yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()),
XamlLanguage
.Object };
1702
yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()),
XamlLanguage
.Object };
1716
return
XamlLanguage
.Single;
1719
XamlLanguage
.Single
3023
Assert.Equal((type.IsArray || type.IsCollection || type.IsDictionary) ? expected ??
XamlLanguage
.Object : null, type.ItemType);
3078
Assert.Equal(type.IsDictionary ? expected ??
XamlLanguage
.Object : null, type.KeyType);
3368
Assert.Equal(type.IsMarkupExtension ? expected ??
XamlLanguage
.Object : null, type.MarkupExtensionReturnType);
4224
yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(null,
XamlLanguage
.Object) };