2 writes to _context
PresentationFramework (2)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
113
_context
= new Baml2006ReaderContext(schemaContext);
219
_context
= null;
165 references to _context
PresentationFramework (165)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (165)
130
_context
.TemplateStartDepth = -1;
230
get { return
_context
.CurrentFrame != null; }
235
get { return
_context
.LineNumber; }
240
get { return
_context
.LineOffset; }
249
_context
.KeyList = new List<KeyRecord>();
250
_context
.CurrentFrame.IsDeferredContent = true;
320
foreach (KeyRecord keyRecord in
_context
.KeyList)
333
return
_context
.KeyList;
347
_context
.CurrentKey =
_context
.KeyList.IndexOf(record);
374
Baml2006ReaderFrame baseFrame =
_context
.CurrentFrame;
377
while (baseFrame !=
_context
.CurrentFrame)
389
_context
.CurrentKey =
_context
.KeyList.IndexOf(record);
712
string name =
_context
.SchemaContext.GetString(_binaryReader.ReadInt16());
714
if (
_context
.TemplateStartDepth < 0)
736
bool shouldInjectContentProperty =
_context
.CurrentFrame.Member == null;
740
if (
_context
.CurrentFrame.XamlType.ContentProperty != null)
744
_xamlNodesWriter.WriteStartMember(
_context
.CurrentFrame.XamlType.ContentProperty);
782
bool shouldDropProperty =
_context
.CurrentFrame.Member == null;
806
_context
.InsideStaticResource = false;
809
_context
.PopScope();
818
_context
.LastKey.StaticResources.Add(staticResource);
819
_context
.InsideStaticResource = true;
824
_context
.PushScope();
825
_context
.CurrentFrame.XamlType = type;
830
InjectPropertyAndFrameIfNeeded(
_context
.SchemaContext.GetXamlType(typeof(StaticResourceExtension)), 0);
833
object value =
_context
.KeyList[
_context
.CurrentKey - 1].StaticResources[resourceId];
900
optimizedStaticResource.KeyValue =
_context
.SchemaContext.GetString(keyId);
904
var staticResources =
_context
.LastKey.StaticResources;
937
_context
.KeyList = new List<KeyRecord>();
938
_context
.CurrentKey = 0;
939
_context
.CurrentFrame.IsDeferredContent = true;
953
_context
.CurrentFrame.Key = new KeyRecord(false, false, 0, value);
972
string value =
_context
.SchemaContext.GetString(keyStringId);
975
if (
_context
.CurrentFrame.IsDeferredContent)
977
_context
.KeyList.Add(key);
981
_context
.CurrentFrame.Key = key;
999
if (
_context
.CurrentFrame.IsDeferredContent)
1001
_context
.KeyList.Add(key);
1005
_context
.CurrentFrame.Key = key;
1040
if (!
_context
.InsideKeyRecord && !
_context
.InsideStaticResource)
1042
InjectPropertyAndFrameIfNeeded(
_context
.SchemaContext.GetXamlType(typeof(String)), 0);
1050
_context
.CurrentFrame.Member != XamlLanguage.PositionalParameters)
1052
if (
_context
.CurrentFrame.XamlType != null &&
_context
.CurrentFrame.XamlType.IsCollection)
1054
if (!
_context
.CurrentFrame.XamlType.IsWhitespaceSignificantCollection)
1061
if (
_context
.CurrentFrame.Member.Type != null &&
1062
!
_context
.CurrentFrame.Member.Type.UnderlyingType.IsAssignableFrom(typeof(String)))
1073
_context
.CurrentFrame.Member = null;
1081
_context
.CurrentFrame.Member = XamlLanguage.PositionalParameters;
1133
if (_root != null &&
_context
.CurrentFrame.Depth == 0)
1151
_context
.PushScope();
1152
_context
.CurrentFrame.XamlType = type;
1191
_xamlNodesWriter.WriteStartObject(
_context
.CurrentFrame.XamlType);
1195
if (
_context
.CurrentFrame.Depth == 1)
1206
if (
_context
.PreviousFrame.IsDeferredContent && !
_context
.InsideStaticResource)
1214
KeyRecord record =
_context
.KeyList[
_context
.CurrentKey];
1237
_context
.CurrentKey++;
1245
if (
_context
.CurrentFrame.Key != null)
1249
KeyRecord keyRecord =
_context
.CurrentFrame.Key;
1276
_context
.CurrentFrame.Key = null;
1279
if (
_context
.CurrentFrame.DelayedConnectionId != -1)
1284
_xamlNodesWriter.WriteValue(
_context
.CurrentFrame.DelayedConnectionId);
1288
_xamlNodesWriter.WriteValue(
_context
.CurrentFrame.DelayedConnectionId.ToString(System.Windows.Markup.TypeConverterHelper.InvariantEnglishUS));
1295
if (
_context
.CurrentFrame.IsDeferredContent)
1297
_context
.KeyList = null;
1299
_context
.PopScope();
1310
XamlType type =
_context
.SchemaContext.GetXamlType(typeId);
1312
_context
.PushScope();
1313
_context
.CurrentFrame.XamlType = type;
1317
KeyRecord key = new KeyRecord(isShared, isSharedSet, valuePosition,
_context
.SchemaContext)
1324
_context
.InsideKeyRecord = true;
1331
if (
_context
.PreviousFrame.IsDeferredContent)
1333
_context
.KeyList.Add(key);
1337
_context
.PreviousFrame.Key = key;
1345
if (
_context
.PreviousFrame.IsDeferredContent)
1347
key =
_context
.LastKey;
1351
key =
_context
.PreviousFrame.Key;
1359
_context
.InsideKeyRecord = false;
1361
_context
.PopScope();
1372
if (
_context
.CurrentFrame.XamlType.UnderlyingType == typeof(EventSetter))
1375
_xamlNodesWriter.WriteStartMember(
_context
.SchemaContext.EventSetterEventProperty);
1392
_xamlNodesWriter.WriteStartMember(
_context
.SchemaContext.EventSetterHandlerProperty);
1398
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1407
if (
_context
.InsideKeyRecord ||
_context
.InsideStaticResource)
1415
if (
_context
.CurrentFrame.XamlType == null)
1421
if (
_context
.CurrentFrame.Member != null)
1423
throw new XamlParseException(SR.Format(SR.PropertyOutOfOrder,
_context
.CurrentFrame.Member));
1498
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1515
serializerTypeId, property,
_context
.CurrentFrame.XamlType));
1531
converter = new EnumConverter(
_context
.CurrentFrame.XamlType.UnderlyingType);
1577
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1639
XamlMember property = GetProperty(propertyId,
_context
.CurrentFrame.XamlType);
1690
param =
_context
.SchemaContext.GetDependencyProperty(valueId);
1856
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1886
XamlMember property =
_context
.SchemaContext.GetProperty(propertyId,
_context
.CurrentFrame.XamlType);
1894
Object resource =
_context
.KeyList[
_context
.CurrentKey - 1].StaticResources[resourceId];
1956
string text =
_context
.SchemaContext.GetString(optimizedResource.KeyId);
1976
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1978
_context
.CurrentFrame.Member = property;
1987
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1989
_context
.CurrentFrame.Member = property;
1997
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1999
_context
.CurrentFrame.Member = property;
2007
_context
.CurrentFrame.Member = null;
2015
if (_lookingForAKeyOnAMarkupExtensionInADictionaryDepth ==
_context
.CurrentFrame.Depth)
2022
_context
.CurrentFrame.Member = null;
2034
Baml2006ReaderFrame currentFrame =
_context
.CurrentFrame;
2116
Debug.Assert(
_context
.CurrentFrame.XamlType != null, "BAML Xmlns record is only legal between ElementStart and ElementEnd");
2124
_context
.CurrentFrame.AddNamespace(prefix, xamlNs);
2154
_context
.LineOffset = _binaryReader.ReadInt32();
2157
consumer?.SetLineInfo(
_context
.LineNumber,
_context
.LineOffset);
2163
_context
.LineNumber = _binaryReader.ReadInt32();
2164
_context
.LineOffset = _binaryReader.ReadInt32();
2167
consumer?.SetLineInfo(
_context
.LineNumber,
_context
.LineOffset);
2245
_context
.CurrentFrame.ContentProperty = contentProperty;
2253
if (
_context
.CurrentFrame.Member != null)
2258
Baml2006ReaderFrame frame =
_context
.CurrentFrame;
2261
frame =
_context
.PreviousFrame;
2315
if (
_context
.CurrentFrame.Flags == Baml2006ReaderFrameFlags.IsImplict)
2320
_context
.PopScope();
2323
if (
_context
.CurrentFrame.Flags == Baml2006ReaderFrameFlags.HasImplicitProperty)
2326
if (
_context
.CurrentFrame.Depth ==
_context
.TemplateStartDepth)
2334
_context
.TemplateStartDepth = -1;
2339
_context
.CurrentFrame.Member = null;
2340
_context
.CurrentFrame.Flags = Baml2006ReaderFrameFlags.None;
2348
if (_lookingForAKeyOnAMarkupExtensionInADictionaryDepth ==
_context
.CurrentFrame.Depth)
2353
XamlType parentType =
_context
.CurrentFrame.XamlType;
2354
XamlMember parentProperty =
_context
.CurrentFrame.Member;
2362
if (
_context
.CurrentFrame.ContentProperty != null)
2364
_context
.CurrentFrame.Member = parentProperty =
_context
.CurrentFrame.ContentProperty;
2368
_context
.CurrentFrame.Member = parentProperty = parentType.ContentProperty;
2374
_context
.CurrentFrame.Member = parentProperty = XamlLanguage.Items;
2378
_context
.CurrentFrame.Member = parentProperty = XamlLanguage.Initialization;
2385
_context
.CurrentFrame.Flags = Baml2006ReaderFrameFlags.HasImplicitProperty;
2389
if (
_context
.TemplateStartDepth < 0 && _isBinaryProvider)
2394
_context
.TemplateStartDepth =
_context
.CurrentFrame.Depth;
2406
consumer?.SetLineInfo(
_context
.LineNumber,
_context
.LineOffset);
2434
else if (
_context
.CurrentFrame.Flags == Baml2006ReaderFrameFlags.HasImplicitProperty)
2462
_lookingForAKeyOnAMarkupExtensionInADictionaryDepth =
_context
.CurrentFrame.Depth;
2477
EmitGoItemsPreamble(
_context
.CurrentFrame.Member.Type);
2488
_context
.PushScope();
2489
_context
.CurrentFrame.XamlType = parentPropertyType;
2491
_context
.CurrentFrame.Flags = Baml2006ReaderFrameFlags.IsImplict;
2493
_context
.CurrentFrame.Member = XamlLanguage.Items;
2494
_xamlNodesWriter.WriteStartMember(
_context
.CurrentFrame.Member);
2499
return
_context
.LastKey.LastStaticResource;
2644
XamlType type =
_context
.SchemaContext.GetXamlType(System.Windows.Markup.SystemKeyConverter.GetSystemClassType(keyId));
2716
get { return
_context
.CurrentFrame.FreezeFreezables; }
2717
set {
_context
.CurrentFrame.FreezeFreezables = value; }
2725
get { return
_context
.CurrentFrame.FreezeFreezables; }