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 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. 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
- ScopelessEnumAttribute.cs
- DocumentCollection.cs
- CodeNamespaceImport.cs
- TextTreeRootNode.cs
- ToolStripPanelRow.cs
- FakeModelItemImpl.cs
- CatalogPartCollection.cs
- LabelAutomationPeer.cs
- SortFieldComparer.cs
- DataGridViewSelectedRowCollection.cs
- HttpHandlersSection.cs
- WebPartDescriptionCollection.cs
- HttpServerVarsCollection.cs
- ObjectConverter.cs
- UniformGrid.cs
- WinOEToolBoxItem.cs
- PassportIdentity.cs
- SystemTcpConnection.cs
- DLinqTableProvider.cs
- SqlProviderServices.cs
- Bits.cs
- SingleQueryOperator.cs
- ApplicationServiceHelper.cs
- DataGridToolTip.cs
- AppModelKnownContentFactory.cs
- DateBoldEvent.cs
- AnimationStorage.cs
- HtmlTextArea.cs
- ImageListDesigner.cs
- ViewStateException.cs
- Label.cs
- PartitionerStatic.cs
- StylusTip.cs
- VarRefManager.cs
- XmlEventCache.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- DoubleMinMaxAggregationOperator.cs
- X509UI.cs
- EntitySqlQueryCacheKey.cs
- PerformanceCounterPermissionAttribute.cs
- CodeRemoveEventStatement.cs
- EncoderBestFitFallback.cs
- TableDetailsRow.cs
- ObjectFullSpanRewriter.cs
- ListenerAdapter.cs
- PathFigureCollectionValueSerializer.cs
- FullTextBreakpoint.cs
- SocketStream.cs
- Metafile.cs
- RewritingValidator.cs
- Select.cs
- FilteredAttributeCollection.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- DesignerContextDescriptor.cs
- SizeAnimationClockResource.cs
- ToolStripRendererSwitcher.cs
- RemotingServices.cs
- xsdvalidator.cs
- Utils.cs
- OneOfScalarConst.cs
- XmlSchemaSimpleTypeRestriction.cs
- UpdateTranslator.cs
- SystemFonts.cs
- Control.cs
- isolationinterop.cs
- MethodBuilderInstantiation.cs
- XmlValidatingReader.cs
- ProfileEventArgs.cs
- PathFigureCollectionValueSerializer.cs
- Point.cs
- DataGridViewCellValueEventArgs.cs
- DataGridTablesFactory.cs
- XmlNavigatorStack.cs
- TypeConverterValueSerializer.cs
- UidManager.cs
- WindowsTokenRoleProvider.cs
- XmlSortKeyAccumulator.cs
- WindowsGraphicsCacheManager.cs
- SafePointer.cs
- XamlRtfConverter.cs
- CapacityStreamGeometryContext.cs
- FormViewRow.cs
- WebServiceReceiveDesigner.cs
- ContentHostHelper.cs
- PrimitiveSchema.cs
- DataBoundControl.cs
- ProfileInfo.cs
- SimpleParser.cs
- XmlSigningNodeWriter.cs
- XmlElementCollection.cs
- ReadWriteObjectLock.cs
- StrokeCollectionConverter.cs
- RuntimeCompatibilityAttribute.cs
- Profiler.cs
- Socket.cs
- AutoResetEvent.cs
- CodeSubDirectory.cs
- DBConcurrencyException.cs
- GlobalizationSection.cs
- ChangeDirector.cs