Code:
/ 4.0 / 4.0 / 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. 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
- PointF.cs
- PocoPropertyAccessorStrategy.cs
- HebrewCalendar.cs
- ZeroOpNode.cs
- DataListItemEventArgs.cs
- Command.cs
- TimelineClockCollection.cs
- BitmapData.cs
- Run.cs
- DetailsViewUpdatedEventArgs.cs
- MimeBasePart.cs
- RoleGroup.cs
- DependencyPropertyChangedEventArgs.cs
- ArgumentOutOfRangeException.cs
- ToolBar.cs
- InternalConfigRoot.cs
- HandlerBase.cs
- ClientRoleProvider.cs
- ValidateNames.cs
- XmlRawWriter.cs
- ReadOnlyMetadataCollection.cs
- ReflectionUtil.cs
- ScrollEvent.cs
- InternalControlCollection.cs
- RunWorkerCompletedEventArgs.cs
- WorkItem.cs
- FileDetails.cs
- SystemNetHelpers.cs
- HandlerFactoryWrapper.cs
- LoadRetryStrategyFactory.cs
- PageContentCollection.cs
- WebPartDisplayModeCollection.cs
- WhiteSpaceTrimStringConverter.cs
- MiniAssembly.cs
- TraceSection.cs
- ListParaClient.cs
- FileRegion.cs
- ObjectComplexPropertyMapping.cs
- SqlError.cs
- SpotLight.cs
- BuildProvidersCompiler.cs
- LineMetrics.cs
- CalloutQueueItem.cs
- Win32MouseDevice.cs
- HWStack.cs
- PtsHost.cs
- XmlDictionaryReader.cs
- ProtocolsConfigurationEntry.cs
- RbTree.cs
- RenderTargetBitmap.cs
- BasePattern.cs
- Int64Animation.cs
- DecoderExceptionFallback.cs
- InvalidPrinterException.cs
- EqualityArray.cs
- EventMappingSettingsCollection.cs
- PolyLineSegmentFigureLogic.cs
- TrackingServices.cs
- BamlMapTable.cs
- XmlDictionaryString.cs
- XPathQilFactory.cs
- BezierSegment.cs
- ImplicitInputBrush.cs
- DataServiceQueryProvider.cs
- LambdaExpression.cs
- BooleanStorage.cs
- XmlImplementation.cs
- ObjectItemCollection.cs
- XmlILTrace.cs
- TextureBrush.cs
- XmlBinaryReader.cs
- VectorConverter.cs
- TargetConverter.cs
- DefaultPrintController.cs
- FormViewDeleteEventArgs.cs
- XmlBinaryReader.cs
- ThreadExceptionEvent.cs
- RuntimeConfigLKG.cs
- MergeLocalizationDirectives.cs
- XamlBuildTaskServices.cs
- CookielessHelper.cs
- WebPartAddingEventArgs.cs
- _emptywebproxy.cs
- SafeSecurityHelper.cs
- EventPrivateKey.cs
- LocalizabilityAttribute.cs
- DefaultEventAttribute.cs
- UsernameTokenFactoryCredential.cs
- RegistryHandle.cs
- PerformanceCounterPermission.cs
- GPRECT.cs
- PointAnimationBase.cs
- DataGridViewRowsRemovedEventArgs.cs
- DynamicObject.cs
- ResourceIDHelper.cs
- ExpressionReplacer.cs
- DbProviderFactoriesConfigurationHandler.cs
- MediaEntryAttribute.cs
- RefreshEventArgs.cs
- WinFormsComponentEditor.cs