23 references to ParentType
System.Xaml (23)
System\Xaml\Context\ServiceProviderContext.cs (2)
334
token.Target.InstanceType = _xamlContext.
ParentType
;
344
token.Target.InstanceType = _xamlContext.
ParentType
;
System\Xaml\InfosetObjects\XamlObjectWriter.cs (21)
274
? _context.
ParentType
522
_context.
ParentType
));
1270
XamlType xamlType = ctx.
ParentType
;
1361
declaringType = ctx.
ParentType
;
1526
XamlType xamlType = onParent ? ctx.
ParentType
: ctx.CurrentType;
1624
XamlType xamlType = onParent ? ctx.
ParentType
: ctx.CurrentType;
1657
Runtime.SetUriBase(ctx.
ParentType
, ctx.ParentInstance, ctx.BaseUri);
1703
declaringType = ctx.
ParentType
;
1750
ctx.CurrentType = ctx.
ParentType
.ItemType;
1782
bool inDictionary = ((ctx.ParentProperty == XamlLanguage.Items) && ctx.
ParentType
.IsDictionary);
1799
XamlType collectionType = ctx.
ParentType
;
1852
Debug.Assert(ctx.
ParentType
.IsCollection, "Logic_WillParentCollectionAdd called on a non-collection");
1856
XamlType itemType = ctx.
ParentType
.ItemType;
1881
Runtime.AddToDictionary(ctx.ParentCollection, ctx.
ParentType
, value, ctx.CurrentType, key);
1900
Debug.WriteLine(SR.Format(SR.DictionaryFirstChanceException, ctx.
ParentType
, key, ctx.
ParentType
.KeyType));
1925
Runtime.AddToDictionary(ctx.ParentCollection, ctx.
ParentType
, value, ctx.CurrentType, key);
2042
ctx.
ParentType
));
2067
XamlType parentType = ctx.
ParentType
;
2163
RegisterName(ctx, name, ctx.ParentInstance, ctx.
ParentType
,
2274
token.Target.InstanceType = ctx.
ParentType
;