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
- SamlSecurityTokenAuthenticator.cs
- Int64Animation.cs
- ServiceNameCollection.cs
- RegistryConfigurationProvider.cs
- HttpFormatExtensions.cs
- XmlImplementation.cs
- DataControlFieldCollection.cs
- ValueConversionAttribute.cs
- InstanceDataCollection.cs
- ContextStack.cs
- WebPartConnection.cs
- TransactionProtocol.cs
- LogicalTreeHelper.cs
- UIElement3D.cs
- FacetDescription.cs
- ConnectionOrientedTransportChannelListener.cs
- DataControlLinkButton.cs
- DataGridViewRow.cs
- DefaultValueConverter.cs
- InternalSendMessage.cs
- CallContext.cs
- XsdBuilder.cs
- ClientScriptManagerWrapper.cs
- BrowserCapabilitiesCodeGenerator.cs
- ButtonBase.cs
- FileCodeGroup.cs
- WebPartConnectionsConfigureVerb.cs
- LinkedDataMemberFieldEditor.cs
- COM2ComponentEditor.cs
- storepermission.cs
- ToolStripItem.cs
- ResourceManagerWrapper.cs
- ClientApiGenerator.cs
- FormViewUpdatedEventArgs.cs
- ReferenceAssemblyAttribute.cs
- XmlTextReaderImplHelpers.cs
- iisPickupDirectory.cs
- CodeDirectionExpression.cs
- ViewDesigner.cs
- TextEditorSpelling.cs
- COM2ExtendedTypeConverter.cs
- EntityCommandCompilationException.cs
- HttpCapabilitiesSectionHandler.cs
- MissingSatelliteAssemblyException.cs
- PropertyConverter.cs
- AspNetCompatibilityRequirementsAttribute.cs
- ActivationServices.cs
- ApplicationFileCodeDomTreeGenerator.cs
- BoundingRectTracker.cs
- InstanceNameConverter.cs
- WindowsTreeView.cs
- CompilerErrorCollection.cs
- ConfigXmlWhitespace.cs
- PseudoWebRequest.cs
- Hyperlink.cs
- LabelLiteral.cs
- ColumnWidthChangingEvent.cs
- GeneralTransformCollection.cs
- ControlPaint.cs
- BindingListCollectionView.cs
- OrderPreservingPipeliningSpoolingTask.cs
- MemoryMappedViewAccessor.cs
- EventLogException.cs
- ConnectionStringSettingsCollection.cs
- PageSetupDialog.cs
- XmlDataSourceView.cs
- AssemblyAttributesGoHere.cs
- PresentationSource.cs
- MessageQueueKey.cs
- AuthenticationModuleElement.cs
- HandlerBase.cs
- ObjectQuery.cs
- MetadataUtilsSmi.cs
- PersonalizableTypeEntry.cs
- HMAC.cs
- PrefixQName.cs
- MetaChildrenColumn.cs
- Matrix3DConverter.cs
- TableRowGroupCollection.cs
- ToolboxSnapDragDropEventArgs.cs
- CodeExporter.cs
- XmlWhitespace.cs
- BufferedWebEventProvider.cs
- DrawListViewColumnHeaderEventArgs.cs
- TryCatch.cs
- DragEventArgs.cs
- FormViewRow.cs
- TraceHandler.cs
- WindowsPen.cs
- Menu.cs
- RequestQueryParser.cs
- ListViewDataItem.cs
- StylusPointProperty.cs
- FontInfo.cs
- IntellisenseTextBox.cs
- CloudCollection.cs
- _ListenerResponseStream.cs
- Constants.cs
- ApplyHostConfigurationBehavior.cs
- DependencyPropertyKind.cs