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
- CatalogZoneDesigner.cs
- BypassElementCollection.cs
- TemplateControlParser.cs
- WebPartCatalogAddVerb.cs
- TableLayout.cs
- ConfigXmlSignificantWhitespace.cs
- HttpHeaderCollection.cs
- BindingValueChangedEventArgs.cs
- SessionEndedEventArgs.cs
- SeekableReadStream.cs
- UserControlBuildProvider.cs
- RoleGroup.cs
- RowParagraph.cs
- Highlights.cs
- ArrayWithOffset.cs
- Variant.cs
- HostedTransportConfigurationBase.cs
- ImageListUtils.cs
- NGCSerializer.cs
- NameValuePair.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- DisplayInformation.cs
- ResolvedKeyFrameEntry.cs
- ReadWriteSpinLock.cs
- CodeEntryPointMethod.cs
- XmlIgnoreAttribute.cs
- Logging.cs
- ForEachDesigner.xaml.cs
- ConfigXmlAttribute.cs
- GetImportFileNameRequest.cs
- DirectionalLight.cs
- Knowncolors.cs
- cookie.cs
- ViewStateException.cs
- WebReferenceCollection.cs
- DbParameterCollection.cs
- BufferedMessageData.cs
- DependencyPropertyChangedEventArgs.cs
- SQLDecimal.cs
- HtmlShimManager.cs
- Vector3dCollection.cs
- LongTypeConverter.cs
- ScriptMethodAttribute.cs
- ItemMap.cs
- OptionUsage.cs
- MarkupExtensionReturnTypeAttribute.cs
- ActivityBindForm.Designer.cs
- DocumentGridPage.cs
- OleDbCommandBuilder.cs
- ScriptResourceInfo.cs
- RtfControls.cs
- BrowserCapabilitiesFactoryBase.cs
- Button.cs
- WebPartDescriptionCollection.cs
- Inflater.cs
- Model3DGroup.cs
- PatternMatcher.cs
- ImageMetadata.cs
- DataGridItemEventArgs.cs
- AsymmetricAlgorithm.cs
- LOSFormatter.cs
- ProcessInfo.cs
- UnionCodeGroup.cs
- Normalization.cs
- EnterpriseServicesHelper.cs
- BindingManagerDataErrorEventArgs.cs
- AttributeTable.cs
- WsatEtwTraceListener.cs
- ImageIndexConverter.cs
- URI.cs
- WindowsTooltip.cs
- UIPermission.cs
- WebBrowserEvent.cs
- ValidationErrorEventArgs.cs
- CompilerLocalReference.cs
- ToolStripItemDataObject.cs
- Pen.cs
- TextParagraph.cs
- DependencyProperty.cs
- XmlNotation.cs
- RecognizeCompletedEventArgs.cs
- ItemDragEvent.cs
- XmlSchemaElement.cs
- TableAdapterManagerHelper.cs
- HostingPreferredMapPath.cs
- WsatEtwTraceListener.cs
- TextElement.cs
- DbDeleteCommandTree.cs
- InputLanguageEventArgs.cs
- DataRowExtensions.cs
- RouteTable.cs
- DownloadProgressEventArgs.cs
- SqlDataSourceParameterParser.cs
- WebServiceClientProxyGenerator.cs
- QuaternionAnimation.cs
- DetailsViewCommandEventArgs.cs
- DetailsView.cs
- ConfigXmlReader.cs
- MediaTimeline.cs
- RuleCache.cs