2 writes to _context
PresentationFramework (2)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
117_context = new Baml2006ReaderContext(schemaContext); 223_context = null;
165 references to _context
PresentationFramework (165)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (165)
134_context.TemplateStartDepth = -1; 234get { return _context.CurrentFrame != null; } 239get { return _context.LineNumber; } 244get { return _context.LineOffset; } 253_context.KeyList = new List<KeyRecord>(); 254_context.CurrentFrame.IsDeferredContent = true; 324foreach (KeyRecord keyRecord in _context.KeyList) 337return _context.KeyList; 351_context.CurrentKey = _context.KeyList.IndexOf(record); 378Baml2006ReaderFrame baseFrame = _context.CurrentFrame; 381while (baseFrame != _context.CurrentFrame) 393_context.CurrentKey = _context.KeyList.IndexOf(record); 716string name = _context.SchemaContext.GetString(_binaryReader.ReadInt16()); 718if (_context.TemplateStartDepth < 0) 740bool shouldInjectContentProperty = _context.CurrentFrame.Member == null; 744if (_context.CurrentFrame.XamlType.ContentProperty != null) 748_xamlNodesWriter.WriteStartMember(_context.CurrentFrame.XamlType.ContentProperty); 784bool shouldDropProperty = _context.CurrentFrame.Member == null; 808_context.InsideStaticResource = false; 811_context.PopScope(); 820_context.LastKey.StaticResources.Add(staticResource); 821_context.InsideStaticResource = true; 826_context.PushScope(); 827_context.CurrentFrame.XamlType = type; 832InjectPropertyAndFrameIfNeeded(_context.SchemaContext.GetXamlType(typeof(StaticResourceExtension)), 0); 835object value = _context.KeyList[_context.CurrentKey - 1].StaticResources[resourceId]; 900optimizedStaticResource.KeyValue = _context.SchemaContext.GetString(keyId); 904var 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); 972string value = _context.SchemaContext.GetString(keyStringId); 975if (_context.CurrentFrame.IsDeferredContent) 977_context.KeyList.Add(key); 981_context.CurrentFrame.Key = key; 999if (_context.CurrentFrame.IsDeferredContent) 1001_context.KeyList.Add(key); 1005_context.CurrentFrame.Key = key; 1040if (_context.InsideKeyRecord != true && _context.InsideStaticResource != true) 1042InjectPropertyAndFrameIfNeeded(_context.SchemaContext.GetXamlType(typeof(String)), 0); 1050_context.CurrentFrame.Member != XamlLanguage.PositionalParameters) 1052if (_context.CurrentFrame.XamlType != null && _context.CurrentFrame.XamlType.IsCollection) 1054if (!_context.CurrentFrame.XamlType.IsWhitespaceSignificantCollection) 1061if (_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; 1133if (_root != null && _context.CurrentFrame.Depth == 0) 1151_context.PushScope(); 1152_context.CurrentFrame.XamlType = type; 1191_xamlNodesWriter.WriteStartObject(_context.CurrentFrame.XamlType); 1195if (_context.CurrentFrame.Depth == 1) 1206if (_context.PreviousFrame.IsDeferredContent && _context.InsideStaticResource == false) 1214KeyRecord record = _context.KeyList[_context.CurrentKey]; 1237_context.CurrentKey++; 1245if (_context.CurrentFrame.Key != null) 1249KeyRecord keyRecord = _context.CurrentFrame.Key; 1276_context.CurrentFrame.Key = null; 1279if (_context.CurrentFrame.DelayedConnectionId != -1) 1284_xamlNodesWriter.WriteValue(_context.CurrentFrame.DelayedConnectionId); 1288_xamlNodesWriter.WriteValue(_context.CurrentFrame.DelayedConnectionId.ToString(System.Windows.Markup.TypeConverterHelper.InvariantEnglishUS)); 1295if (_context.CurrentFrame.IsDeferredContent) 1297_context.KeyList = null; 1299_context.PopScope(); 1310XamlType type = _context.SchemaContext.GetXamlType(typeId); 1312_context.PushScope(); 1313_context.CurrentFrame.XamlType = type; 1317KeyRecord key = new KeyRecord(isShared, isSharedSet, valuePosition, _context.SchemaContext); 1322_context.InsideKeyRecord = true; 1329if (_context.PreviousFrame.IsDeferredContent) 1331_context.KeyList.Add(key); 1335_context.PreviousFrame.Key = key; 1343if (_context.PreviousFrame.IsDeferredContent) 1345key = _context.LastKey; 1349key = _context.PreviousFrame.Key; 1357_context.InsideKeyRecord = false; 1359_context.PopScope(); 1370if (_context.CurrentFrame.XamlType.UnderlyingType == typeof(EventSetter)) 1373_xamlNodesWriter.WriteStartMember(_context.SchemaContext.EventSetterEventProperty); 1390_xamlNodesWriter.WriteStartMember(_context.SchemaContext.EventSetterHandlerProperty); 1396XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1405if (_context.InsideKeyRecord || _context.InsideStaticResource) 1413if (_context.CurrentFrame.XamlType == null) 1419if (_context.CurrentFrame.Member != null) 1421throw new XamlParseException(SR.Format(SR.PropertyOutOfOrder, _context.CurrentFrame.Member)); 1496XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1513serializerTypeId, property, _context.CurrentFrame.XamlType)); 1529converter = new EnumConverter(_context.CurrentFrame.XamlType.UnderlyingType); 1575XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1637XamlMember property = GetProperty(propertyId, _context.CurrentFrame.XamlType); 1688param = _context.SchemaContext.GetDependencyProperty(valueId); 1852XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1882XamlMember property = _context.SchemaContext.GetProperty(propertyId, _context.CurrentFrame.XamlType); 1890Object resource = _context.KeyList[_context.CurrentKey - 1].StaticResources[resourceId]; 1952string text = _context.SchemaContext.GetString(optimizedResource.KeyId); 1972XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1974_context.CurrentFrame.Member = property; 1983XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1985_context.CurrentFrame.Member = property; 1993XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1995_context.CurrentFrame.Member = property; 2003_context.CurrentFrame.Member = null; 2011if (_lookingForAKeyOnAMarkupExtensionInADictionaryDepth == _context.CurrentFrame.Depth) 2018_context.CurrentFrame.Member = null; 2030Baml2006ReaderFrame currentFrame = _context.CurrentFrame; 2114Debug.Assert(_context.CurrentFrame.XamlType != null, "BAML Xmlns record is only legal between ElementStart and ElementEnd"); 2122_context.CurrentFrame.AddNamespace(prefix, xamlNs); 2152_context.LineOffset = _binaryReader.ReadInt32(); 2157consumer.SetLineInfo(_context.LineNumber, _context.LineOffset); 2164_context.LineNumber = _binaryReader.ReadInt32(); 2165_context.LineOffset = _binaryReader.ReadInt32(); 2170consumer.SetLineInfo(_context.LineNumber, _context.LineOffset); 2249_context.CurrentFrame.ContentProperty = contentProperty; 2257if (_context.CurrentFrame.Member != null) 2262Baml2006ReaderFrame frame = _context.CurrentFrame; 2265frame = _context.PreviousFrame; 2319if (_context.CurrentFrame.Flags == Baml2006ReaderFrameFlags.IsImplict) 2324_context.PopScope(); 2327if (_context.CurrentFrame.Flags == Baml2006ReaderFrameFlags.HasImplicitProperty) 2330if (_context.CurrentFrame.Depth == _context.TemplateStartDepth) 2338_context.TemplateStartDepth = -1; 2343_context.CurrentFrame.Member = null; 2344_context.CurrentFrame.Flags = Baml2006ReaderFrameFlags.None; 2352if (_lookingForAKeyOnAMarkupExtensionInADictionaryDepth == _context.CurrentFrame.Depth) 2357XamlType parentType = _context.CurrentFrame.XamlType; 2358XamlMember parentProperty = _context.CurrentFrame.Member; 2366if (_context.CurrentFrame.ContentProperty != null) 2368_context.CurrentFrame.Member = parentProperty = _context.CurrentFrame.ContentProperty; 2372_context.CurrentFrame.Member = parentProperty = parentType.ContentProperty; 2378_context.CurrentFrame.Member = parentProperty = XamlLanguage.Items; 2382_context.CurrentFrame.Member = parentProperty = XamlLanguage.Initialization; 2389_context.CurrentFrame.Flags = Baml2006ReaderFrameFlags.HasImplicitProperty; 2393if (_context.TemplateStartDepth < 0 && _isBinaryProvider) 2398_context.TemplateStartDepth = _context.CurrentFrame.Depth; 2412consumer.SetLineInfo(_context.LineNumber, _context.LineOffset); 2441else if (_context.CurrentFrame.Flags == Baml2006ReaderFrameFlags.HasImplicitProperty) 2469_lookingForAKeyOnAMarkupExtensionInADictionaryDepth = _context.CurrentFrame.Depth; 2484EmitGoItemsPreamble(_context.CurrentFrame.Member.Type); 2495_context.PushScope(); 2496_context.CurrentFrame.XamlType = parentPropertyType; 2498_context.CurrentFrame.Flags = Baml2006ReaderFrameFlags.IsImplict; 2500_context.CurrentFrame.Member = XamlLanguage.Items; 2501_xamlNodesWriter.WriteStartMember(_context.CurrentFrame.Member); 2506return _context.LastKey.LastStaticResource; 2651XamlType type = _context.SchemaContext.GetXamlType(System.Windows.Markup.SystemKeyConverter.GetSystemClassType(keyId)); 2723get { return _context.CurrentFrame.FreezeFreezables; } 2724set { _context.CurrentFrame.FreezeFreezables = value; } 2732get { return _context.CurrentFrame.FreezeFreezables; }