Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Markup / Baml2006 / Baml2006ReaderContext.cs / 1305600 / Baml2006ReaderContext.cs
using System;
using System.Collections.Generic;
using System.Xaml;
using MS.Internal.Xaml.Context;
namespace System.Windows.Baml2006
{
internal class Baml2006ReaderContext
{
public Baml2006ReaderContext(Baml2006SchemaContext schemaContext)
{
if (schemaContext == null)
{
throw new ArgumentNullException("schemaContext");
}
_schemaContext = schemaContext;
}
public Baml2006SchemaContext SchemaContext
{
get { return _schemaContext; }
}
public void PushScope()
{
_stack.PushScope();
CurrentFrame.FreezeFreezables = PreviousFrame.FreezeFreezables;
}
public void PopScope()
{
_stack.PopScope();
}
public Baml2006ReaderFrame CurrentFrame
{
get { return _stack.CurrentFrame; }
}
public Baml2006ReaderFrame PreviousFrame
{
get { return _stack.PreviousFrame; }
}
public List KeyList { get; set; }
public int CurrentKey { get; set; }
public KeyRecord LastKey
{
get
{
if (KeyList != null && KeyList.Count > 0)
{
return KeyList[KeyList.Count - 1];
}
return null;
}
}
public bool InsideKeyRecord { get; set; }
public bool InsideStaticResource { get; set; }
public int TemplateStartDepth { get; set; }
private Baml2006SchemaContext _schemaContext;
private XamlContextStack _stack = new XamlContextStack(() => new Baml2006ReaderFrame());
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
using System;
using System.Collections.Generic;
using System.Xaml;
using MS.Internal.Xaml.Context;
namespace System.Windows.Baml2006
{
internal class Baml2006ReaderContext
{
public Baml2006ReaderContext(Baml2006SchemaContext schemaContext)
{
if (schemaContext == null)
{
throw new ArgumentNullException("schemaContext");
}
_schemaContext = schemaContext;
}
public Baml2006SchemaContext SchemaContext
{
get { return _schemaContext; }
}
public void PushScope()
{
_stack.PushScope();
CurrentFrame.FreezeFreezables = PreviousFrame.FreezeFreezables;
}
public void PopScope()
{
_stack.PopScope();
}
public Baml2006ReaderFrame CurrentFrame
{
get { return _stack.CurrentFrame; }
}
public Baml2006ReaderFrame PreviousFrame
{
get { return _stack.PreviousFrame; }
}
public List KeyList { get; set; }
public int CurrentKey { get; set; }
public KeyRecord LastKey
{
get
{
if (KeyList != null && KeyList.Count > 0)
{
return KeyList[KeyList.Count - 1];
}
return null;
}
}
public bool InsideKeyRecord { get; set; }
public bool InsideStaticResource { get; set; }
public int TemplateStartDepth { get; set; }
private Baml2006SchemaContext _schemaContext;
private XamlContextStack _stack = new XamlContextStack(() => new Baml2006ReaderFrame());
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebProxyScriptElement.cs
- HScrollProperties.cs
- Int64AnimationBase.cs
- LinqDataSourceDeleteEventArgs.cs
- DiagnosticEventProvider.cs
- EntityConnection.cs
- ContractNamespaceAttribute.cs
- SingleObjectCollection.cs
- DataObjectFieldAttribute.cs
- WebPartMenu.cs
- MouseGestureValueSerializer.cs
- InfoCardX509Validator.cs
- XmlChoiceIdentifierAttribute.cs
- HuffCodec.cs
- PassportPrincipal.cs
- COM2IDispatchConverter.cs
- returneventsaver.cs
- SignerInfo.cs
- TableCellAutomationPeer.cs
- BooleanFacetDescriptionElement.cs
- ActivationWorker.cs
- SourceCollection.cs
- DesignerTransactionCloseEvent.cs
- PolicyManager.cs
- Menu.cs
- baseshape.cs
- WarningException.cs
- ImportDesigner.xaml.cs
- ScriptResourceAttribute.cs
- MeshGeometry3D.cs
- webproxy.cs
- XmlSchemaSet.cs
- ApplicationManager.cs
- FacetValueContainer.cs
- Helpers.cs
- HttpPostedFileWrapper.cs
- HtmlLink.cs
- WCFModelStrings.Designer.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- Calendar.cs
- FrameworkObject.cs
- CodeDOMUtility.cs
- CommonObjectSecurity.cs
- RtfControlWordInfo.cs
- DeleteCardRequest.cs
- SelectionProviderWrapper.cs
- SerializationSectionGroup.cs
- XmlSchemaAll.cs
- SqlHelper.cs
- PhysicalFontFamily.cs
- BufferedGraphics.cs
- InternalTypeHelper.cs
- MailMessageEventArgs.cs
- BufferModesCollection.cs
- CollectionView.cs
- XdrBuilder.cs
- DataGridViewMethods.cs
- ClientSettingsStore.cs
- ListViewGroupItemCollection.cs
- LinqDataView.cs
- SystemResourceKey.cs
- WebPartConnectionsConfigureVerb.cs
- SqlFormatter.cs
- JsonWriter.cs
- TraceListeners.cs
- SynchronizedPool.cs
- OperandQuery.cs
- WebSysDescriptionAttribute.cs
- RSAPKCS1SignatureFormatter.cs
- ConnectionsZoneAutoFormat.cs
- XmlSchemaAll.cs
- CryptoHandle.cs
- ThreadStateException.cs
- BindingExpressionUncommonField.cs
- Block.cs
- FileStream.cs
- OrthographicCamera.cs
- ClaimTypeRequirement.cs
- TargetInvocationException.cs
- InvokeProviderWrapper.cs
- OleDbPermission.cs
- complextypematerializer.cs
- AutomationPropertyInfo.cs
- DataBoundControlHelper.cs
- ViewLoader.cs
- HTTPNotFoundHandler.cs
- HtmlTableCellCollection.cs
- KerberosSecurityTokenProvider.cs
- NetPeerTcpBindingElement.cs
- Marshal.cs
- HtmlUtf8RawTextWriter.cs
- Parameter.cs
- MouseGesture.cs
- ApplicationFileCodeDomTreeGenerator.cs
- PanelStyle.cs
- _TimerThread.cs
- SafeRightsManagementSessionHandle.cs
- SqlBulkCopyColumnMappingCollection.cs
- SimpleLine.cs
- TreeViewHitTestInfo.cs