2 writes to _context
PresentationFramework (2)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
113
_context
= new Baml2006ReaderContext(schemaContext);
219
_context
= null;
165 references to _context
PresentationFramework (165)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (165)
130
_context
.TemplateStartDepth = -1;
230
get { return
_context
.CurrentFrame != null; }
235
get { return
_context
.LineNumber; }
240
get { return
_context
.LineOffset; }
249
_context
.KeyList = new List<KeyRecord>();
250
_context
.CurrentFrame.IsDeferredContent = true;
320
foreach (KeyRecord keyRecord in
_context
.KeyList)
330
return
_context
.KeyList;
344
_context
.CurrentKey =
_context
.KeyList.IndexOf(record);
371
Baml2006ReaderFrame baseFrame =
_context
.CurrentFrame;
374
while (baseFrame !=
_context
.CurrentFrame)
386
_context
.CurrentKey =
_context
.KeyList.IndexOf(record);
709
string name =
_context
.SchemaContext.GetString(_binaryReader.ReadInt16());
711
if (
_context
.TemplateStartDepth < 0)
733
bool shouldInjectContentProperty =
_context
.CurrentFrame.Member == null;
737
if (
_context
.CurrentFrame.XamlType.ContentProperty != null)
741
_xamlNodesWriter.WriteStartMember(
_context
.CurrentFrame.XamlType.ContentProperty);
779
bool shouldDropProperty =
_context
.CurrentFrame.Member == null;
803
_context
.InsideStaticResource = false;
806
_context
.PopScope();
815
_context
.LastKey.StaticResources.Add(staticResource);
816
_context
.InsideStaticResource = true;
821
_context
.PushScope();
822
_context
.CurrentFrame.XamlType = type;
827
InjectPropertyAndFrameIfNeeded(
_context
.SchemaContext.GetXamlType(typeof(StaticResourceExtension)), 0);
830
object value =
_context
.KeyList[
_context
.CurrentKey - 1].StaticResources[resourceId];
897
optimizedStaticResource.KeyValue =
_context
.SchemaContext.GetString(keyId);
901
var staticResources =
_context
.LastKey.StaticResources;
934
_context
.KeyList = new List<KeyRecord>();
935
_context
.CurrentKey = 0;
936
_context
.CurrentFrame.IsDeferredContent = true;
950
_context
.CurrentFrame.Key = new KeyRecord(false, false, 0, value);
969
string value =
_context
.SchemaContext.GetString(keyStringId);
972
if (
_context
.CurrentFrame.IsDeferredContent)
974
_context
.KeyList.Add(key);
978
_context
.CurrentFrame.Key = key;
996
if (
_context
.CurrentFrame.IsDeferredContent)
998
_context
.KeyList.Add(key);
1002
_context
.CurrentFrame.Key = key;
1037
if (!
_context
.InsideKeyRecord && !
_context
.InsideStaticResource)
1039
InjectPropertyAndFrameIfNeeded(
_context
.SchemaContext.GetXamlType(typeof(String)), 0);
1047
_context
.CurrentFrame.Member != XamlLanguage.PositionalParameters)
1049
if (
_context
.CurrentFrame.XamlType != null &&
_context
.CurrentFrame.XamlType.IsCollection)
1051
if (!
_context
.CurrentFrame.XamlType.IsWhitespaceSignificantCollection)
1058
if (
_context
.CurrentFrame.Member.Type != null &&
1059
!
_context
.CurrentFrame.Member.Type.UnderlyingType.IsAssignableFrom(typeof(String)))
1070
_context
.CurrentFrame.Member = null;
1078
_context
.CurrentFrame.Member = XamlLanguage.PositionalParameters;
1130
if (_root != null &&
_context
.CurrentFrame.Depth == 0)
1148
_context
.PushScope();
1149
_context
.CurrentFrame.XamlType = type;
1188
_xamlNodesWriter.WriteStartObject(
_context
.CurrentFrame.XamlType);
1192
if (
_context
.CurrentFrame.Depth == 1)
1203
if (
_context
.PreviousFrame.IsDeferredContent && !
_context
.InsideStaticResource)
1211
KeyRecord record =
_context
.KeyList[
_context
.CurrentKey];
1234
_context
.CurrentKey++;
1242
if (
_context
.CurrentFrame.Key != null)
1246
KeyRecord keyRecord =
_context
.CurrentFrame.Key;
1273
_context
.CurrentFrame.Key = null;
1276
if (
_context
.CurrentFrame.DelayedConnectionId != -1)
1281
_xamlNodesWriter.WriteValue(
_context
.CurrentFrame.DelayedConnectionId);
1285
_xamlNodesWriter.WriteValue(
_context
.CurrentFrame.DelayedConnectionId.ToString(System.Windows.Markup.TypeConverterHelper.InvariantEnglishUS));
1292
if (
_context
.CurrentFrame.IsDeferredContent)
1294
_context
.KeyList = null;
1296
_context
.PopScope();
1307
XamlType type =
_context
.SchemaContext.GetXamlType(typeId);
1309
_context
.PushScope();
1310
_context
.CurrentFrame.XamlType = type;
1314
KeyRecord key = new KeyRecord(isShared, isSharedSet, valuePosition,
_context
.SchemaContext)
1321
_context
.InsideKeyRecord = true;
1328
if (
_context
.PreviousFrame.IsDeferredContent)
1330
_context
.KeyList.Add(key);
1334
_context
.PreviousFrame.Key = key;
1342
if (
_context
.PreviousFrame.IsDeferredContent)
1344
key =
_context
.LastKey;
1348
key =
_context
.PreviousFrame.Key;
1356
_context
.InsideKeyRecord = false;
1358
_context
.PopScope();
1369
if (
_context
.CurrentFrame.XamlType.UnderlyingType == typeof(EventSetter))
1372
_xamlNodesWriter.WriteStartMember(
_context
.SchemaContext.EventSetterEventProperty);
1389
_xamlNodesWriter.WriteStartMember(
_context
.SchemaContext.EventSetterHandlerProperty);
1395
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1404
if (
_context
.InsideKeyRecord ||
_context
.InsideStaticResource)
1412
if (
_context
.CurrentFrame.XamlType == null)
1418
if (
_context
.CurrentFrame.Member != null)
1420
throw new XamlParseException(SR.Format(SR.PropertyOutOfOrder,
_context
.CurrentFrame.Member));
1495
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1512
serializerTypeId, property,
_context
.CurrentFrame.XamlType));
1528
converter = new EnumConverter(
_context
.CurrentFrame.XamlType.UnderlyingType);
1574
XamlMember property = GetProperty(_binaryReader.ReadInt16(),
_context
.CurrentFrame.XamlType);
1636
XamlMember property = GetProperty(propertyId,
_context
.CurrentFrame.XamlType);
1687
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;
2113
Debug.Assert(
_context
.CurrentFrame.XamlType != null, "BAML Xmlns record is only legal between ElementStart and ElementEnd");
2121
_context
.CurrentFrame.AddNamespace(prefix, xamlNs);
2151
_context
.LineOffset = _binaryReader.ReadInt32();
2154
consumer?.SetLineInfo(
_context
.LineNumber,
_context
.LineOffset);
2160
_context
.LineNumber = _binaryReader.ReadInt32();
2161
_context
.LineOffset = _binaryReader.ReadInt32();
2164
consumer?.SetLineInfo(
_context
.LineNumber,
_context
.LineOffset);
2242
_context
.CurrentFrame.ContentProperty = contentProperty;
2250
if (
_context
.CurrentFrame.Member != null)
2255
Baml2006ReaderFrame frame =
_context
.CurrentFrame;
2258
frame =
_context
.PreviousFrame;
2312
if (
_context
.CurrentFrame.Flags == Baml2006ReaderFrameFlags.IsImplict)
2317
_context
.PopScope();
2320
if (
_context
.CurrentFrame.Flags == Baml2006ReaderFrameFlags.HasImplicitProperty)
2323
if (
_context
.CurrentFrame.Depth ==
_context
.TemplateStartDepth)
2331
_context
.TemplateStartDepth = -1;
2336
_context
.CurrentFrame.Member = null;
2337
_context
.CurrentFrame.Flags = Baml2006ReaderFrameFlags.None;
2345
if (_lookingForAKeyOnAMarkupExtensionInADictionaryDepth ==
_context
.CurrentFrame.Depth)
2350
XamlType parentType =
_context
.CurrentFrame.XamlType;
2351
XamlMember parentProperty =
_context
.CurrentFrame.Member;
2359
if (
_context
.CurrentFrame.ContentProperty != null)
2361
_context
.CurrentFrame.Member = parentProperty =
_context
.CurrentFrame.ContentProperty;
2365
_context
.CurrentFrame.Member = parentProperty = parentType.ContentProperty;
2371
_context
.CurrentFrame.Member = parentProperty = XamlLanguage.Items;
2375
_context
.CurrentFrame.Member = parentProperty = XamlLanguage.Initialization;
2382
_context
.CurrentFrame.Flags = Baml2006ReaderFrameFlags.HasImplicitProperty;
2386
if (
_context
.TemplateStartDepth < 0 && _isBinaryProvider)
2391
_context
.TemplateStartDepth =
_context
.CurrentFrame.Depth;
2403
consumer?.SetLineInfo(
_context
.LineNumber,
_context
.LineOffset);
2431
else if (
_context
.CurrentFrame.Flags == Baml2006ReaderFrameFlags.HasImplicitProperty)
2459
_lookingForAKeyOnAMarkupExtensionInADictionaryDepth =
_context
.CurrentFrame.Depth;
2474
EmitGoItemsPreamble(
_context
.CurrentFrame.Member.Type);
2485
_context
.PushScope();
2486
_context
.CurrentFrame.XamlType = parentPropertyType;
2488
_context
.CurrentFrame.Flags = Baml2006ReaderFrameFlags.IsImplict;
2490
_context
.CurrentFrame.Member = XamlLanguage.Items;
2491
_xamlNodesWriter.WriteStartMember(
_context
.CurrentFrame.Member);
2496
return
_context
.LastKey.LastStaticResource;
2641
XamlType type =
_context
.SchemaContext.GetXamlType(System.Windows.Markup.SystemKeyConverter.GetSystemClassType(keyId));
2713
get { return
_context
.CurrentFrame.FreezeFreezables; }
2714
set {
_context
.CurrentFrame.FreezeFreezables = value; }
2722
get { return
_context
.CurrentFrame.FreezeFreezables; }