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
- SemanticResolver.cs
- _LoggingObject.cs
- EnglishPluralizationService.cs
- ClientUIRequest.cs
- DataSourceCache.cs
- OleDbStruct.cs
- XmlUTF8TextWriter.cs
- EntitySetBaseCollection.cs
- EntityDataSourceDataSelectionPanel.cs
- DataGridComboBoxColumn.cs
- OracleColumn.cs
- SuppressMergeCheckAttribute.cs
- PersonalizationProvider.cs
- ElementProxy.cs
- OleAutBinder.cs
- XmlReturnReader.cs
- ConstructorBuilder.cs
- WebAdminConfigurationHelper.cs
- LoadItemsEventArgs.cs
- CodeChecksumPragma.cs
- ColorMap.cs
- OleAutBinder.cs
- HWStack.cs
- WebPartConnectVerb.cs
- MaterialCollection.cs
- PackageDigitalSignatureManager.cs
- X509UI.cs
- RegistryPermission.cs
- WebMessageEncodingBindingElement.cs
- DesignColumnCollection.cs
- ChannelSinkStacks.cs
- DataGridViewCellLinkedList.cs
- HtmlFormParameterReader.cs
- ValueConversionAttribute.cs
- SystemResourceKey.cs
- ValueUnavailableException.cs
- ProviderIncompatibleException.cs
- SafeBitVector32.cs
- StreamGeometry.cs
- IResourceProvider.cs
- DesignerView.Commands.cs
- ObfuscateAssemblyAttribute.cs
- SharedDp.cs
- PropertyConverter.cs
- SafeMILHandleMemoryPressure.cs
- TypeInitializationException.cs
- Cell.cs
- DbDataReader.cs
- SubtreeProcessor.cs
- TdsRecordBufferSetter.cs
- OdbcConnectionStringbuilder.cs
- DbMetaDataCollectionNames.cs
- TextSimpleMarkerProperties.cs
- newitemfactory.cs
- SystemUnicastIPAddressInformation.cs
- DataControlFieldsEditor.cs
- XmlElementAttributes.cs
- RoleService.cs
- StorageEndPropertyMapping.cs
- MouseActionConverter.cs
- ServiceModelConfigurationElementCollection.cs
- EntityDataSourceReferenceGroup.cs
- StorageComplexTypeMapping.cs
- TypeDependencyAttribute.cs
- PageScaling.cs
- AttributeCollection.cs
- GraphicsContext.cs
- HashSetDebugView.cs
- TextTrailingCharacterEllipsis.cs
- AbstractDataSvcMapFileLoader.cs
- AxImporter.cs
- SignatureToken.cs
- RoutedEventConverter.cs
- _ListenerResponseStream.cs
- QuaternionValueSerializer.cs
- TextSchema.cs
- Cursor.cs
- DivideByZeroException.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- WebPartMenuStyle.cs
- DataGridPreparingCellForEditEventArgs.cs
- Action.cs
- ObjectNavigationPropertyMapping.cs
- BaseTemplatedMobileComponentEditor.cs
- WebPartConnectionsDisconnectVerb.cs
- ViewManager.cs
- WebRequestModulesSection.cs
- DBAsyncResult.cs
- X509Utils.cs
- HttpResponseBase.cs
- StyleSheetDesigner.cs
- TargetInvocationException.cs
- BitmapEffectGroup.cs
- ValidateNames.cs
- GridItemCollection.cs
- SecUtil.cs
- MessageQueuePermissionEntryCollection.cs
- VisualStyleRenderer.cs
- Application.cs
- AlternationConverter.cs