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
- XmlSchemaInclude.cs
- SecurityHelper.cs
- XmlSiteMapProvider.cs
- CustomAttributeFormatException.cs
- SqlStream.cs
- PropertyChangedEventManager.cs
- SequenceQuery.cs
- DbConnectionPoolCounters.cs
- XmlWrappingReader.cs
- KeyMatchBuilder.cs
- Switch.cs
- EpmCustomContentDeSerializer.cs
- ServiceModelInstallComponent.cs
- ImageButton.cs
- StorageScalarPropertyMapping.cs
- ErrorStyle.cs
- ErrorWebPart.cs
- CodeStatementCollection.cs
- FileController.cs
- ResourceDisplayNameAttribute.cs
- X509LogoTypeExtension.cs
- TTSEvent.cs
- PersonalizationDictionary.cs
- HasCopySemanticsAttribute.cs
- TransformProviderWrapper.cs
- Button.cs
- XmlSchemaObject.cs
- TracingConnectionInitiator.cs
- PrimitiveDataContract.cs
- XpsStructure.cs
- VarRefManager.cs
- DataBindingHandlerAttribute.cs
- ListBox.cs
- StreamInfo.cs
- WindowsTooltip.cs
- RegexCaptureCollection.cs
- IdentitySection.cs
- ElementProxy.cs
- XpsResourcePolicy.cs
- Splitter.cs
- Mouse.cs
- PageContent.cs
- MobileErrorInfo.cs
- FileDialogCustomPlacesCollection.cs
- WindowsSecurityToken.cs
- CustomLineCap.cs
- XmlSerializationGeneratedCode.cs
- IgnoreFileBuildProvider.cs
- SplitterEvent.cs
- RemotingConfiguration.cs
- HashAlgorithm.cs
- CellTreeNode.cs
- HyperLinkStyle.cs
- TimeSpanValidatorAttribute.cs
- TraceSwitch.cs
- TemplateContentLoader.cs
- CryptoHandle.cs
- FrameSecurityDescriptor.cs
- StrongNameHelpers.cs
- CryptoHandle.cs
- InvalidDataContractException.cs
- SoapFormatterSinks.cs
- Update.cs
- IssuanceTokenProviderBase.cs
- SharedPersonalizationStateInfo.cs
- DataException.cs
- CaseExpr.cs
- SortAction.cs
- IDReferencePropertyAttribute.cs
- TakeOrSkipQueryOperator.cs
- TabControlAutomationPeer.cs
- dsa.cs
- BaseDataBoundControl.cs
- PrintPageEvent.cs
- Hashtable.cs
- httpserverutility.cs
- arabicshape.cs
- log.cs
- SmtpAuthenticationManager.cs
- TokenizerHelper.cs
- ErrorWebPart.cs
- Span.cs
- DesignTimeSiteMapProvider.cs
- BoundPropertyEntry.cs
- ClassicBorderDecorator.cs
- DependencyPropertyDescriptor.cs
- QueryPageSettingsEventArgs.cs
- StringValueSerializer.cs
- EncoderBestFitFallback.cs
- PropertyTab.cs
- PersistenceProviderBehavior.cs
- ColorBlend.cs
- DataGridViewCellCancelEventArgs.cs
- BoolExpressionVisitors.cs
- TypeDependencyAttribute.cs
- VersionPair.cs
- FlagsAttribute.cs
- SymbolDocumentGenerator.cs
- WebServiceClientProxyGenerator.cs
- DefaultValueTypeConverter.cs