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
- MediaContext.cs
- NamedElement.cs
- SyndicationElementExtension.cs
- TreeIterator.cs
- RequestCachePolicy.cs
- MenuStrip.cs
- DBAsyncResult.cs
- ControlPropertyNameConverter.cs
- ExtendedProtectionPolicyElement.cs
- Geometry3D.cs
- ListControl.cs
- ViewLoader.cs
- SystemBrushes.cs
- RepeatBehaviorConverter.cs
- AccessibleObject.cs
- Byte.cs
- FilterQuery.cs
- SecurityTokenProvider.cs
- TraceLog.cs
- CodeStatementCollection.cs
- NonBatchDirectoryCompiler.cs
- NetworkStream.cs
- Expressions.cs
- HandlerMappingMemo.cs
- DynamicEndpointElement.cs
- RepeatInfo.cs
- XmlSerializerNamespaces.cs
- GeneralTransformGroup.cs
- TraceRecord.cs
- CacheRequest.cs
- validationstate.cs
- ValueType.cs
- XmlSchemaParticle.cs
- SourceSwitch.cs
- RegexMatch.cs
- EventLogEntry.cs
- TreeNodeEventArgs.cs
- Button.cs
- QueryConverter.cs
- HtmlButton.cs
- ProcessThread.cs
- CookieProtection.cs
- XmlDataSourceDesigner.cs
- XmlHierarchicalEnumerable.cs
- BindingNavigator.cs
- WindowsToolbarAsMenu.cs
- Signature.cs
- XmlSchemaSequence.cs
- IISMapPath.cs
- CodeTypeMember.cs
- SmtpException.cs
- SelectionItemPattern.cs
- SafeRightsManagementHandle.cs
- WebPartDescription.cs
- CodeAttributeArgumentCollection.cs
- OracleCommandSet.cs
- BuildProviderAppliesToAttribute.cs
- BasePattern.cs
- BinaryObjectReader.cs
- FacetValueContainer.cs
- MachineKeyValidationConverter.cs
- RoleExceptions.cs
- WindowsListViewItem.cs
- DrawToolTipEventArgs.cs
- CurrentTimeZone.cs
- QilInvokeLateBound.cs
- PersonalizationProviderHelper.cs
- TraceXPathNavigator.cs
- BamlLocalizer.cs
- OleDbCommandBuilder.cs
- ServiceBehaviorElementCollection.cs
- PathGeometry.cs
- Rotation3D.cs
- ImageIndexConverter.cs
- SmiTypedGetterSetter.cs
- LabelLiteral.cs
- RepeatBehavior.cs
- WsiProfilesElementCollection.cs
- SymmetricSecurityBindingElement.cs
- TagMapCollection.cs
- BitmapSizeOptions.cs
- SourceChangedEventArgs.cs
- ColumnWidthChangingEvent.cs
- EntitySqlQueryCacheKey.cs
- UpdatePanel.cs
- DrawToolTipEventArgs.cs
- SchemaNamespaceManager.cs
- DateTimeValueSerializer.cs
- Propagator.Evaluator.cs
- NoPersistHandle.cs
- ObjectManager.cs
- ConstraintCollection.cs
- ApplicationInfo.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- GridViewActionList.cs
- ImageConverter.cs
- Module.cs
- CapabilitiesAssignment.cs
- AnonymousIdentificationModule.cs
- regiisutil.cs