2 writes to _context
PresentationFramework (2)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
118
_context
= new Baml2006ReaderContext(schemaContext);
224
_context
= null;
165 references to _context
PresentationFramework (165)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (165)
135
_context
.TemplateStartDepth = -1;
235
get { return
_context
.CurrentFrame != null; }
240
get { return
_context
.LineNumber; }
245
get { return
_context
.LineOffset; }
254
_context
.KeyList = new List<KeyRecord>();
255
_context
.CurrentFrame.IsDeferredContent = true;
325
foreach (KeyRecord keyRecord in
_context
.KeyList)
338
return
_context
.KeyList;
352
_context
.CurrentKey =
_context
.KeyList.IndexOf(record);
379
Baml2006ReaderFrame baseFrame =
_context
.CurrentFrame;
382
while (baseFrame !=
_context
.CurrentFrame)
394
_context
.CurrentKey =
_context
.KeyList.IndexOf(record);
717
string name =
_context
.SchemaContext.GetString(_binaryReader.ReadInt16());
719
if (
_context
.TemplateStartDepth < 0)
741
bool shouldInjectContentProperty =
_context
.CurrentFrame.Member == null;
745
if (
_context
.CurrentFrame.XamlType.ContentProperty != null)
749
_xamlNodesWriter.WriteStartMember(
_context
.CurrentFrame.XamlType.ContentProperty);
785
bool shouldDropProperty =
_context
.CurrentFrame.Member == null;
809
_context
.InsideStaticResource = false;
812
_context
.PopScope();
821
_context
.LastKey.StaticResources.Add(staticResource);
822
_context
.InsideStaticResource = true;
827
_context
.PushScope();
828
_context
.CurrentFrame.XamlType = type;
833
InjectPropertyAndFrameIfNeeded(
_context
.SchemaContext.GetXamlType(typeof(StaticResourceExtension)), 0);
836
object value =
_context
.KeyList[
_context
.CurrentKey - 1].StaticResources[resourceId];
901
optimizedStaticResource.KeyValue =
_context
.SchemaContext.GetString(keyId);
905
var staticResources =
_context
.LastKey.StaticResources;
938
_context
.KeyList = new List<KeyRecord>();
939
_context
.CurrentKey = 0;
940
_context
.CurrentFrame.IsDeferredContent = true;
954
_context
.CurrentFrame.Key = new KeyRecord(false, false, 0, value);
973
string value =
_context
.SchemaContext.GetString(keyStringId);
976
if (
_context
.CurrentFrame.IsDeferredContent)
978
_context
.KeyList.Add(key);
982
_context
.CurrentFrame.Key = key;
1000
if (
_context
.CurrentFrame.IsDeferredContent)
1002
_context
.KeyList.Add(key);
1006
_context
.CurrentFrame.Key = key;
1041
if (
_context
.InsideKeyRecord != true &&
_context
.InsideStaticResource != true)
1043
InjectPropertyAndFrameIfNeeded(
_context
.SchemaContext.GetXamlType(typeof(String)), 0);
1051
_context
.CurrentFrame.Member != XamlLanguage.PositionalParameters)
1053
if (
_context
.CurrentFrame.XamlType != null &&
_context
.CurrentFrame.XamlType.IsCollection)
1055
if (!
_context
.CurrentFrame.XamlType.IsWhitespaceSignificantCollection)
1062
if (
_context
.CurrentFrame.Member.Type != null &&
1063
!
_context
.CurrentFrame.Member.Type.UnderlyingType.IsAssignableFrom(typeof(String)))
1074
_context
.CurrentFrame.Member = null;
1082
_context
.CurrentFrame.Member = XamlLanguage.PositionalParameters;
1134
if (_root != null &&
_context
.CurrentFrame.Depth == 0)
1152
_context
.PushScope();
1153
_context
.CurrentFrame.XamlType = type;
1192
_xamlNodesWriter.WriteStartObject(
_context
.CurrentFrame.XamlType);
1196
if (
_context
.CurrentFrame.Depth == 1)
1207
if (
_context
.PreviousFrame.IsDeferredContent &&
_context
.InsideStaticResource == false)
1215
KeyRecord record =
_context
.KeyList[
_context
.CurrentKey];
1238
_context
.CurrentKey++;
1246
if (
_context
.CurrentFrame.Key != null)
1250
KeyRecord keyRecord =
_context
.CurrentFrame.Key;
1277
_context
.CurrentFrame.Key = null;
1280
if (
_context
.CurrentFrame.DelayedConnectionId != -1)
1285
_xamlNodesWriter.WriteValue(
_context
.CurrentFrame.DelayedConnectionId);
1289
_xamlNodesWriter.WriteValue(
_context
.CurrentFrame.DelayedConnectionId.ToString(System.Windows.Markup.TypeConverterHelper.InvariantEnglishUS));
1296
if (
_context
.CurrentFrame.IsDeferredContent)
1298
_context
.KeyList = null;
1300
_context
.PopScope();
1311
XamlType type =
_context
.SchemaContext.GetXamlType(typeId);
1313
_context
.PushScope();
1314
_context
.CurrentFrame.XamlType = type;
1318
KeyRecord key = new KeyRecord(isShared, isSharedSet, valuePosition,
_context
.SchemaContext);
1323
_context
.InsideKeyRecord = true;
1330
if (
_context
.PreviousFrame.IsDeferredContent)
1332
_context
.KeyList.Add(key);
1336
_context
.PreviousFrame.Key = key;
1344
if (
_context
.PreviousFrame.IsDeferredContent)
1346
key =
_context
.LastKey;
1350
key =
_context
.PreviousFrame.Key;
1358
_context
.InsideKeyRecord = false;
1360
_context
.PopScope();
1371
if (
_context
.CurrentFrame.XamlType.UnderlyingType == typeof(EventSetter))
1374
_xamlNodesWriter.WriteStartMember(
_context
.SchemaContext.EventSetterEventProperty);
1391
_xamlNodesWriter.WriteStartMember(
_context
.SchemaContext.EventSetterHandlerProperty);
1397
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1406
if (
_context
.InsideKeyRecord ||
_context
.InsideStaticResource)
1414
if (
_context
.CurrentFrame.XamlType == null)
1420
if (
_context
.CurrentFrame.Member != null)
1422
throw new XamlParseException(SR.Format(SR.PropertyOutOfOrder,
_context
.CurrentFrame.Member));
1497
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1514
serializerTypeId, property,
_context
.CurrentFrame.XamlType));
1530
converter = new EnumConverter(
_context
.CurrentFrame.XamlType.UnderlyingType);
1576
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1638
XamlMember property = GetProperty(propertyId,
_context
.CurrentFrame.XamlType);
1689
param =
_context
.SchemaContext.GetDependencyProperty(valueId);
1853
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1883
XamlMember property =
_context
.SchemaContext.GetProperty(propertyId,
_context
.CurrentFrame.XamlType);
1891
Object resource =
_context
.KeyList[
_context
.CurrentKey - 1].StaticResources[resourceId];
1953
string text =
_context
.SchemaContext.GetString(optimizedResource.KeyId);
1973
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1975
_context
.CurrentFrame.Member = property;
1984
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1986
_context
.CurrentFrame.Member = property;
1994
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1996
_context
.CurrentFrame.Member = property;
2004
_context
.CurrentFrame.Member = null;
2012
if (_lookingForAKeyOnAMarkupExtensionInADictionaryDepth ==
_context
.CurrentFrame.Depth)
2019
_context
.CurrentFrame.Member = null;
2031
Baml2006ReaderFrame currentFrame =
_context
.CurrentFrame;
2115
Debug.Assert(
_context
.CurrentFrame.XamlType != null, "BAML Xmlns record is only legal between ElementStart and ElementEnd");
2123
_context
.CurrentFrame.AddNamespace(prefix, xamlNs);
2153
_context
.LineOffset = _binaryReader.ReadInt32();
2158
consumer.SetLineInfo(
_context
.LineNumber,
_context
.LineOffset);
2165
_context
.LineNumber = _binaryReader.ReadInt32();
2166
_context
.LineOffset = _binaryReader.ReadInt32();
2171
consumer.SetLineInfo(
_context
.LineNumber,
_context
.LineOffset);
2250
_context
.CurrentFrame.ContentProperty = contentProperty;
2258
if (
_context
.CurrentFrame.Member != null)
2263
Baml2006ReaderFrame frame =
_context
.CurrentFrame;
2266
frame =
_context
.PreviousFrame;
2320
if (
_context
.CurrentFrame.Flags == Baml2006ReaderFrameFlags.IsImplict)
2325
_context
.PopScope();
2328
if (
_context
.CurrentFrame.Flags == Baml2006ReaderFrameFlags.HasImplicitProperty)
2331
if (
_context
.CurrentFrame.Depth ==
_context
.TemplateStartDepth)
2339
_context
.TemplateStartDepth = -1;
2344
_context
.CurrentFrame.Member = null;
2345
_context
.CurrentFrame.Flags = Baml2006ReaderFrameFlags.None;
2353
if (_lookingForAKeyOnAMarkupExtensionInADictionaryDepth ==
_context
.CurrentFrame.Depth)
2358
XamlType parentType =
_context
.CurrentFrame.XamlType;
2359
XamlMember parentProperty =
_context
.CurrentFrame.Member;
2367
if (
_context
.CurrentFrame.ContentProperty != null)
2369
_context
.CurrentFrame.Member = parentProperty =
_context
.CurrentFrame.ContentProperty;
2373
_context
.CurrentFrame.Member = parentProperty = parentType.ContentProperty;
2379
_context
.CurrentFrame.Member = parentProperty = XamlLanguage.Items;
2383
_context
.CurrentFrame.Member = parentProperty = XamlLanguage.Initialization;
2390
_context
.CurrentFrame.Flags = Baml2006ReaderFrameFlags.HasImplicitProperty;
2394
if (
_context
.TemplateStartDepth < 0 && _isBinaryProvider)
2399
_context
.TemplateStartDepth =
_context
.CurrentFrame.Depth;
2413
consumer.SetLineInfo(
_context
.LineNumber,
_context
.LineOffset);
2442
else if (
_context
.CurrentFrame.Flags == Baml2006ReaderFrameFlags.HasImplicitProperty)
2470
_lookingForAKeyOnAMarkupExtensionInADictionaryDepth =
_context
.CurrentFrame.Depth;
2485
EmitGoItemsPreamble(
_context
.CurrentFrame.Member.Type);
2496
_context
.PushScope();
2497
_context
.CurrentFrame.XamlType = parentPropertyType;
2499
_context
.CurrentFrame.Flags = Baml2006ReaderFrameFlags.IsImplict;
2501
_context
.CurrentFrame.Member = XamlLanguage.Items;
2502
_xamlNodesWriter.WriteStartMember(
_context
.CurrentFrame.Member);
2507
return
_context
.LastKey.LastStaticResource;
2652
XamlType type =
_context
.SchemaContext.GetXamlType(System.Windows.Markup.SystemKeyConverter.GetSystemClassType(keyId));
2724
get { return
_context
.CurrentFrame.FreezeFreezables; }
2725
set {
_context
.CurrentFrame.FreezeFreezables = value; }
2733
get { return
_context
.CurrentFrame.FreezeFreezables; }