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
- HeaderFilter.cs
- MouseEventArgs.cs
- MiniMapControl.xaml.cs
- CheckBoxBaseAdapter.cs
- MailWriter.cs
- EmissiveMaterial.cs
- SiteMapDesignerDataSourceView.cs
- XmlReader.cs
- DescendantOverDescendantQuery.cs
- SafeFileMappingHandle.cs
- FixedSOMFixedBlock.cs
- _AutoWebProxyScriptEngine.cs
- ipaddressinformationcollection.cs
- BamlReader.cs
- AnimationTimeline.cs
- ClientSponsor.cs
- DirectoryRedirect.cs
- CalendarDay.cs
- Win32.cs
- File.cs
- EntityViewContainer.cs
- CssClassPropertyAttribute.cs
- GeometryModel3D.cs
- HttpPostedFileBase.cs
- ThreadNeutralSemaphore.cs
- XsdBuildProvider.cs
- XmlHierarchicalDataSourceView.cs
- CodeDomSerializationProvider.cs
- QilValidationVisitor.cs
- WebPartVerb.cs
- ButtonFlatAdapter.cs
- InstalledFontCollection.cs
- CachedPathData.cs
- X509DefaultServiceCertificateElement.cs
- ResourceDefaultValueAttribute.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ScriptMethodAttribute.cs
- JavaScriptString.cs
- AlignmentXValidation.cs
- SerializationEventsCache.cs
- KoreanLunisolarCalendar.cs
- CatalogPartChrome.cs
- MethodBody.cs
- SignatureResourcePool.cs
- OleDbConnection.cs
- SerializableTypeCodeDomSerializer.cs
- ProxyGenerator.cs
- BooleanStorage.cs
- ToolStripProgressBar.cs
- StyleSelector.cs
- AddIn.cs
- FaultBookmark.cs
- RelatedPropertyManager.cs
- TypedDataSetSchemaImporterExtension.cs
- EditorBrowsableAttribute.cs
- ConnectionConsumerAttribute.cs
- IntPtr.cs
- AvTrace.cs
- SmiEventSink_Default.cs
- Compiler.cs
- WmlLiteralTextAdapter.cs
- ExportException.cs
- ConstructorArgumentAttribute.cs
- Regex.cs
- EntityClientCacheKey.cs
- ToolStripSplitStackLayout.cs
- ResolveNameEventArgs.cs
- URLString.cs
- LogEntrySerializer.cs
- SystemThemeKey.cs
- AtomEntry.cs
- NumberFormatInfo.cs
- Vector3DAnimationUsingKeyFrames.cs
- CheckBox.cs
- DbUpdateCommandTree.cs
- IndicFontClient.cs
- TextDecorationLocationValidation.cs
- HitTestFilterBehavior.cs
- FieldToken.cs
- TrustLevelCollection.cs
- StylusDevice.cs
- AssemblyContextControlItem.cs
- TileBrush.cs
- CalendarTable.cs
- RowTypePropertyElement.cs
- MetadataPropertyvalue.cs
- DataGridViewCellParsingEventArgs.cs
- SystemWebSectionGroup.cs
- MiniAssembly.cs
- SliderAutomationPeer.cs
- ComponentResourceKey.cs
- TypeInfo.cs
- PeerApplication.cs
- FilteredDataSetHelper.cs
- baseshape.cs
- ButtonChrome.cs
- DataServiceKeyAttribute.cs
- LinqDataSourceDeleteEventArgs.cs
- FixedSOMPage.cs
- FtpWebRequest.cs