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 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
- Win32NamedPipes.cs
- DecoderBestFitFallback.cs
- oledbmetadatacolumnnames.cs
- DataViewManagerListItemTypeDescriptor.cs
- PageAction.cs
- precedingsibling.cs
- DictionarySectionHandler.cs
- EncryptedData.cs
- TableHeaderCell.cs
- DataGridViewAdvancedBorderStyle.cs
- HostProtectionPermission.cs
- EnumDataContract.cs
- ExceptionCollection.cs
- WebPartConnectionsCancelEventArgs.cs
- ListParaClient.cs
- Int32Converter.cs
- ExternalException.cs
- KnownTypesHelper.cs
- AesCryptoServiceProvider.cs
- HMACSHA256.cs
- StrongNameMembershipCondition.cs
- SourceElementsCollection.cs
- RelationshipSet.cs
- HttpVersion.cs
- ResourceBinder.cs
- xdrvalidator.cs
- MemberAssignmentAnalysis.cs
- ValueType.cs
- OutputScopeManager.cs
- PixelShader.cs
- CodeDefaultValueExpression.cs
- ImageSourceConverter.cs
- Label.cs
- RefType.cs
- SynchronizedInputProviderWrapper.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- StringExpressionSet.cs
- DocumentApplicationState.cs
- TableSectionStyle.cs
- WriteFileContext.cs
- X509ChainElement.cs
- MobileFormsAuthentication.cs
- HwndProxyElementProvider.cs
- ConstraintManager.cs
- EasingKeyFrames.cs
- DynamicValidatorEventArgs.cs
- ConfigXmlComment.cs
- QilValidationVisitor.cs
- AvTrace.cs
- X509LogoTypeExtension.cs
- TextServicesHost.cs
- TemplateLookupAction.cs
- HtmlInputReset.cs
- AccessControlList.cs
- UmAlQuraCalendar.cs
- InternalBufferOverflowException.cs
- SHA256Managed.cs
- HotSpotCollection.cs
- KnownColorTable.cs
- ZipIOCentralDirectoryFileHeader.cs
- DriveNotFoundException.cs
- _KerberosClient.cs
- _RequestCacheProtocol.cs
- OdbcDataReader.cs
- HeaderedItemsControl.cs
- WebPartZoneDesigner.cs
- ReadOnlyDictionary.cs
- IdentifierService.cs
- TemplateBamlTreeBuilder.cs
- SqlDataSourceView.cs
- FormsAuthenticationUserCollection.cs
- GAC.cs
- FormViewRow.cs
- RightsManagementManager.cs
- OwnerDrawPropertyBag.cs
- Crc32Helper.cs
- Encoder.cs
- ProxyWebPart.cs
- CellParagraph.cs
- DataSourceView.cs
- TextComposition.cs
- SkinIDTypeConverter.cs
- StorageModelBuildProvider.cs
- ToolstripProfessionalRenderer.cs
- DrawListViewItemEventArgs.cs
- WindowsToolbar.cs
- DisableDpiAwarenessAttribute.cs
- ConfigurationManagerHelper.cs
- SettingsPropertyWrongTypeException.cs
- PrimarySelectionGlyph.cs
- PatternMatcher.cs
- CodeTypeReferenceExpression.cs
- TableLayoutPanelCellPosition.cs
- XhtmlConformanceSection.cs
- RadioButton.cs
- Point4DValueSerializer.cs
- ISAPIApplicationHost.cs
- RegexReplacement.cs
- DetailsViewPageEventArgs.cs
- UpdatePanelTrigger.cs