2 types derived from XamlType
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
15
internal class WpfXamlType :
XamlType
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
412
private class VisibilityMaskingXamlType :
XamlType
8 instantiations of XamlType
System.Xaml (5)
System\Xaml\Context\XamlContext.cs (1)
277
xamlType = new
XamlType
(typeName.Namespace, typeName.Name, typeArgs, SchemaContext);
System\Xaml\Parser\XamlAttribute.cs (1)
154
XamlType attachedOwnerType = new
XamlType
(string.Empty, propName.OwnerName, null, context.SchemaContext);
System\Xaml\Parser\XamlScanner.cs (1)
535
return new
XamlType
(xmlns, name.Name, null, _parserContext.SchemaContext);
System\Xaml\Schema\XamlTypeTypeConverter.cs (1)
108
result = new
XamlType
(typeName.Namespace, typeName.Name, typeArgs, schemaContext);
System\Xaml\XamlSchemaContext.cs (1)
533
xamlType = new
XamlType
(alias, type, this, null, null);
System.Xaml.Tests (3)
System\Windows\Markup\XamlSetMarkupExtensionEventArgsTests.cs (1)
14
var type = new
XamlType
("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext());
System\Windows\Markup\XamlSetTypeConverterEventArgsTests.cs (1)
16
var type = new
XamlType
("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext());
System\Windows\Markup\XamlSetValueEventArgsTests.cs (1)
14
var type = new
XamlType
("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext());
696 references to XamlType
PresentationFramework (134)
MS\Internal\Helper.cs (1)
621
System.Xaml.
XamlType
xt = sc.GetXamlType(targetType);
System\Windows\Controls\ItemsPanelTemplate.cs (1)
115
System.Xaml.
XamlType
panelType = templateHolder.SchemaContext.GetXamlType(typeof(Panel));
System\Windows\Controls\ItemsPresenter.cs (1)
320
System.Xaml.
XamlType
xType = (Template.Template as TemplateContent).RootType;
System\Windows\FrameworkTemplate.cs (3)
577
internal static bool IsNameScope(
XamlType
type)
690
public
XamlType
Type { get; set; }
1071
internal static bool IsNameProperty(XamlMember member,
XamlType
owner)
System\Windows\Markup\Baml2006\Baml2006KeyRecord.cs (1)
98
public StaticResource(
XamlType
type, XamlSchemaContext schemaContext)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (17)
189
override public
XamlType
Type
812
XamlType
type = BamlSchemaContext.GetXamlType(_binaryReader.ReadInt16());
878
XamlType
xamlType = BamlSchemaContext.GetXamlType(keyId);
1125
XamlType
type;
1306
XamlType
type = _context.SchemaContext.GetXamlType(typeId);
1474
private XamlMember GetProperty(Int16 propertyId,
XamlType
parentType)
1635
XamlType
extensionType = BamlSchemaContext.GetXamlType((short)(-extensionTypeId));
1849
XamlType
type = BamlSchemaContext.GetXamlType(_binaryReader.ReadInt16());
1934
XamlType
xamlType = BamlSchemaContext.GetXamlType(optimizedResource.KeyId);
2024
private string Logic_GetFullyQualifiedNameForType(
XamlType
type)
2344
private void InjectPropertyAndFrameIfNeeded(
XamlType
elementType, SByte flags)
2353
XamlType
parentType = _context.CurrentFrame.XamlType;
2415
XamlType
parentPropertyType = parentProperty.Type;
2489
private void EmitGoItemsPreamble(
XamlType
parentPropertyType)
2508
XamlType
type)
2600
XamlType
declaringType = BamlSchemaContext.GetXamlType(reader.ReadInt16());
2647
XamlType
type = _context.SchemaContext.GetXamlType(System.Windows.Markup.SystemKeyConverter.GetSystemClassType(keyId));
System\Windows\Markup\Baml2006\Baml2006ReaderFrame.cs (1)
34
public
XamlType
XamlType { get; set; }
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (25)
42
public override ICollection<
XamlType
> GetAllXamlTypes(string xamlNamespace)
52
public override
XamlType
GetXamlType(Type type)
57
protected override
XamlType
GetXamlType(string xamlNamespace, string name, params
XamlType
[] typeArguments)
63
foreach (
XamlType
typeArg in typeArguments)
81
internal
XamlType
ResourceDictionaryType { get { return _resourceDictionaryType.Value; } }
83
internal
XamlType
EventSetterType { get { return _eventSetterType.Value; } }
91
internal
XamlType
StaticResourceExtensionType { get { return _staticResourceExtensionType.Value; } }
146
XamlType
xamlType;
160
internal
XamlType
GetXamlType(Int16 typeId)
163
XamlType
xamlType;
190
internal XamlMember GetProperty(Int16 propertyId,
XamlType
parentType)
201
XamlType
declaringType = GetXamlType(bamlProperty.DeclaringTypeId);
236
XamlType
declaringType;
274
internal
XamlType
GetPropertyDeclaringType(Int16 propertyId)
540
private
XamlType
ResolveBamlType(BamlType bamlType, Int16 typeId)
546
XamlType
xType = _parentSchemaContext.GetXamlType(type);
582
private bool TryGetBamlType(Int16 typeId, out BamlType bamlType, out
XamlType
xamlType)
592
xamlType = type as
XamlType
;
668
private static readonly Lazy<
XamlType
> _resourceDictionaryType
669
= new Lazy<
XamlType
>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(ResourceDictionary)));
671
private static readonly Lazy<
XamlType
> _eventSetterType
672
= new Lazy<
XamlType
>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(EventSetter)));
683
private static readonly Lazy<
XamlType
> _staticResourceExtensionType
684
= new Lazy<
XamlType
>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(StaticResourceExtension)));
System\Windows\Markup\Baml2006\ThemeKnownTypeHelper.cs (1)
11
public abstract
XamlType
GetKnownXamlType(string name);
System\Windows\Markup\Baml2006\WpfKnownMember.cs (3)
67
XamlType
declaringType,
79
XamlType
declaringType,
191
protected override
XamlType
LookupType()
System\Windows\Markup\Baml2006\WpfKnownType.cs (3)
328
protected override IList<
XamlType
> LookupPositionalParameters(int paramCount)
332
List<
XamlType
> xTypes = null;
336
xTypes = new List<
XamlType
>();
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (22)
34
private Dictionary<Type,
XamlType
> _masterTypeTable;
57
_masterTypeTable = new Dictionary<Type,
XamlType
>(256);
176
public override
XamlType
GetXamlType(Type type)
180
XamlType
xamlType = GetKnownXamlType(type);
189
private
XamlType
GetUnknownXamlType(Type type)
191
XamlType
xamlType;
205
internal
XamlType
GetKnownXamlType(Type type)
207
XamlType
xamlType;
264
protected override
XamlType
GetXamlType(string xamlNamespace, string name, params
XamlType
[] typeArguments)
269
public
XamlType
GetXamlTypeExposed(string xamlNamespace, string name, params
XamlType
[] typeArguments)
309
XamlType
xamlType = GetXamlType(xamlTypeName);
324
internal
XamlType
ResourceDictionaryType { get { return _resourceDictionaryType.Value; } }
326
internal
XamlType
EventSetterType { get { return _eventSetterType.Value; } }
334
internal
XamlType
StaticResourceExtensionType { get { return _staticResourceExtensionType.Value; } }
359
private static readonly Lazy<
XamlType
> _resourceDictionaryType
360
= new Lazy<
XamlType
>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(ResourceDictionary)));
362
private static readonly Lazy<
XamlType
> _eventSetterType
363
= new Lazy<
XamlType
>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(EventSetter)));
374
private static readonly Lazy<
XamlType
> _staticResourceExtensionType
375
= new Lazy<
XamlType
>(() => System.Windows.Markup.XamlReader.BamlSharedSchemaContext.GetXamlType(typeof(StaticResourceExtension)));
System\Windows\Markup\Baml2006\WpfSharedXamlSchemaContext.cs (6)
19
public override
XamlType
GetXamlType(Type type)
23
XamlType
xType;
55
internal
XamlType
GetXamlTypeInternal(string xamlNamespace, string name, params
XamlType
[] typeArguments)
60
private Dictionary<Type,
XamlType
> _masterTypeTable = new Dictionary<Type,
XamlType
>();
System\Windows\Markup\Baml2006\WpfXamlMember.cs (2)
90
protected WpfXamlMember(string name,
XamlType
declaringType, bool isAttachable)
149
protected override
XamlType
LookupType()
System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
203
XamlType
type = this;
System\Windows\Markup\DependencyPropertyConverter.cs (8)
184
XamlType
styleXType = schemaContext.GetXamlType(typeof(Style));
185
XamlType
frameworkTemplateXType = schemaContext.GetXamlType(typeof(FrameworkTemplate));
186
XamlType
dataTemplateXType = schemaContext.GetXamlType(typeof(DataTemplate));
187
XamlType
controlTemplateXType = schemaContext.GetXamlType(typeof(ControlTemplate));
189
List<
XamlType
> ceilingTypes = new List<
XamlType
>();
245
XamlType
frameworkTemplateXType = schemaContext.GetXamlType(typeof(FrameworkTemplate));
249
ambientProvider.GetFirstAmbientValue(new
XamlType
[] { frameworkTemplateXType }, templateProperty);
System\Windows\Markup\RoutedEventConverter.cs (3)
87
XamlType
styleXType = schemaContext.GetXamlType(typeof(Style));
89
List<
XamlType
> ceilingTypes = new List<
XamlType
>();
System\Windows\Markup\WpfXamlLoader.cs (3)
291
XamlType
xamlType = xamlReader.Type;
292
XamlType
bindingBaseType = xamlType.SchemaContext.GetXamlType(typeof(BindingBase));
293
XamlType
dynamicResourceType = xamlType.SchemaContext.GetXamlType(typeof(DynamicResourceExtension));
System\Windows\Markup\XamlReader.cs (1)
1193
public
XamlType
Type { get; set; }
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (11)
27
Dictionary<Type,
XamlType
> _allowedInternalTypes;
93
public override
XamlType
GetXamlType(Type type)
211
protected override
XamlType
GetXamlType(string xamlNamespace, string name, params
XamlType
[] typeArguments)
306
private
XamlType
GetInternalType(Type type,
XamlType
sharedSchemaXamlType)
312
_allowedInternalTypes = new Dictionary<Type,
XamlType
>();
315
XamlType
result;
339
private
XamlType
LookupXamlType(string xamlNamespace, string name,
XamlType
[] typeArguments)
342
XamlType
result;
System\Windows\ResourceDictionary.cs (1)
1161
XamlType
xamlTypeStaticResourceExtension = reader.SchemaContext.GetXamlType(typeof(StaticResourceExtension));
System\Windows\StaticResourceExtension.cs (7)
213
XamlType
feXType = schemaContext.GetXamlType(typeof(FrameworkElement));
214
XamlType
styleXType = schemaContext.GetXamlType(typeof(Style));
215
XamlType
templateXType = schemaContext.GetXamlType(typeof(FrameworkTemplate));
216
XamlType
appXType = schemaContext.GetXamlType(typeof(Application));
217
XamlType
fceXType = schemaContext.GetXamlType(typeof(FrameworkContentElement));
226
XamlType
[] types = new
XamlType
[1] { schemaContext.GetXamlType(typeof(ResourceDictionary)) };
System\Windows\TemplateContent.cs (12)
30
private System.Xaml.
XamlType
_xamlType;
34
public
XamlType
Type
113
public void Push(System.Xaml.
XamlType
xamlType, string name)
306
private void UpdateSharedPropertyNames(string name, List<PropertyValue> sharedProperties,
XamlType
type)
472
XamlType
type = stack.CurrentFrame.Property.Type;
793
XamlType
parentType,
954
XamlType
type = frames.CurrentFrame.Property.Type;
1374
internal
XamlType
RootType { get; private set; }
1376
internal
XamlType
GetTypeForName(string name)
1532
internal Dictionary<string,
XamlType
> _namedTypes;
1533
internal Dictionary<string,
XamlType
> NamedTypes
1538
_namedTypes = new Dictionary<string,
XamlType
>();
PresentationFramework.Aero (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (1)
21
public override
XamlType
GetKnownXamlType(String name)
PresentationFramework.Aero2 (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (1)
21
public override
XamlType
GetKnownXamlType(String name)
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (1)
21
public override
XamlType
GetKnownXamlType(String name)
PresentationFramework.Classic (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (1)
21
public override
XamlType
GetKnownXamlType(String name)
PresentationFramework.Luna (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (1)
21
public override
XamlType
GetKnownXamlType(String name)
PresentationFramework.Royale (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (1)
21
public override
XamlType
GetKnownXamlType(String name)
System.Xaml (553)
System\Windows\Markup\PropertyDefinition.cs (1)
20
public
XamlType
Type { get; set; }
System\Windows\Markup\XamlSetMarkupExtensionEventArgs.cs (2)
30
internal
XamlType
CurrentType { get; set; }
37
XamlType
baseType = CurrentType.BaseType;
System\Windows\Markup\XamlSetTypeConverterEventArgs.cs (2)
36
internal
XamlType
CurrentType { get; set; }
42
XamlType
baseType = CurrentType.BaseType;
System\Xaml\Context\NameFixupToken.cs (1)
54
public
XamlType
InstanceType { get; set; }
System\Xaml\Context\ObjectWriterContext.cs (21)
154
XamlType
xamlType = ServiceProvider_ResolveXamlType(qName);
164
internal
XamlType
ServiceProvider_ResolveXamlType(string qName)
169
internal AmbientPropertyValue ServiceProvider_GetFirstAmbientValue(IEnumerable<
XamlType
> ceilingTypes, XamlMember[] properties)
175
internal object ServiceProvider_GetFirstAmbientValue(
XamlType
[] types)
181
internal IEnumerable<AmbientPropertyValue> ServiceProvider_GetAllAmbientValues(IEnumerable<
XamlType
> ceilingTypes, XamlMember[] properties)
187
internal IEnumerable<object> ServiceProvider_GetAllAmbientValues(
XamlType
[] types)
193
internal IEnumerable<AmbientPropertyValue> ServiceProvider_GetAllAmbientValues(IEnumerable<
XamlType
> ceilingTypes, bool searchLiveStackOnly, IEnumerable<
XamlType
> types, XamlMember[] properties)
275
internal
XamlType
GetDestinationType()
298
private List<AmbientPropertyValue> FindAmbientValues(IEnumerable<
XamlType
> ceilingTypesEnumerable,
300
IEnumerable<
XamlType
> types,
312
List<
XamlType
> ceilingTypes = ceilingTypesEnumerable is not null ? new List<
XamlType
>(ceilingTypesEnumerable) : null;
331
foreach (
XamlType
type in types)
419
private List<object> FindAmbientValues(
XamlType
[] types, bool stopAfterFirst)
421
foreach (
XamlType
xamlType in types)
436
foreach (
XamlType
type in types)
508
public
XamlType
CurrentType
514
public
XamlType
ParentType
519
public
XamlType
GrandParentType
888
XamlType
xamlType = rootFrame.XamlType;
System\Xaml\Context\ServiceProviderContext.cs (8)
130
IEnumerable<
XamlType
> ceilingTypes,
147
object IAmbientProvider.GetFirstAmbientValue(params
XamlType
[] types)
151
foreach (
var
type in types)
164
IEnumerable<
XamlType
> ceilingTypes,
181
IEnumerable<object> IAmbientProvider.GetAllAmbientValues(params
XamlType
[] types)
185
foreach (
var
type in types)
198
IEnumerable<
XamlType
> ceilingTypes,
200
IEnumerable<
XamlType
> types,
System\Xaml\Context\XamlCommonFrame.cs (1)
50
public
XamlType
XamlType { get; set; }
System\Xaml\Context\XamlContext.cs (31)
43
public XamlMember GetXamlProperty(
XamlType
xamlType, string propertyName,
XamlType
rootObjectType)
53
public XamlMember GetXamlAttachableProperty(
XamlType
xamlType, string propertyName)
74
public XamlMember GetDottedProperty(
XamlType
tagType, string tagNamespace, XamlPropertyName propName, bool tagIsRoot)
81
XamlType
ownerType = null;
87
XamlType
rootTagType = tagIsRoot ? tagType : null;
125
XamlType
declaringType = ownerTypeMatchesGenericTagType ? tagType : ownerType;
157
public XamlMember GetNoDotAttributeProperty(
XamlType
tagType, XamlPropertyName propName,
167
XamlType
rootTagType = tagIsRoot ? tagType : null;
217
private
XamlType
GetXamlTypeOrUnknown(XamlTypeName typeName)
222
internal
XamlType
GetXamlType(XamlName typeName)
227
internal
XamlType
GetXamlType(XamlName typeName, bool returnUnknownTypesOnFailure)
243
internal
XamlType
GetXamlType(XamlTypeName typeName)
248
internal
XamlType
GetXamlType(XamlTypeName typeName, bool returnUnknownTypesOnFailure)
253
internal
XamlType
GetXamlType(XamlTypeName typeName, bool returnUnknownTypesOnFailure,
259
XamlType
xamlType = _schemaContext.GetXamlType(typeName);
267
XamlType
[] typeArgs = null;
271
typeArgs = new
XamlType
[typeNames.Count];
299
internal
XamlType
ResolveXamlType(string qName, bool skipVisibilityCheck)
320
internal virtual bool IsVisible(XamlMember member,
XamlType
rootObjectType)
325
private XamlMember CreateUnknownMember(
XamlType
declaringType, string name)
330
private XamlMember CreateUnknownAttachableMember(
XamlType
declaringType, string name)
335
private bool PropertyTypeMatchesGenericTagType(
XamlType
tagType, string tagNs, string propNs, string propTypeName)
348
XamlType
propertyType = GetXamlType(propNs, propTypeName, tagType.TypeArguments);
352
private XamlMember GetInstanceOrAttachableProperty(
XamlType
tagType, string propName,
XamlType
rootTagType)
366
private
XamlType
GetXamlType(string ns, string name, IList<
XamlType
> typeArguments)
368
XamlType
[] typeArgArray = new
XamlType
[typeArguments.Count];
370
XamlType
xamlType = _schemaContext.GetXamlType(ns, name, typeArgArray);
System\Xaml\Context\XamlParserContext.cs (5)
110
internal override bool IsVisible(XamlMember member,
XamlType
rootObjectType)
156
internal void InitBracketCharacterCacheForType(
XamlType
extensionType)
165
internal void InitLongestConstructor(
XamlType
xamlType)
189
public
XamlType
CurrentType
284
public
XamlType
CurrentPreviousChildType
System\Xaml\Context\XamlParserFrame.cs (1)
30
public
XamlType
PreviousChildType { get; set; }
System\Xaml\IAmbientProvider.cs (6)
11
AmbientPropertyValue GetFirstAmbientValue(IEnumerable<
XamlType
> ceilingTypes,
13
object GetFirstAmbientValue(params
XamlType
[] types);
15
IEnumerable<AmbientPropertyValue> GetAllAmbientValues(IEnumerable<
XamlType
> ceilingTypes,
18
IEnumerable<object> GetAllAmbientValues(params
XamlType
[] types);
20
IEnumerable<AmbientPropertyValue> GetAllAmbientValues(IEnumerable<
XamlType
> ceilingTypes,
22
IEnumerable<
XamlType
> types,
System\Xaml\InfosetObjects\DeferredWriter.cs (2)
68
public override void WriteStartObject(
XamlType
xamlType)
73
void WriteObject(
XamlType
xamlType, bool fromMember, string methodName)
System\Xaml\InfosetObjects\XamlNodes.cs (3)
66
Debug.Assert(data is
XamlType
, "XamlNode ctor, StartObject data is not a XamlType");
171
public
XamlType
XamlType
177
return (
XamlType
)_data;
System\Xaml\InfosetObjects\XamlObjectWriter.cs (38)
267
XamlType
xamlType = (_context.CurrentType is null && _context.Depth > 1)
305
public override void WriteStartObject(
XamlType
xamlType)
365
XamlType
rootType = GetXamlType(_rootObjectInstance.GetType());
436
XamlType
xamlType = _context.CurrentType;
660
XamlType
propertyXamlType = property.Type;
759
XamlType
valueXamlType = GetXamlType(value.GetType());
770
XamlType
valueXamlType = GetXamlType(value.GetType());
850
XamlType
parentXamlType = parentProperty.Type;
1043
private object GetKeyFromInstance(object instance,
XamlType
instanceType, IAddLineInfo lineInfo)
1054
private
XamlType
GetXamlType(Type clrType)
1056
XamlType
result = SchemaContext.GetXamlType(clrType);
1089
bool IsDirectiveAllowedOnNullInstance(XamlMember xamlMember,
XamlType
xamlType)
1109
XamlType
currentType = ctx.CurrentType;
1149
XamlType
ownerType;
1168
XamlType
instType = GetXamlType(inst.GetType());
1201
XamlType
meType = ctx.CurrentType;
1209
IList<
XamlType
> paramTypes = meType.GetPositionalParameters(rawArgs.Count);
1226
XamlType
pparamType = paramTypes[i];
1239
XamlType
xamlType = ctx.ParentType;
1300
XamlType
propertyType = property.Type;
1320
XamlType
declaringType = null;
1332
XamlType
grandParentXamlType = ctx.GrandParentType;
1401
XamlType
dictionaryType = ctx.GrandParentType;
1428
XamlType
xamlType = ctx.CurrentType;
1449
XamlType
xamlType = ctx.CurrentType;
1485
XamlType
xamlType = onParent ? ctx.ParentType : ctx.CurrentType;
1584
XamlType
xamlType = onParent ? ctx.ParentType : ctx.CurrentType;
1655
XamlType
declaringType = null;
1738
XamlType
type = ctx.CurrentType;
1754
XamlType
collectionType = ctx.ParentType;
1755
XamlType
currentType = ctx.CurrentType;
1809
XamlType
itemType = ctx.ParentType.ItemType;
1952
XamlType
ppXamlType = parentProperty.Type;
2008
XamlType
parentType = ctx.ParentType;
2109
object inst,
XamlType
xamlType,
2567
private void ExecutePendingAdds(
XamlType
instanceType, object instance)
2574
XamlType
itemType = pendingAdd.ItemType ?? instanceType.ItemType;
2627
public
XamlType
ItemType { get; set; } // Need this because Add() overload resolution
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
284
public override
XamlType
Type
System\Xaml\Parser\MePullParser.cs (2)
95
XamlType
xamlType = _tokenizer.TokenType;
448
private XamlNode Logic_StartElement(
XamlType
xamlType, string xamlNamespace)
System\Xaml\Parser\MeScanner.cs (5)
56
XamlType
_tokenXamlType;
103
public
XamlType
TokenType
294
XamlType
xamlType = _context.GetXamlType(typeName, false);
318
XamlType
declaringType;
319
XamlType
tagType = _context.CurrentType;
System\Xaml\Parser\XamlAttribute.cs (3)
46
public void Initialize(XamlParserContext context,
XamlType
tagType, string ownerNamespace, bool tagIsRoot)
143
XamlType
tagType, string tagNamespace, bool tagIsRoot)
154
XamlType
attachedOwnerType = new XamlType(string.Empty, propName.OwnerName, null, context.SchemaContext);
System\Xaml\Parser\XamlPullParser.cs (18)
268
XamlType
currentType = _context.CurrentType;
425
XamlType
currentType = _context.CurrentType;
774
private XamlNode Logic_StartObject(
XamlType
xamlType, string xamlNamespace)
786
XamlType
xamlType = _context.CurrentType;
837
XamlType
memberXamlType = member.Type;
864
private XamlNode Logic_StartInitProperty(
XamlType
ownerType)
892
XamlType
previousObject = _context.CurrentPreviousChildType;
902
XamlType
nextXamlType = _xamlScanner.PeekType;
912
private XamlNode Logic_StartGetObjectFromMember(
XamlType
realType)
922
private XamlNode Logic_StartItemsProperty(
XamlType
collectionType)
934
private
XamlType
_arrayExtensionType;
935
private
XamlType
ArrayExtensionType
976
XamlType
currentType = _context.CurrentType;
979
XamlType
propertyType = currentProperty.Type;
981
XamlType
valueElementType = (_xamlScanner.NodeType == ScannerNodeType.TEXT)
1087
XamlType
collectionType = _context.CurrentMember == XamlLanguage.Items ? _context.CurrentType : _context.CurrentMember.Type;
1169
XamlType
propertyType = property.Type;
1172
foreach (
XamlType
allowedType in propertyType.AllowedContentTypes)
System\Xaml\Parser\XamlScanner.cs (5)
72
public
XamlType
PeekType
86
public
XamlType
Type
321
XamlType
errType = CreateErrorXamlType(name, string.Empty);
407
private void ReadPropertyElement(XamlPropertyName name,
XamlType
tagType, string tagNamespace, bool isEmptyTag)
533
private
XamlType
CreateErrorXamlType(XamlName name, string xmlns)
System\Xaml\Parser\XamlScannerNode.cs (1)
31
public
XamlType
Type { get; set; }
System\Xaml\Parser\XamlScannerStack.cs (4)
13
public
XamlType
XamlType { get; set; }
19
public XamlScannerFrame(
XamlType
xamlType, string ns)
36
public void Push(
XamlType
type, string ns)
54
public
XamlType
CurrentType
System\Xaml\ReaderBaseDelegate.cs (1)
42
public override
XamlType
Type
System\Xaml\Replacements\TypeTypeConverter.cs (1)
65
XamlType
xamlType = schemaContextProvider.SchemaContext.GetXamlType(type);
System\Xaml\Runtime\ClrObjectRuntime.cs (12)
43
public override object CreateInstance(
XamlType
xamlType, object[] args)
67
protected virtual object CreateInstanceWithCtor(
XamlType
xamlType, object[] args)
72
public override object CreateWithFactoryMethod(
XamlType
xamlType, string methodName, object[] args)
299
public override void Add(object collection,
XamlType
collectionType, object value,
XamlType
valueXamlType)
315
public override void AddToDictionary(object collection,
XamlType
dictionaryType, object value,
XamlType
valueXamlType, object key)
331
public override IList<object> GetCollectionItems(object collection,
XamlType
collectionType)
354
public override IEnumerable<DictionaryEntry> GetDictionaryItems(object dictionary,
XamlType
dictionaryType)
457
public override void InitializationGuard(
XamlType
xamlType, object obj, bool begin)
501
public override void SetUriBase(
XamlType
xamlType, object obj, Uri baseUri)
688
private IEnumerator GetItems(object collection,
XamlType
collectionType)
System\Xaml\Runtime\DynamicMethodRuntime.cs (1)
186
protected override object CreateInstanceWithCtor(
XamlType
xamlType, object[] args)
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (11)
61
public override void Add(object collection,
XamlType
collectionType, object value,
XamlType
valueXamlType)
66
public override void AddToDictionary(object collection,
XamlType
dictionaryType, object value,
XamlType
valueXamlType, object key)
135
public override object CreateInstance(
XamlType
xamlType, object[] args)
164
public override object CreateWithFactoryMethod(
XamlType
xamlType, string methodName, object[] args)
310
public override void InitializationGuard(
XamlType
xamlType, object obj, bool begin)
322
public override void SetUriBase(
XamlType
xamlType, object obj, Uri baseUri)
391
public override IList<object> GetCollectionItems(object collection,
XamlType
collectionType)
396
public override IEnumerable<DictionaryEntry> GetDictionaryItems(object dictionary,
XamlType
dictionaryType)
425
private static bool HasDefaultInvoker(
XamlType
xamlType)
System\Xaml\Schema\MemberReflector.cs (4)
62
internal MemberReflector(
XamlType
type, XamlValueConverter<TypeConverter> typeConverter)
94
s_UnknownReflector.DependsOn =
XamlType
.EmptyList<XamlMember>.Value;
185
internal
XamlType
Type { get; set; }
187
internal
XamlType
TargetType { get; set; }
System\Xaml\Schema\TypeReflector.cs (15)
40
private ThreadSafeDictionary<int, IList<
XamlType
>> _positionalParameterTypes;
67
private NullableReference<
XamlType
> _baseType;
164
internal IList<
XamlType
> AllowedContentTypes { get; set; }
179
internal
XamlType
BaseType
206
internal IList<
XamlType
> ContentWrappers { get; set; }
218
internal
XamlType
KeyType { get; set; }
233
internal
XamlType
ItemType { get; set; }
235
internal
XamlType
MarkupExtensionReturnType { get; set; }
250
internal Dictionary<int, IList<
XamlType
>> ReflectedPositionalParameters { get; set; }
286
internal bool TryGetPositionalParameters(int paramCount, out IList<
XamlType
> result)
297
new ThreadSafeDictionary<int, IList<
XamlType
>>(), null);
302
internal IList<
XamlType
> TryAddPositionalParameters(int paramCount, IList<
XamlType
> paramList)
393
internal static XamlMember LookupNameScopeProperty(
XamlType
xamlType)
410
XamlType
ownerXamlType = xamlType.SchemaContext.GetXamlType(ownerType);
System\Xaml\Schema\XamlDirective.cs (3)
33
public XamlDirective(IEnumerable<string> xamlNamespaces, string name,
XamlType
xamlType,
172
protected sealed override
XamlType
LookupTargetType()
183
protected sealed override
XamlType
LookupType()
System\Xaml\Schema\XamlNamespace.cs (15)
19
private ConcurrentDictionary<string,
XamlType
> _typeCache;
20
private ICollection<
XamlType
> _allPublicTypes;
46
_typeCache = XamlSchemaContext.CreateDictionary<string,
XamlType
>();
51
public ICollection<
XamlType
> GetAllXamlTypes() => _allPublicTypes ??= LookupAllTypes();
53
public
XamlType
GetXamlType(string typeName, params
XamlType
[] typeArgs)
69
private
XamlType
TryGetXamlType(string typeName)
72
XamlType
xamlType;
95
private
XamlType
TryGetXamlType(string typeName, Type[] typeArgs)
106
XamlType
openXamlType = TryGetXamlType(typeName);
152
private Type[] ConvertArrayOfXamlTypesToTypes(
XamlType
[] typeArgs)
199
private ICollection<
XamlType
> LookupAllTypes()
201
List<
XamlType
> xamlTypeList = new List<
XamlType
>();
221
XamlType
xamlType = SchemaContext.GetXamlType(t);
System\Xaml\Schema\XamlTypeInvoker.cs (10)
18
private Dictionary<
XamlType
, MethodInfo> _addMethods;
20
private
XamlType
_xamlType;
30
public XamlTypeInvoker(
XamlType
type)
72
XamlType
itemType;
104
XamlType
itemType;
135
public virtual MethodInfo GetAddMethod(
XamlType
contentType)
160
Dictionary<
XamlType
, MethodInfo> addMethods = new Dictionary<
XamlType
, MethodInfo>();
162
foreach (
XamlType
type in _xamlType.AllowedContentTypes)
183
foreach (KeyValuePair<
XamlType
, MethodInfo> pair in _addMethods)
System\Xaml\Schema\XamlTypeTypeConverter.cs (9)
25
XamlType
result = ConvertStringToXamlType(context, typeName);
42
XamlType
xamlType = value as
XamlType
;
56
internal static string ConvertXamlTypeToString(ITypeDescriptorContext context,
XamlType
xamlType)
67
private static
XamlType
ConvertStringToXamlType(ITypeDescriptorContext context, string typeName)
92
private static
XamlType
GetXamlTypeOrUnknown(XamlSchemaContext schemaContext, XamlTypeName typeName)
94
XamlType
result = schemaContext.GetXamlType(typeName);
99
XamlType
[] typeArgs = null;
102
typeArgs = new
XamlType
[typeName.TypeArguments.Count];
System\Xaml\Schema\XamlValueConverter.cs (3)
23
public
XamlType
TargetType { get; }
25
public XamlValueConverter(Type converterType,
XamlType
targetType)
30
public XamlValueConverter(Type converterType,
XamlType
targetType, string name)
System\Xaml\WriterDelegate.cs (1)
34
public override void WriteStartObject(
XamlType
xamlType)
System\Xaml\XamlBackgroundReader.cs (1)
280
public override
XamlType
Type
System\Xaml\XamlException.cs (4)
141
public
XamlType
ParentType { get; set; }
145
public XamlDuplicateMemberException(XamlMember member,
XamlType
type)
163
ParentType = (
XamlType
)info.GetValue("ParentType", typeof(
XamlType
));
System\Xaml\XamlLanguage.cs (92)
59
private static Lazy<
XamlType
> s_array =
60
new Lazy<
XamlType
>(() => GetXamlType(typeof(ArrayExtension)));
61
private static Lazy<
XamlType
> s_null =
62
new Lazy<
XamlType
>(() => GetXamlType(typeof(NullExtension)));
63
private static Lazy<
XamlType
> s_reference =
64
new Lazy<
XamlType
>(() => GetXamlType(typeof(Reference)));
65
private static Lazy<
XamlType
> s_static =
66
new Lazy<
XamlType
>(() => GetXamlType(typeof(StaticExtension)));
67
private static Lazy<
XamlType
> s_type =
68
new Lazy<
XamlType
>(() => GetXamlType(typeof(TypeExtension)));
69
private static Lazy<
XamlType
> s_string =
70
new Lazy<
XamlType
>(() => GetXamlType(typeof(string)));
71
private static Lazy<
XamlType
> s_double =
72
new Lazy<
XamlType
>(() => GetXamlType(typeof(double)));
73
private static Lazy<
XamlType
> s_int32 =
74
new Lazy<
XamlType
>(() => GetXamlType(typeof(int)));
75
private static Lazy<
XamlType
> s_boolean =
76
new Lazy<
XamlType
>(() => GetXamlType(typeof(bool)));
77
private static Lazy<
XamlType
> s_member =
78
new Lazy<
XamlType
>(() => GetXamlType(typeof(MemberDefinition)));
79
private static Lazy<
XamlType
> s_property =
80
new Lazy<
XamlType
>(() => GetXamlType(typeof(PropertyDefinition)));
81
private static Lazy<
XamlType
> s_xDataHolder =
82
new Lazy<
XamlType
>(() => GetXamlType(typeof(XData)));
84
private static Lazy<
XamlType
> s_object =
85
new Lazy<
XamlType
>(() => GetXamlType(typeof(object)));
86
private static Lazy<
XamlType
> s_listOfObject =
87
new Lazy<
XamlType
>(() => GetXamlType(typeof(List<object>)));
88
private static Lazy<
XamlType
> s_listOfMembers =
89
new Lazy<
XamlType
>(() => GetXamlType(typeof(List<MemberDefinition>)));
90
private static Lazy<
XamlType
> s_listOfAttributes =
91
new Lazy<
XamlType
>(() => GetXamlType(typeof(List<Attribute>)));
93
private static Lazy<
XamlType
> s_markupExtension =
94
new Lazy<
XamlType
>(() => GetXamlType(typeof(MarkupExtension)));
95
private static Lazy<
XamlType
> s_iNameScope =
96
new Lazy<
XamlType
>(() => GetXamlType(typeof(INameScope)));
97
private static Lazy<
XamlType
> s_iXmlSerializable =
98
new Lazy<
XamlType
>(() => GetXamlType(typeof(IXmlSerializable)), true);
100
private static Lazy<
XamlType
> s_positionalParameterDescriptor =
101
new Lazy<
XamlType
>(() => GetXamlType(typeof(PositionalParameterDescriptor)), true);
103
private static Lazy<
XamlType
> s_char =
104
new Lazy<
XamlType
>(() => GetXamlType(typeof(Char)), true);
105
private static Lazy<
XamlType
> s_single =
106
new Lazy<
XamlType
>(() => GetXamlType(typeof(Single)), true);
107
private static Lazy<
XamlType
> s_byte =
108
new Lazy<
XamlType
>(() => GetXamlType(typeof(Byte)), true);
109
private static Lazy<
XamlType
> s_int16 =
110
new Lazy<
XamlType
>(() => GetXamlType(typeof(Int16)), true);
111
private static Lazy<
XamlType
> s_int64 =
112
new Lazy<
XamlType
>(() => GetXamlType(typeof(Int64)), true);
113
private static Lazy<
XamlType
> s_decimal =
114
new Lazy<
XamlType
>(() => GetXamlType(typeof(Decimal)), true);
115
private static Lazy<
XamlType
> s_uri =
116
new Lazy<
XamlType
>(() => GetXamlType(typeof(Uri)), true);
117
private static Lazy<
XamlType
> s_timespan =
118
new Lazy<
XamlType
>(() => GetXamlType(typeof(TimeSpan)), true);
120
private static Lazy<ReadOnlyCollection<
XamlType
>> s_allTypes =
121
new Lazy<ReadOnlyCollection<
XamlType
>>(GetAllTypes);
189
public static
XamlType
Array { get { return s_array.Value; } }
190
public static
XamlType
Member { get { return s_member.Value; } }
191
public static
XamlType
Null { get { return s_null.Value; } }
192
public static
XamlType
Property { get { return s_property.Value; } }
193
public static
XamlType
Reference { get { return s_reference.Value; } }
194
public static
XamlType
Static { get { return s_static.Value; } }
195
public static
XamlType
Type { get { return s_type.Value; } }
196
public static
XamlType
String { get { return s_string.Value; } }
197
public static
XamlType
Double { get { return s_double.Value; } }
198
public static
XamlType
Int32 { get { return s_int32.Value; } }
199
public static
XamlType
Boolean { get { return s_boolean.Value; } }
200
public static
XamlType
XData { get { return s_xDataHolder.Value; } }
202
public static
XamlType
Object { get { return s_object.Value; } }
203
public static
XamlType
Char { get { return s_char.Value; } }
204
public static
XamlType
Single { get { return s_single.Value; } }
205
public static
XamlType
Byte { get { return s_byte.Value; } }
206
public static
XamlType
Int16 { get { return s_int16.Value; } }
207
public static
XamlType
Int64 { get { return s_int64.Value; } }
208
public static
XamlType
Decimal { get { return s_decimal.Value; } }
209
public static
XamlType
Uri { get { return s_uri.Value; } }
210
public static
XamlType
TimeSpan { get { return s_timespan.Value; } }
212
public static ReadOnlyCollection<
XamlType
> AllTypes { get { return s_allTypes.Value; } }
243
internal static
XamlType
MarkupExtension { get { return s_markupExtension.Value; } }
244
internal static
XamlType
INameScope { get { return s_iNameScope.Value; } }
245
internal static
XamlType
PositionalParameterDescriptor { get { return s_positionalParameterDescriptor.Value; } }
247
internal static
XamlType
IXmlSerializable { get { return s_iXmlSerializable.Value; } }
313
internal static
XamlType
LookupXamlType(string typeNamespace, string typeName)
408
private static ReadOnlyCollection<
XamlType
> GetAllTypes()
410
XamlType
[] result = new
XamlType
[] { Array, Member, Null, Property, Reference, Static, Type, String, Double, Int16, Int32, Int64, Boolean, XData, Object, Char, Single, Byte, Decimal, Uri, TimeSpan };
411
return new ReadOnlyCollection<
XamlType
>(result);
445
private static XamlDirective GetXamlDirective(string name,
XamlType
xamlType,
458
private static
XamlType
GetXamlType(Type type)
460
XamlType
result = s_schemaContext.Value.GetXamlType(type);
System\Xaml\XamlMarkupExtensionWriter.cs (7)
93
string LookupPrefix(
XamlType
type)
143
public override void WriteStartObject(
XamlType
type)
202
public
XamlType
XamlType
214
public virtual void WriteStartObject(XamlMarkupExtensionWriter writer,
XamlType
type)
306
public override void WriteStartObject(XamlMarkupExtensionWriter writer,
XamlType
type)
500
public override void WriteStartObject(XamlMarkupExtensionWriter writer,
XamlType
type)
570
public override void WriteStartObject(XamlMarkupExtensionWriter writer,
XamlType
type)
System\Xaml\XamlMember.cs (9)
20
private
XamlType
_declaringType;
34
public XamlMember(string name,
XamlType
declaringType, bool isAttachable)
157
public
XamlType
DeclaringType { get { return _declaringType; } }
218
public
XamlType
TargetType
239
public
XamlType
Type
349
_reflector.DependsOn = LookupDependsOn() ??
XamlType
.EmptyList<XamlMember>.Value;
564
return
XamlType
.GetReadOnly(result);
643
protected virtual
XamlType
LookupTargetType()
717
protected virtual
XamlType
LookupType()
System\Xaml\XamlObjectReader.cs (40)
137
public override
XamlType
Type
394
object sourceOrValue, XamlMember property,
XamlType
propertyType, SerializerContext context)
411
XamlType
keyType = propertyType.KeyType;
439
XamlType
actualKeyType = null;
476
XamlType
typeOfValue = context.GetXamlType(entry.Value.GetType());
640
XamlType
declaringType = xamlProperty.DeclaringType;
667
var
memberType = memberInfo.XamlNode.Member.Type;
702
public static MemberMarkupInfo ForSequenceItems(object sourceOrValue, XamlMember property,
XamlType
xamlType, SerializerContext context, bool allowReadOnly)
754
foreach (
var
contentWrapperType in xamlType.ContentWrappers)
804
static bool ShouldUnwrapDueToWhitespace(string value,
XamlType
xamlType, bool isFirstElementOfCollection, bool isLastElementOfCollection)
1162
var
type = XamlNode.XamlType;
1176
void FindNamespaceForTypeArguments(IList<
XamlType
> types, SerializerContext context)
1183
foreach (
var
type in types)
1190
void AddItemsProperty(object value, SerializerContext context,
XamlType
xamlType)
1321
bool TryAddPositionalParameters(
XamlType
xamlType, MemberInfo member, ICollection arguments, SerializerContext context)
1335
XamlType
paramXamlType = context.GetXamlType(cstrParams[i++].ParameterType);
1418
bool TryGetDefaultConstructorInfo(
XamlType
type, out MemberInfo member, out ICollection arguments, out bool isComplete)
1429
var
valueXamlType = context.GetXamlType(valueType);
1462
XamlType
xamlType)
1509
void AddRecordConstructionMembers(object value,
XamlType
valueXamlType, SerializerContext context,
1586
bool IsPropertyContent(MemberMarkupInfo propertyInfo,
XamlType
containingType)
1602
void GetConstructorInfo(object value,
XamlType
valueXamlType, SerializerContext context, out MemberInfo member, out ICollection arguments, out bool isComplete)
1701
var
xamlType = objInfo.XamlNode.XamlType;
1762
var
xamlType = context.LocalAssemblyAwareGetXamlType(Object.GetType());
1800
var
type = context.LocalAssemblyAwareGetXamlType(value.GetType());
1802
var
elementType = type.ItemType;
1866
XamlType
owningType = context.GetXamlType(ap.Key.DeclaringType);
1926
XamlType
valueType = context.GetXamlType(value.GetType());
2012
XamlType
xamlType = context.LocalAssemblyAwareGetXamlType(value.GetType());
2054
var
xamlType = context.LocalAssemblyAwareGetXamlType(originalValue.GetType());
2314
static List<XamlMember> GetXamlSerializableProperties(
XamlType
type, SerializerContext context)
2622
public
XamlType
GetXamlType(Type clrType)
2624
XamlType
result = schemaContext.GetXamlType(clrType);
2633
public
XamlType
LocalAssemblyAwareGetXamlType(Type clrType)
2635
XamlType
result = GetXamlType(clrType);
2686
XamlType
valueXamlType = context.GetXamlType(value.GetType());
2718
public string ConvertXamlTypeToString(
XamlType
type)
2728
XamlType
type = GetXamlType(objectToName.GetType());
3225
XamlType
baseType = member.DeclaringType.BaseType;
3250
private static XamlMember GetExcludedReadOnlyMember(
XamlType
type, string name)
System\Xaml\XamlReader.cs (1)
19
public abstract
XamlType
Type { get; }
System\Xaml\XamlRuntime.cs (10)
24
abstract public object CreateInstance(
XamlType
xamlType, object[] args);
26
abstract public object CreateWithFactoryMethod(
XamlType
xamlType, string methodName, object[] args);
59
abstract public void SetUriBase(
XamlType
xamlType, object obj, Uri baseUri);
63
abstract public void Add(object collection,
XamlType
collectionType, object value,
XamlType
valueXamlType);
65
abstract public void AddToDictionary(object collection,
XamlType
dictionaryType, object value,
XamlType
valueXamlType, object key);
67
abstract public IList<object> GetCollectionItems(object collection,
XamlType
collectionType);
69
abstract public IEnumerable<DictionaryEntry> GetDictionaryItems(object dictionary,
XamlType
dictionaryType);
77
abstract public void InitializationGuard(
XamlType
xamlType, object obj, bool begin);
System\Xaml\XamlSchemaContext.cs (25)
95
public virtual ICollection<
XamlType
> GetAllXamlTypes(string xamlNamespace)
262
public
XamlType
GetXamlType(XamlTypeName xamlTypeName)
274
XamlType
[] typeArgs = null;
277
typeArgs = new
XamlType
[xamlTypeName.TypeArguments.Count];
294
protected internal virtual
XamlType
GetXamlType(string xamlNamespace, string name, params
XamlType
[] typeArguments)
300
foreach (
XamlType
typeArg in typeArguments)
313
XamlType
result = null;
465
private ConcurrentDictionary<Type,
XamlType
> _masterTypeList;
466
private ConcurrentDictionary<ReferenceEqualityTuple<Type,
XamlType
, Type>, object> _masterValueConverterList;
468
private ConcurrentDictionary<
XamlType
, Dictionary<string,SpecialBracketCharacters> > _masterBracketCharacterCache;
477
private ConcurrentDictionary<
XamlType
, Dictionary<string, SpecialBracketCharacters> > MasterBracketCharacterCache
482
Interlocked.CompareExchange(ref _masterBracketCharacterCache, CreateDictionary<
XamlType
, Dictionary<string, SpecialBracketCharacters>>(), null);
488
private ConcurrentDictionary<Type,
XamlType
> MasterTypeList
493
Interlocked.CompareExchange(ref _masterTypeList, CreateDictionary<Type,
XamlType
>(ReferenceEqualityComparer.Instance), null);
499
private ConcurrentDictionary<ReferenceEqualityTuple<Type,
XamlType
, Type>, object> MasterValueConverterList
504
Interlocked.CompareExchange(ref _masterValueConverterList, CreateDictionary<ReferenceEqualityTuple<Type,
XamlType
, Type>, object>(), null);
520
public virtual
XamlType
GetXamlType(Type type)
527
internal
XamlType
GetXamlType(Type type, string alias)
530
XamlType
xamlType = null;
544
internal Dictionary<string, SpecialBracketCharacters> InitBracketCharacterCacheForType(
XamlType
type)
565
private Dictionary<string, SpecialBracketCharacters> BuildBracketCharacterCacheForType(
XamlType
type)
592
Type converterType,
XamlType
targetType)
595
var key = new ReferenceEqualityTuple<Type,
XamlType
, Type>(converterType, targetType, typeof(TConverterBase));
888
internal ReadOnlyCollection<string> GetXamlNamespaces(
XamlType
type)
System\Xaml\XamlSubreader.cs (1)
56
public override
XamlType
Type
System\Xaml\XamlType.cs (68)
19
public class XamlType : IEquatable<
XamlType
>
24
readonly IList<
XamlType
> _typeArguments;
39
protected XamlType(string typeName, IList<
XamlType
> typeArguments, XamlSchemaContext schemaContext)
46
public XamlType(string unknownTypeNamespace, string unknownTypeName, IList<
XamlType
> typeArguments, XamlSchemaContext schemaContext)
79
public
XamlType
BaseType
141
public IList<
XamlType
> TypeArguments
188
public
XamlType
KeyType
205
public
XamlType
ItemType
222
public IList<
XamlType
> AllowedContentTypes
236
EmptyList<
XamlType
>.Value;
242
public IList<
XamlType
> ContentWrappers
254
EmptyList<
XamlType
>.Value;
312
public
XamlType
MarkupExtensionReturnType
408
public virtual bool CanAssignTo(
XamlType
xamlType)
416
XamlType
curType = this;
423
baseUnderlyingType.Assembly == typeof(
XamlType
).Assembly)
442
public IList<
XamlType
> GetPositionalParameters(int parameterCount)
445
IList<
XamlType
> result;
681
protected virtual IList<
XamlType
> LookupAllowedContentTypes()
683
IList<
XamlType
> contentWrappers = ContentWrappers ?? EmptyList<
XamlType
>.Value;
684
List<
XamlType
> result = new List<
XamlType
>(contentWrappers.Count + 1);
687
foreach (
XamlType
contentWrapper in contentWrappers)
692
XamlType
contentType = contentWrapper.ContentProperty.Type;
703
protected virtual
XamlType
LookupBaseType()
767
protected virtual IList<
XamlType
> LookupContentWrappers()
769
List<
XamlType
> contentWrappers = null;
776
contentWrappers = new List<
XamlType
>(wrapperTypes.Count);
786
IList<
XamlType
> baseWrappers = BaseType.ContentWrappers;
912
protected virtual
XamlType
LookupKeyType()
930
protected virtual
XamlType
LookupItemType()
960
protected virtual
XamlType
LookupMarkupExtensionReturnType()
968
XamlType
xamlReturnType = SchemaContext.GetXamlType(returnType);
1083
protected virtual IList<
XamlType
> LookupPositionalParameters(int parameterCount)
1099
IList<
XamlType
> result;
1183
XamlType
innerXamlType = SchemaContext.GetXamlType(typeArgs[0]);
1223
XamlType
innerXamlType = SchemaContext.GetXamlType(typeArgs[0]);
1467
private static ReadOnlyCollection<
XamlType
> GetTypeArguments(IList<
XamlType
> typeArguments)
1473
foreach (
XamlType
typeArg in typeArguments)
1480
return new List<
XamlType
>(typeArguments).AsReadOnly();
1483
private static ReadOnlyCollection<
XamlType
> GetTypeArguments(Type type, XamlSchemaContext schemaContext)
1495
XamlType
[] result = new
XamlType
[types.Length];
1557
Debug.Assert(GetType() != typeof(
XamlType
), "Default GetAllMembers logic should have already captured all writeable properties");
1563
private Dictionary<int, IList<
XamlType
>> LookupAllPositionalParameters()
1570
Dictionary<int, IList<
XamlType
>> result = new Dictionary<int,IList<
XamlType
>>();
1571
XamlType
typeOfType = SchemaContext.GetXamlType(typeof(Type));
1572
XamlType
[] typeVector = new
XamlType
[] { typeOfType };
1577
Dictionary<int, IList<
XamlType
>> ctorDict = new Dictionary<int, IList<
XamlType
>>();
1581
XamlType
[] typeVector = new
XamlType
[parameterInfos.Length];
1586
XamlType
xamlType = SchemaContext.GetXamlType(type);
1699
XamlType
baseType = BaseType;
1713
XamlType
objXamlType = obj as
XamlType
;
1728
foreach (
XamlType
typeArgument in _typeArguments)
1746
public bool Equals(
XamlType
other)
1753
public static bool operator ==(
XamlType
xamlType1,
XamlType
xamlType2)
1794
public static bool operator !=(
XamlType
xamlType1,
XamlType
xamlType2)
1799
private static bool TypeArgumentsAreEqual(
XamlType
xamlType1,
XamlType
xamlType2)
System\Xaml\XamlTypeName.cs (2)
40
public XamlTypeName(
XamlType
xamlType)
47
foreach (
XamlType
argumentType in xamlType.TypeArguments)
System\Xaml\XamlWriter.cs (1)
12
public abstract void WriteStartObject(
XamlType
type);
System\Xaml\XamlXmlWriter.cs (45)
148
XamlType
type = null;
159
public override void WriteStartObject(
XamlType
type)
339
static
XamlType
GetContainingXamlType(XamlXmlWriter writer)
343
XamlType
containingXamlType = null;
534
void WriteTypeArguments(
XamlType
type)
546
void WriteUndefinedNamespaces(
XamlType
type)
566
foreach (
XamlType
arg in type.TypeArguments)
573
bool TypeArgumentsContainNamespaceThatNeedsDefinition(
XamlType
type)
588
foreach (
XamlType
arg in type.TypeArguments)
600
string BuildTypeArgumentsString(IList<
XamlType
> typeArguments)
603
foreach (
XamlType
type in typeArguments)
616
string ConvertXamlTypeToString(
XamlType
typeArgument)
623
void ConvertXamlTypeToStringHelper(
XamlType
type, StringBuilder builder)
638
foreach (
XamlType
arg in type.TypeArguments)
657
static internal string GetTypeName(
XamlType
type)
672
public
XamlType
Type
769
public virtual void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
806
XamlType
type = frame.Type;
811
XamlType
xamlType = property.IsAttachable ? property.DeclaringType : type;
824
XamlType
owningType = frame.Type;
857
protected static void WriteStartElementForObject(XamlXmlWriter writer,
XamlType
type)
892
XamlType
type = null;
944
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1015
XamlType
parentType = writer.namespaceScopes.Peek().Type;
1022
XamlType
containingType = writer.namespaceScopes.Peek().Type;
1119
XamlType
parentType = writer.namespaceScopes.Peek().Type;
1156
XamlType
containingType = writer.namespaceScopes.Peek().Type;
1255
XamlType
containingXamlType = GetContainingXamlType(writer);
1349
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1376
XamlType
memberType = frame.Member.Type;
1428
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1471
XamlType
containingXamlType = GetContainingXamlType(writer);
1476
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1517
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1589
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1647
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1696
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1745
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1779
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
1885
XamlType
objectXamlType = frame.Type;
1938
ParameterInfo[] GetParametersInfo(
XamlType
objectXamlType, int numOfParameters)
1940
IList<
XamlType
> paramXamlTypes = objectXamlType.GetPositionalParameters(numOfParameters);
1950
foreach (
var
xamlType in paramXamlTypes)
1973
List<XamlMember> GetAllPropertiesWithCAA(
XamlType
objectXamlType)
2021
public override void WriteObject(XamlXmlWriter writer,
XamlType
type, bool isObjectFromMember)
System.Xaml.Tests (3)
System\Windows\Markup\XamlSetMarkupExtensionEventArgsTests.cs (1)
14
var
type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext());
System\Windows\Markup\XamlSetTypeConverterEventArgsTests.cs (1)
16
var
type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext());
System\Windows\Markup\XamlSetValueEventArgsTests.cs (1)
14
var
type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext());