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