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
- SplayTreeNode.cs
- DataContractSet.cs
- SystemResources.cs
- ObjectToIdCache.cs
- WaitHandle.cs
- HttpUnhandledOperationInvoker.cs
- DriveInfo.cs
- MethodToken.cs
- DataGridViewAdvancedBorderStyle.cs
- SizeConverter.cs
- UnhandledExceptionEventArgs.cs
- ApplicationTrust.cs
- RelationshipEnd.cs
- FontInfo.cs
- TreeViewItem.cs
- EventDrivenDesigner.cs
- AdRotatorDesigner.cs
- SqlEnums.cs
- Camera.cs
- DataGridViewRowHeaderCell.cs
- WorkflowStateRollbackService.cs
- WriterOutput.cs
- TableCell.cs
- RotateTransform.cs
- TranslateTransform.cs
- Token.cs
- WpfKnownMember.cs
- SqlUDTStorage.cs
- PublisherIdentityPermission.cs
- MultiTrigger.cs
- WebConvert.cs
- TextDecorationUnitValidation.cs
- ChannelOptions.cs
- ScrollItemProviderWrapper.cs
- ImageInfo.cs
- HttpChannelHelper.cs
- ProxyFragment.cs
- ClipboardData.cs
- XmlArrayItemAttribute.cs
- BufferAllocator.cs
- DivideByZeroException.cs
- HttpPostClientProtocol.cs
- OpenCollectionAsyncResult.cs
- FlowNode.cs
- SQLByteStorage.cs
- nulltextnavigator.cs
- Trace.cs
- QueryServiceConfigHandle.cs
- PrivacyNoticeBindingElement.cs
- RangeValidator.cs
- ActivityTrace.cs
- Descriptor.cs
- RestHandler.cs
- SequentialOutput.cs
- DtdParser.cs
- BinaryFormatter.cs
- TouchesCapturedWithinProperty.cs
- WS2007HttpBindingCollectionElement.cs
- XmlSchemaValidationException.cs
- SqlConnectionManager.cs
- TokenFactoryCredential.cs
- StylusPointPropertyInfoDefaults.cs
- TimersDescriptionAttribute.cs
- XamlStyleSerializer.cs
- IndexingContentUnit.cs
- ReachSerializationUtils.cs
- StateInitializationDesigner.cs
- DecimalKeyFrameCollection.cs
- Knowncolors.cs
- PropertyTab.cs
- BulletDecorator.cs
- TextElementEditingBehaviorAttribute.cs
- Ref.cs
- DataGridCommandEventArgs.cs
- TypeGeneratedEventArgs.cs
- PersianCalendar.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- CompilerState.cs
- Utils.cs
- VisualCollection.cs
- ListViewGroup.cs
- PackageRelationshipCollection.cs
- SHA256.cs
- Compiler.cs
- DataGridViewCellStyleConverter.cs
- DocumentReferenceCollection.cs
- EntityParameter.cs
- SQLSingleStorage.cs
- Visual3DCollection.cs
- EdmProperty.cs
- UidPropertyAttribute.cs
- Light.cs
- ActivityExecutionFilter.cs
- COM2ColorConverter.cs
- URL.cs
- DataGridClipboardHelper.cs
- DataKeyCollection.cs
- SqlNotificationEventArgs.cs
- MenuBase.cs
- Rectangle.cs