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
- HostingPreferredMapPath.cs
- BindingExpressionUncommonField.cs
- QilInvokeEarlyBound.cs
- CorrelationScope.cs
- PersonalizableAttribute.cs
- HttpResponseHeader.cs
- Size3DConverter.cs
- StringSource.cs
- DocumentViewerConstants.cs
- NamespaceQuery.cs
- UnsafeNetInfoNativeMethods.cs
- Label.cs
- BatchParser.cs
- _ListenerRequestStream.cs
- PngBitmapEncoder.cs
- _NestedMultipleAsyncResult.cs
- ReadOnlyDataSource.cs
- PropertyValueChangedEvent.cs
- StoreContentChangedEventArgs.cs
- SqlCommand.cs
- PaperSize.cs
- PreviewKeyDownEventArgs.cs
- OutputScope.cs
- InvalidateEvent.cs
- ModuleBuilder.cs
- Formatter.cs
- RSAPKCS1KeyExchangeFormatter.cs
- EdmFunctions.cs
- TextRangeProviderWrapper.cs
- UdpMessageProperty.cs
- AttachedPropertyBrowsableAttribute.cs
- PkcsMisc.cs
- IdentityValidationException.cs
- SafeNativeMethods.cs
- DataPager.cs
- StrokeDescriptor.cs
- LocalsItemDescription.cs
- XmlAttributeOverrides.cs
- IssuanceLicense.cs
- GiveFeedbackEventArgs.cs
- SimpleParser.cs
- XmlTextAttribute.cs
- DiffuseMaterial.cs
- PersianCalendar.cs
- XmlCDATASection.cs
- ObjectListShowCommandsEventArgs.cs
- ValidationError.cs
- CustomPopupPlacement.cs
- Rethrow.cs
- DeviceContexts.cs
- CancellationTokenSource.cs
- SystemIcmpV4Statistics.cs
- ObjectListCommand.cs
- WebPartRestoreVerb.cs
- DBConcurrencyException.cs
- InstanceDataCollection.cs
- SortDescription.cs
- Ops.cs
- DayRenderEvent.cs
- FtpWebRequest.cs
- PropertyTab.cs
- ContainsRowNumberChecker.cs
- LogConverter.cs
- ConnectionConsumerAttribute.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- ServiceBehaviorElement.cs
- AutomationElementIdentifiers.cs
- RuleDefinitions.cs
- RootBuilder.cs
- ExceptionRoutedEventArgs.cs
- EnumerableValidator.cs
- CellRelation.cs
- Pair.cs
- QilExpression.cs
- ExcludeFromCodeCoverageAttribute.cs
- EventLogPermissionEntry.cs
- WhitespaceSignificantCollectionAttribute.cs
- RewritingSimplifier.cs
- ImplicitInputBrush.cs
- AtomEntry.cs
- Int16AnimationUsingKeyFrames.cs
- GridItemPattern.cs
- CryptoConfig.cs
- BaseValidator.cs
- SharedUtils.cs
- HorizontalAlignConverter.cs
- WindowsPen.cs
- XmlSchemaCompilationSettings.cs
- QuaternionRotation3D.cs
- ContentDisposition.cs
- LineVisual.cs
- SurrogateEncoder.cs
- JournalEntryListConverter.cs
- WorkflowMarkupSerializer.cs
- SignedXml.cs
- RootNamespaceAttribute.cs
- RSAPKCS1KeyExchangeFormatter.cs
- SmiContextFactory.cs
- SqlClientFactory.cs
- WhitespaceReader.cs