23 references to ParentType
System.Xaml (23)
System\Xaml\Context\ServiceProviderContext.cs (2)
335
token.Target.InstanceType = _xamlContext.
ParentType
;
345
token.Target.InstanceType = _xamlContext.
ParentType
;
System\Xaml\InfosetObjects\XamlObjectWriter.cs (21)
275
? _context.
ParentType
523
_context.
ParentType
));
1271
XamlType xamlType = ctx.
ParentType
;
1362
declaringType = ctx.
ParentType
;
1527
XamlType xamlType = onParent ? ctx.
ParentType
: ctx.CurrentType;
1625
XamlType xamlType = onParent ? ctx.
ParentType
: ctx.CurrentType;
1658
Runtime.SetUriBase(ctx.
ParentType
, ctx.ParentInstance, ctx.BaseUri);
1704
declaringType = ctx.
ParentType
;
1751
ctx.CurrentType = ctx.
ParentType
.ItemType;
1783
bool inDictionary = ((ctx.ParentProperty == XamlLanguage.Items) && ctx.
ParentType
.IsDictionary);
1800
XamlType collectionType = ctx.
ParentType
;
1853
Debug.Assert(ctx.
ParentType
.IsCollection, "Logic_WillParentCollectionAdd called on a non-collection");
1857
XamlType itemType = ctx.
ParentType
.ItemType;
1882
Runtime.AddToDictionary(ctx.ParentCollection, ctx.
ParentType
, value, ctx.CurrentType, key);
1901
Debug.WriteLine(SR.Format(SR.DictionaryFirstChanceException, ctx.
ParentType
, key, ctx.
ParentType
.KeyType));
1926
Runtime.AddToDictionary(ctx.ParentCollection, ctx.
ParentType
, value, ctx.CurrentType, key);
2043
ctx.
ParentType
));
2068
XamlType parentType = ctx.
ParentType
;
2164
RegisterName(ctx, name, ctx.ParentInstance, ctx.
ParentType
,
2275
token.Target.InstanceType = ctx.
ParentType
;