23 references to ParentType
System.Xaml (23)
System\Xaml\Context\ServiceProviderContext.cs (2)
333
token.Target.InstanceType = _xamlContext.
ParentType
;
343
token.Target.InstanceType = _xamlContext.
ParentType
;
System\Xaml\InfosetObjects\XamlObjectWriter.cs (21)
270
? _context.
ParentType
511
_context.
ParentType
));
1241
XamlType xamlType = ctx.
ParentType
;
1329
declaringType = ctx.
ParentType
;
1487
XamlType xamlType = onParent ? ctx.
ParentType
: ctx.CurrentType;
1586
XamlType xamlType = onParent ? ctx.
ParentType
: ctx.CurrentType;
1619
Runtime.SetUriBase(ctx.
ParentType
, ctx.ParentInstance, ctx.BaseUri);
1665
declaringType = ctx.
ParentType
;
1709
ctx.CurrentType = ctx.
ParentType
.ItemType;
1739
bool inDictionary = ((ctx.ParentProperty == XamlLanguage.Items) && ctx.
ParentType
.IsDictionary);
1756
XamlType collectionType = ctx.
ParentType
;
1807
Debug.Assert(ctx.
ParentType
.IsCollection, "Logic_WillParentCollectionAdd called on a non-collection");
1811
XamlType itemType = ctx.
ParentType
.ItemType;
1835
Runtime.AddToDictionary(ctx.ParentCollection, ctx.
ParentType
, value, ctx.CurrentType, key);
1853
Debug.WriteLine(SR.Format(SR.DictionaryFirstChanceException, ctx.
ParentType
, key, ctx.
ParentType
.KeyType));
1877
Runtime.AddToDictionary(ctx.ParentCollection, ctx.
ParentType
, value, ctx.CurrentType, key);
1986
ctx.
ParentType
));
2010
XamlType parentType = ctx.
ParentType
;
2105
RegisterName(ctx, name, ctx.ParentInstance, ctx.
ParentType
,
2214
token.Target.InstanceType = ctx.
ParentType
;