2 writes to _context
PresentationFramework (2)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
114
_context
= new Baml2006ReaderContext(schemaContext);
220
_context
= null;
165 references to _context
PresentationFramework (165)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (165)
131
_context
.TemplateStartDepth = -1;
231
get { return
_context
.CurrentFrame != null; }
236
get { return
_context
.LineNumber; }
241
get { return
_context
.LineOffset; }
250
_context
.KeyList = new List<KeyRecord>();
251
_context
.CurrentFrame.IsDeferredContent = true;
321
foreach (KeyRecord keyRecord in
_context
.KeyList)
334
return
_context
.KeyList;
348
_context
.CurrentKey =
_context
.KeyList.IndexOf(record);
375
Baml2006ReaderFrame baseFrame =
_context
.CurrentFrame;
378
while (baseFrame !=
_context
.CurrentFrame)
390
_context
.CurrentKey =
_context
.KeyList.IndexOf(record);
713
string name =
_context
.SchemaContext.GetString(_binaryReader.ReadInt16());
715
if (
_context
.TemplateStartDepth < 0)
737
bool shouldInjectContentProperty =
_context
.CurrentFrame.Member == null;
741
if (
_context
.CurrentFrame.XamlType.ContentProperty != null)
745
_xamlNodesWriter.WriteStartMember(
_context
.CurrentFrame.XamlType.ContentProperty);
783
bool shouldDropProperty =
_context
.CurrentFrame.Member == null;
807
_context
.InsideStaticResource = false;
810
_context
.PopScope();
819
_context
.LastKey.StaticResources.Add(staticResource);
820
_context
.InsideStaticResource = true;
825
_context
.PushScope();
826
_context
.CurrentFrame.XamlType = type;
831
InjectPropertyAndFrameIfNeeded(
_context
.SchemaContext.GetXamlType(typeof(StaticResourceExtension)), 0);
834
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)
1325
_context
.InsideKeyRecord = true;
1332
if (
_context
.PreviousFrame.IsDeferredContent)
1334
_context
.KeyList.Add(key);
1338
_context
.PreviousFrame.Key = key;
1346
if (
_context
.PreviousFrame.IsDeferredContent)
1348
key =
_context
.LastKey;
1352
key =
_context
.PreviousFrame.Key;
1360
_context
.InsideKeyRecord = false;
1362
_context
.PopScope();
1373
if (
_context
.CurrentFrame.XamlType.UnderlyingType == typeof(EventSetter))
1376
_xamlNodesWriter.WriteStartMember(
_context
.SchemaContext.EventSetterEventProperty);
1393
_xamlNodesWriter.WriteStartMember(
_context
.SchemaContext.EventSetterHandlerProperty);
1399
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1408
if (
_context
.InsideKeyRecord ||
_context
.InsideStaticResource)
1416
if (
_context
.CurrentFrame.XamlType == null)
1422
if (
_context
.CurrentFrame.Member != null)
1424
throw new XamlParseException(SR.Format(SR.PropertyOutOfOrder,
_context
.CurrentFrame.Member));
1499
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1516
serializerTypeId, property,
_context
.CurrentFrame.XamlType));
1532
converter = new EnumConverter(
_context
.CurrentFrame.XamlType.UnderlyingType);
1578
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1640
XamlMember property = GetProperty(propertyId,
_context
.CurrentFrame.XamlType);
1691
param =
_context
.SchemaContext.GetDependencyProperty(valueId);
1857
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1887
XamlMember property =
_context
.SchemaContext.GetProperty(propertyId,
_context
.CurrentFrame.XamlType);
1895
Object resource =
_context
.KeyList[
_context
.CurrentKey - 1].StaticResources[resourceId];
1957
string text =
_context
.SchemaContext.GetString(optimizedResource.KeyId);
1977
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1979
_context
.CurrentFrame.Member = property;
1988
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1990
_context
.CurrentFrame.Member = property;
1998
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
2000
_context
.CurrentFrame.Member = property;
2008
_context
.CurrentFrame.Member = null;
2016
if (_lookingForAKeyOnAMarkupExtensionInADictionaryDepth ==
_context
.CurrentFrame.Depth)
2023
_context
.CurrentFrame.Member = null;
2035
Baml2006ReaderFrame currentFrame =
_context
.CurrentFrame;
2117
Debug.Assert(
_context
.CurrentFrame.XamlType != null, "BAML Xmlns record is only legal between ElementStart and ElementEnd");
2125
_context
.CurrentFrame.AddNamespace(prefix, xamlNs);
2155
_context
.LineOffset = _binaryReader.ReadInt32();
2158
consumer?.SetLineInfo(
_context
.LineNumber,
_context
.LineOffset);
2164
_context
.LineNumber = _binaryReader.ReadInt32();
2165
_context
.LineOffset = _binaryReader.ReadInt32();
2168
consumer?.SetLineInfo(
_context
.LineNumber,
_context
.LineOffset);
2246
_context
.CurrentFrame.ContentProperty = contentProperty;
2254
if (
_context
.CurrentFrame.Member != null)
2259
Baml2006ReaderFrame frame =
_context
.CurrentFrame;
2262
frame =
_context
.PreviousFrame;
2316
if (
_context
.CurrentFrame.Flags == Baml2006ReaderFrameFlags.IsImplict)
2321
_context
.PopScope();
2324
if (
_context
.CurrentFrame.Flags == Baml2006ReaderFrameFlags.HasImplicitProperty)
2327
if (
_context
.CurrentFrame.Depth ==
_context
.TemplateStartDepth)
2335
_context
.TemplateStartDepth = -1;
2340
_context
.CurrentFrame.Member = null;
2341
_context
.CurrentFrame.Flags = Baml2006ReaderFrameFlags.None;
2349
if (_lookingForAKeyOnAMarkupExtensionInADictionaryDepth ==
_context
.CurrentFrame.Depth)
2354
XamlType parentType =
_context
.CurrentFrame.XamlType;
2355
XamlMember parentProperty =
_context
.CurrentFrame.Member;
2363
if (
_context
.CurrentFrame.ContentProperty != null)
2365
_context
.CurrentFrame.Member = parentProperty =
_context
.CurrentFrame.ContentProperty;
2369
_context
.CurrentFrame.Member = parentProperty = parentType.ContentProperty;
2375
_context
.CurrentFrame.Member = parentProperty = XamlLanguage.Items;
2379
_context
.CurrentFrame.Member = parentProperty = XamlLanguage.Initialization;
2386
_context
.CurrentFrame.Flags = Baml2006ReaderFrameFlags.HasImplicitProperty;
2390
if (
_context
.TemplateStartDepth < 0 && _isBinaryProvider)
2395
_context
.TemplateStartDepth =
_context
.CurrentFrame.Depth;
2407
consumer?.SetLineInfo(
_context
.LineNumber,
_context
.LineOffset);
2435
else if (
_context
.CurrentFrame.Flags == Baml2006ReaderFrameFlags.HasImplicitProperty)
2463
_lookingForAKeyOnAMarkupExtensionInADictionaryDepth =
_context
.CurrentFrame.Depth;
2478
EmitGoItemsPreamble(
_context
.CurrentFrame.Member.Type);
2489
_context
.PushScope();
2490
_context
.CurrentFrame.XamlType = parentPropertyType;
2492
_context
.CurrentFrame.Flags = Baml2006ReaderFrameFlags.IsImplict;
2494
_context
.CurrentFrame.Member = XamlLanguage.Items;
2495
_xamlNodesWriter.WriteStartMember(
_context
.CurrentFrame.Member);
2500
return
_context
.LastKey.LastStaticResource;
2645
XamlType type =
_context
.SchemaContext.GetXamlType(System.Windows.Markup.SystemKeyConverter.GetSystemClassType(keyId));
2717
get { return
_context
.CurrentFrame.FreezeFreezables; }
2718
set {
_context
.CurrentFrame.FreezeFreezables = value; }
2726
get { return
_context
.CurrentFrame.FreezeFreezables; }