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