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
- BaseTemplateParser.cs
- DataControlFieldCell.cs
- DataSvcMapFileSerializer.cs
- Boolean.cs
- HttpCachePolicyElement.cs
- Ref.cs
- PaintValueEventArgs.cs
- ListSortDescriptionCollection.cs
- AnimatedTypeHelpers.cs
- PropertyIDSet.cs
- Menu.cs
- CFStream.cs
- mediaeventargs.cs
- OleDbStruct.cs
- HMACSHA1.cs
- ListViewDataItem.cs
- LoginView.cs
- TCPListener.cs
- DataTableClearEvent.cs
- UnsafeNetInfoNativeMethods.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- SqlLiftWhereClauses.cs
- DictionaryGlobals.cs
- NativeMethods.cs
- DataBindingList.cs
- SafeSecurityHelper.cs
- TextEffect.cs
- InputQueueChannelAcceptor.cs
- PropertyMappingExceptionEventArgs.cs
- AlternateViewCollection.cs
- WindowsFormsHost.cs
- SpinWait.cs
- XmlSerializationWriter.cs
- ProfileGroupSettings.cs
- InputLanguageProfileNotifySink.cs
- Sequence.cs
- AssemblyNameUtility.cs
- TreeViewTemplateSelector.cs
- QilUnary.cs
- DesigntimeLicenseContext.cs
- ComPlusTraceRecord.cs
- _ConnectionGroup.cs
- SqlNotificationRequest.cs
- DataSourceComponent.cs
- TriggerActionCollection.cs
- DescendentsWalkerBase.cs
- MailFileEditor.cs
- LayoutUtils.cs
- WindowsFormsHostPropertyMap.cs
- util.cs
- DeploymentExceptionMapper.cs
- ThreadInterruptedException.cs
- Unit.cs
- HtmlInputCheckBox.cs
- DataTablePropertyDescriptor.cs
- SecurityResources.cs
- ClientBuildManagerCallback.cs
- PropertyEmitter.cs
- Rotation3D.cs
- _ShellExpression.cs
- AttributeData.cs
- SafeWaitHandle.cs
- SendMailErrorEventArgs.cs
- GlyphRun.cs
- SQLBinary.cs
- CalendarTable.cs
- DEREncoding.cs
- DirectionalLight.cs
- PasswordTextNavigator.cs
- ListViewItem.cs
- MessageBuffer.cs
- LineServices.cs
- ArgumentException.cs
- Native.cs
- OdbcParameterCollection.cs
- SqlCommandBuilder.cs
- ButtonRenderer.cs
- CorrelationResolver.cs
- ObjectSet.cs
- InstanceDataCollectionCollection.cs
- MenuBindingsEditor.cs
- RbTree.cs
- AuthenticatingEventArgs.cs
- JsonXmlDataContract.cs
- GrammarBuilderWildcard.cs
- DataGridViewHeaderCell.cs
- XsltContext.cs
- IPipelineRuntime.cs
- PasswordTextNavigator.cs
- IListConverters.cs
- GridViewHeaderRowPresenter.cs
- ErrorWrapper.cs
- TemplateXamlTreeBuilder.cs
- ListViewDeletedEventArgs.cs
- ScrollChrome.cs
- Int64Storage.cs
- WhitespaceRuleReader.cs
- ActivityDesignerResources.cs
- Attributes.cs
- IteratorFilter.cs