2 writes to _context
PresentationFramework (2)
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
131
_context
= new Baml2006ReaderContext(schemaContext);
241
_context
= null;
165 references to _context
PresentationFramework (165)
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (165)
148
_context
.TemplateStartDepth = -1;
252
get { return
_context
.CurrentFrame != null; }
257
get { return
_context
.LineNumber; }
262
get { return
_context
.LineOffset; }
271
_context
.KeyList = new List<KeyRecord>();
272
_context
.CurrentFrame.IsDeferredContent = true;
342
foreach (KeyRecord keyRecord in
_context
.KeyList)
355
return
_context
.KeyList;
369
_context
.CurrentKey =
_context
.KeyList.IndexOf(record);
397
Baml2006ReaderFrame baseFrame =
_context
.CurrentFrame;
400
while (baseFrame !=
_context
.CurrentFrame)
412
_context
.CurrentKey =
_context
.KeyList.IndexOf(record);
735
string name =
_context
.SchemaContext.GetString(_binaryReader.ReadInt16());
737
if (
_context
.TemplateStartDepth < 0)
759
bool shouldInjectContentProperty =
_context
.CurrentFrame.Member == null;
763
if (
_context
.CurrentFrame.XamlType.ContentProperty != null)
767
_xamlNodesWriter.WriteStartMember(
_context
.CurrentFrame.XamlType.ContentProperty);
803
bool shouldDropProperty =
_context
.CurrentFrame.Member == null;
829
_context
.InsideStaticResource = false;
832
_context
.PopScope();
842
_context
.LastKey.StaticResources.Add(staticResource);
843
_context
.InsideStaticResource = true;
848
_context
.PushScope();
849
_context
.CurrentFrame.XamlType = type;
854
InjectPropertyAndFrameIfNeeded(
_context
.SchemaContext.GetXamlType(typeof(StaticResourceExtension)), 0);
857
object value =
_context
.KeyList[
_context
.CurrentKey - 1].StaticResources[resourceId];
922
optimizedStaticResource.KeyValue =
_context
.SchemaContext.GetString(keyId);
926
var staticResources =
_context
.LastKey.StaticResources;
959
_context
.KeyList = new List<KeyRecord>();
960
_context
.CurrentKey = 0;
961
_context
.CurrentFrame.IsDeferredContent = true;
975
_context
.CurrentFrame.Key = new KeyRecord(false, false, 0, value);
994
string value =
_context
.SchemaContext.GetString(keyStringId);
997
if (
_context
.CurrentFrame.IsDeferredContent)
999
_context
.KeyList.Add(key);
1003
_context
.CurrentFrame.Key = key;
1021
if (
_context
.CurrentFrame.IsDeferredContent)
1023
_context
.KeyList.Add(key);
1027
_context
.CurrentFrame.Key = key;
1063
if (
_context
.InsideKeyRecord != true &&
_context
.InsideStaticResource != true)
1065
InjectPropertyAndFrameIfNeeded(
_context
.SchemaContext.GetXamlType(typeof(String)), 0);
1073
_context
.CurrentFrame.Member != XamlLanguage.PositionalParameters)
1075
if (
_context
.CurrentFrame.XamlType != null &&
_context
.CurrentFrame.XamlType.IsCollection)
1077
if (!
_context
.CurrentFrame.XamlType.IsWhitespaceSignificantCollection)
1084
if (
_context
.CurrentFrame.Member.Type != null &&
1085
!
_context
.CurrentFrame.Member.Type.UnderlyingType.IsAssignableFrom(typeof(String)))
1096
_context
.CurrentFrame.Member = null;
1104
_context
.CurrentFrame.Member = XamlLanguage.PositionalParameters;
1146
if (_root != null &&
_context
.CurrentFrame.Depth == 0)
1165
_context
.PushScope();
1166
_context
.CurrentFrame.XamlType = type;
1206
_xamlNodesWriter.WriteStartObject(
_context
.CurrentFrame.XamlType);
1210
if (
_context
.CurrentFrame.Depth == 1)
1221
if (
_context
.PreviousFrame.IsDeferredContent &&
_context
.InsideStaticResource == false)
1229
KeyRecord record =
_context
.KeyList[
_context
.CurrentKey];
1252
_context
.CurrentKey++;
1260
if (
_context
.CurrentFrame.Key != null)
1264
KeyRecord keyRecord =
_context
.CurrentFrame.Key;
1291
_context
.CurrentFrame.Key = null;
1294
if (
_context
.CurrentFrame.DelayedConnectionId != -1)
1299
_xamlNodesWriter.WriteValue(
_context
.CurrentFrame.DelayedConnectionId);
1303
_xamlNodesWriter.WriteValue(
_context
.CurrentFrame.DelayedConnectionId.ToString(System.Windows.Markup.TypeConverterHelper.InvariantEnglishUS));
1310
if (
_context
.CurrentFrame.IsDeferredContent)
1312
_context
.KeyList = null;
1314
_context
.PopScope();
1325
XamlType type =
_context
.SchemaContext.GetXamlType(typeId);
1327
_context
.PushScope();
1328
_context
.CurrentFrame.XamlType = type;
1332
KeyRecord key = new KeyRecord(isShared, isSharedSet, valuePosition,
_context
.SchemaContext);
1337
_context
.InsideKeyRecord = true;
1344
if (
_context
.PreviousFrame.IsDeferredContent)
1346
_context
.KeyList.Add(key);
1350
_context
.PreviousFrame.Key = key;
1358
if (
_context
.PreviousFrame.IsDeferredContent)
1360
key =
_context
.LastKey;
1364
key =
_context
.PreviousFrame.Key;
1372
_context
.InsideKeyRecord = false;
1374
_context
.PopScope();
1385
if (
_context
.CurrentFrame.XamlType.UnderlyingType == typeof(EventSetter))
1388
_xamlNodesWriter.WriteStartMember(
_context
.SchemaContext.EventSetterEventProperty);
1405
_xamlNodesWriter.WriteStartMember(
_context
.SchemaContext.EventSetterHandlerProperty);
1411
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1420
if (
_context
.InsideKeyRecord ||
_context
.InsideStaticResource)
1428
if (
_context
.CurrentFrame.XamlType == null)
1434
if (
_context
.CurrentFrame.Member != null)
1436
throw new XamlParseException(SR.Get(SRID.PropertyOutOfOrder,
_context
.CurrentFrame.Member));
1511
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1529
serializerTypeId, property,
_context
.CurrentFrame.XamlType));
1545
converter = new EnumConverter(
_context
.CurrentFrame.XamlType.UnderlyingType);
1591
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1653
XamlMember property = GetProperty(propertyId,
_context
.CurrentFrame.XamlType);
1704
param =
_context
.SchemaContext.GetDependencyProperty(valueId);
1870
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1901
XamlMember property =
_context
.SchemaContext.GetProperty(propertyId,
_context
.CurrentFrame.XamlType);
1909
Object resource =
_context
.KeyList[
_context
.CurrentKey - 1].StaticResources[resourceId];
1972
string text =
_context
.SchemaContext.GetString(optimizedResource.KeyId);
1993
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1995
_context
.CurrentFrame.Member = property;
2004
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
2006
_context
.CurrentFrame.Member = property;
2014
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
2016
_context
.CurrentFrame.Member = property;
2024
_context
.CurrentFrame.Member = null;
2032
if (_lookingForAKeyOnAMarkupExtensionInADictionaryDepth ==
_context
.CurrentFrame.Depth)
2039
_context
.CurrentFrame.Member = null;
2051
Baml2006ReaderFrame currentFrame =
_context
.CurrentFrame;
2137
Debug.Assert(
_context
.CurrentFrame.XamlType != null, "BAML Xmlns record is only legal between ElementStart and ElementEnd");
2145
_context
.CurrentFrame.AddNamespace(prefix, xamlNs);
2176
_context
.LineOffset = _binaryReader.ReadInt32();
2181
consumer.SetLineInfo(
_context
.LineNumber,
_context
.LineOffset);
2188
_context
.LineNumber = _binaryReader.ReadInt32();
2189
_context
.LineOffset = _binaryReader.ReadInt32();
2194
consumer.SetLineInfo(
_context
.LineNumber,
_context
.LineOffset);
2273
_context
.CurrentFrame.ContentProperty = contentProperty;
2282
if (
_context
.CurrentFrame.Member != null)
2287
Baml2006ReaderFrame frame =
_context
.CurrentFrame;
2290
frame =
_context
.PreviousFrame;
2344
if (
_context
.CurrentFrame.Flags == Baml2006ReaderFrameFlags.IsImplict)
2349
_context
.PopScope();
2352
if (
_context
.CurrentFrame.Flags == Baml2006ReaderFrameFlags.HasImplicitProperty)
2355
if (
_context
.CurrentFrame.Depth ==
_context
.TemplateStartDepth)
2363
_context
.TemplateStartDepth = -1;
2368
_context
.CurrentFrame.Member = null;
2369
_context
.CurrentFrame.Flags = Baml2006ReaderFrameFlags.None;
2377
if (_lookingForAKeyOnAMarkupExtensionInADictionaryDepth ==
_context
.CurrentFrame.Depth)
2382
XamlType parentType =
_context
.CurrentFrame.XamlType;
2383
XamlMember parentProperty =
_context
.CurrentFrame.Member;
2391
if (
_context
.CurrentFrame.ContentProperty != null)
2393
_context
.CurrentFrame.Member = parentProperty =
_context
.CurrentFrame.ContentProperty;
2397
_context
.CurrentFrame.Member = parentProperty = parentType.ContentProperty;
2403
_context
.CurrentFrame.Member = parentProperty = XamlLanguage.Items;
2407
_context
.CurrentFrame.Member = parentProperty = XamlLanguage.Initialization;
2414
_context
.CurrentFrame.Flags = Baml2006ReaderFrameFlags.HasImplicitProperty;
2418
if (
_context
.TemplateStartDepth < 0 && _isBinaryProvider)
2423
_context
.TemplateStartDepth =
_context
.CurrentFrame.Depth;
2437
consumer.SetLineInfo(
_context
.LineNumber,
_context
.LineOffset);
2466
else if (
_context
.CurrentFrame.Flags == Baml2006ReaderFrameFlags.HasImplicitProperty)
2494
_lookingForAKeyOnAMarkupExtensionInADictionaryDepth =
_context
.CurrentFrame.Depth;
2509
EmitGoItemsPreamble(
_context
.CurrentFrame.Member.Type);
2520
_context
.PushScope();
2521
_context
.CurrentFrame.XamlType = parentPropertyType;
2523
_context
.CurrentFrame.Flags = Baml2006ReaderFrameFlags.IsImplict;
2525
_context
.CurrentFrame.Member = XamlLanguage.Items;
2526
_xamlNodesWriter.WriteStartMember(
_context
.CurrentFrame.Member);
2531
return
_context
.LastKey.LastStaticResource;
2676
XamlType type =
_context
.SchemaContext.GetXamlType(System.Windows.Markup.SystemKeyConverter.GetSystemClassType(keyId));
2748
get { return
_context
.CurrentFrame.FreezeFreezables; }
2749
set {
_context
.CurrentFrame.FreezeFreezables = value; }
2757
get { return
_context
.CurrentFrame.FreezeFreezables; }