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
- FormParameter.cs
- XmlTypeMapping.cs
- StateMachineSubscription.cs
- CompilerGlobalScopeAttribute.cs
- PipelineModuleStepContainer.cs
- SqlMethods.cs
- SerializationObjectManager.cs
- ThreadStartException.cs
- OdbcCommand.cs
- WebConfigurationFileMap.cs
- SerializationInfoEnumerator.cs
- FunctionImportElement.cs
- TextDecoration.cs
- Subset.cs
- RecognizerInfo.cs
- RemoteWebConfigurationHost.cs
- XslException.cs
- ConfigurationLockCollection.cs
- UserMapPath.cs
- XmlILAnnotation.cs
- MediaElementAutomationPeer.cs
- ToolboxComponentsCreatingEventArgs.cs
- ScrollBar.cs
- EventManager.cs
- Size.cs
- FormsAuthenticationTicket.cs
- DPAPIProtectedConfigurationProvider.cs
- TextElement.cs
- CompatibleComparer.cs
- Configuration.cs
- ExpressionLexer.cs
- DataServiceQueryException.cs
- DrawingBrush.cs
- PersistChildrenAttribute.cs
- InputLanguageEventArgs.cs
- UriParserTemplates.cs
- SubstitutionList.cs
- ValueUnavailableException.cs
- HttpCookie.cs
- InlineObject.cs
- CollectionTypeElement.cs
- InternalPermissions.cs
- FileDialog_Vista.cs
- ToolboxItemCollection.cs
- BaseTemplateBuildProvider.cs
- WebPartVerbsEventArgs.cs
- cache.cs
- BatchServiceHost.cs
- SchemaNames.cs
- LinqDataSourceContextEventArgs.cs
- ApplicationHost.cs
- WebPartChrome.cs
- DescriptionAttribute.cs
- UpdateExpressionVisitor.cs
- CopyCodeAction.cs
- documentsequencetextview.cs
- ResolveCriteriaCD1.cs
- MapPathBasedVirtualPathProvider.cs
- SerTrace.cs
- BasicAsyncResult.cs
- Nullable.cs
- Repeater.cs
- XmlMtomReader.cs
- AuthStoreRoleProvider.cs
- XmlWhitespace.cs
- DataGridViewColumnCollection.cs
- ZipIOExtraField.cs
- ConditionBrowserDialog.cs
- GenericAuthenticationEventArgs.cs
- DictionaryContent.cs
- OpCellTreeNode.cs
- TableParaClient.cs
- DataGridViewAccessibleObject.cs
- ToolStripOverflow.cs
- ExpressionNode.cs
- ValuePattern.cs
- CapabilitiesAssignment.cs
- PolicyStatement.cs
- EventHandlerList.cs
- ReadWriteSpinLock.cs
- ListViewHitTestInfo.cs
- UIElementParagraph.cs
- VariableAction.cs
- ShaderEffect.cs
- TraceListener.cs
- FirewallWrapper.cs
- ConsoleCancelEventArgs.cs
- HwndMouseInputProvider.cs
- DiscoveryExceptionDictionary.cs
- FixedPage.cs
- EventRouteFactory.cs
- MemoryRecordBuffer.cs
- ReadOnlyTernaryTree.cs
- PreProcessInputEventArgs.cs
- DocumentSequence.cs
- ScrollBar.cs
- TextAutomationPeer.cs
- ManifestResourceInfo.cs
- StrictAndMessageFilter.cs
- HandledEventArgs.cs