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
- UTF8Encoding.cs
- CannotUnloadAppDomainException.cs
- SiteMapNodeItem.cs
- MeshGeometry3D.cs
- ProxyWebPartManagerDesigner.cs
- ConstNode.cs
- X509ChainPolicy.cs
- XmlFormatExtensionPrefixAttribute.cs
- URIFormatException.cs
- DesignerWidgets.cs
- OpCellTreeNode.cs
- categoryentry.cs
- SmtpLoginAuthenticationModule.cs
- IconConverter.cs
- TextStore.cs
- ContextInformation.cs
- SliderAutomationPeer.cs
- MenuRendererClassic.cs
- DataServiceRequestException.cs
- AssemblyHash.cs
- EntityDataSourceWrapper.cs
- FileEnumerator.cs
- _AcceptOverlappedAsyncResult.cs
- HttpCachePolicyElement.cs
- QualifiedCellIdBoolean.cs
- StylusPointPropertyInfo.cs
- BuildProvider.cs
- ColumnClickEvent.cs
- SystemIPAddressInformation.cs
- ReflectionHelper.cs
- BitStack.cs
- EventQueueState.cs
- WindowAutomationPeer.cs
- MediaEntryAttribute.cs
- DataGridViewCellStyleConverter.cs
- GeneralTransform3DTo2DTo3D.cs
- ExpressionVisitor.cs
- ProviderCommandInfoUtils.cs
- TdsEnums.cs
- UriWriter.cs
- CornerRadius.cs
- Vector3DConverter.cs
- GridPatternIdentifiers.cs
- PagePropertiesChangingEventArgs.cs
- HttpApplication.cs
- EventToken.cs
- RouteItem.cs
- SourceElementsCollection.cs
- WSHttpBindingElement.cs
- RuntimeWrappedException.cs
- hebrewshape.cs
- XmlSchemaExporter.cs
- Stylesheet.cs
- Size3D.cs
- DataControlPagerLinkButton.cs
- Opcode.cs
- XmlImplementation.cs
- StateDesigner.TransitionInfo.cs
- RelatedView.cs
- SqlMethodTransformer.cs
- PageAsyncTask.cs
- DataGridHeaderBorder.cs
- SecUtil.cs
- ClockController.cs
- InstallerTypeAttribute.cs
- PrinterResolution.cs
- AnnotationResourceChangedEventArgs.cs
- PropertyInfoSet.cs
- SplitContainer.cs
- Soap.cs
- QilVisitor.cs
- PathGeometry.cs
- NavigationService.cs
- PropertyChangedEventManager.cs
- HttpRequestTraceRecord.cs
- CustomAttributeSerializer.cs
- ResourceDefaultValueAttribute.cs
- TabPage.cs
- BindingSource.cs
- SingleConverter.cs
- ADMembershipProvider.cs
- PaperSource.cs
- CodePropertyReferenceExpression.cs
- InternalDispatchObject.cs
- ValidatedControlConverter.cs
- BitmapSource.cs
- CatalogPart.cs
- SafeJobHandle.cs
- DesignTimeType.cs
- PolyLineSegmentFigureLogic.cs
- CodeDOMUtility.cs
- SupportingTokenChannel.cs
- FixedSOMGroup.cs
- CodeNamespaceImport.cs
- DataGridBeginningEditEventArgs.cs
- DataSourceControl.cs
- FlowDocumentReader.cs
- AssociatedControlConverter.cs
- XmlComment.cs
- LinkedResourceCollection.cs