Code:
/ 4.0 / 4.0 / untmp / 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 ListKeyList { 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
- Debug.cs
- Cursors.cs
- OpenTypeLayoutCache.cs
- ListBoxItemWrapperAutomationPeer.cs
- ColorEditor.cs
- ListViewItemCollectionEditor.cs
- CompositeCollection.cs
- RecipientInfo.cs
- XmlIlVisitor.cs
- TransformationRules.cs
- RequestDescription.cs
- DrawingDrawingContext.cs
- PositiveTimeSpanValidatorAttribute.cs
- AsymmetricAlgorithm.cs
- BamlWriter.cs
- ImportContext.cs
- Request.cs
- HttpSessionStateWrapper.cs
- WebPartConnectionsConnectVerb.cs
- TemplateXamlTreeBuilder.cs
- KeyValuePair.cs
- FamilyMapCollection.cs
- AppDomain.cs
- HtmlInputSubmit.cs
- IResourceProvider.cs
- KeyNotFoundException.cs
- HttpProcessUtility.cs
- Main.cs
- AttributeCollection.cs
- KnownTypeAttribute.cs
- ValidatorCollection.cs
- ProxySimple.cs
- OracleConnection.cs
- OdbcStatementHandle.cs
- GridItemCollection.cs
- CommandValueSerializer.cs
- PreloadedPackages.cs
- VectorValueSerializer.cs
- BamlVersionHeader.cs
- TextTreeUndoUnit.cs
- DSASignatureFormatter.cs
- TextEditorMouse.cs
- GrammarBuilderDictation.cs
- MbpInfo.cs
- DataGridViewTopLeftHeaderCell.cs
- GeneralTransform3DTo2DTo3D.cs
- InteropAutomationProvider.cs
- PathFigureCollection.cs
- ContextBase.cs
- WmiEventSink.cs
- CollectionChangeEventArgs.cs
- SubstitutionDesigner.cs
- FontCollection.cs
- FormViewPagerRow.cs
- CounterCreationData.cs
- XmlSchemaGroup.cs
- QueuePropertyVariants.cs
- EditorZoneDesigner.cs
- HostingPreferredMapPath.cs
- QueryContinueDragEvent.cs
- XmlIterators.cs
- XmlSchemaGroup.cs
- TextEmbeddedObject.cs
- GregorianCalendarHelper.cs
- ActivityDesignerLayoutSerializers.cs
- SchemaMerger.cs
- EntityDataSourceDesignerHelper.cs
- CannotUnloadAppDomainException.cs
- SqlCacheDependency.cs
- OletxResourceManager.cs
- AccessorTable.cs
- NetworkInterface.cs
- CompilerParameters.cs
- DataGridRow.cs
- BrowserDefinitionCollection.cs
- TextPointerBase.cs
- GeometryGroup.cs
- DataKey.cs
- CombinedTcpChannel.cs
- ConfigXmlElement.cs
- SingleStorage.cs
- RSAOAEPKeyExchangeFormatter.cs
- SettingsPropertyValue.cs
- NotCondition.cs
- SqlDataSource.cs
- Pair.cs
- SqlDuplicator.cs
- ProviderConnectionPointCollection.cs
- FrameworkName.cs
- AccessDataSourceView.cs
- EventBookmark.cs
- DataSourceCacheDurationConverter.cs
- ProtocolState.cs
- MouseEventArgs.cs
- KeyToListMap.cs
- ContentType.cs
- SmtpFailedRecipientsException.cs
- FormViewDeletedEventArgs.cs
- SortQuery.cs
- ServerValidateEventArgs.cs