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
- DataRecordInternal.cs
- CopyOfAction.cs
- HtmlInputButton.cs
- Header.cs
- SolidColorBrush.cs
- TypedTableBaseExtensions.cs
- WebBrowserSiteBase.cs
- ToolStripItemImageRenderEventArgs.cs
- Mappings.cs
- XPathNodeHelper.cs
- DropAnimation.xaml.cs
- OleDbStruct.cs
- ProviderSettingsCollection.cs
- Viewport3DVisual.cs
- DateTimeOffset.cs
- listitem.cs
- XmlBoundElement.cs
- DataGridViewSortCompareEventArgs.cs
- ByteAnimationUsingKeyFrames.cs
- MSHTMLHost.cs
- MembershipValidatePasswordEventArgs.cs
- ConnectionStringsExpressionBuilder.cs
- TableRowsCollectionEditor.cs
- AttachmentService.cs
- _SSPIWrapper.cs
- DataGridViewButtonCell.cs
- TextWriterTraceListener.cs
- ObjectReferenceStack.cs
- HelpEvent.cs
- InputScopeAttribute.cs
- ComponentFactoryHelpers.cs
- DNS.cs
- AggregateNode.cs
- SafeNativeMethods.cs
- StringUtil.cs
- ParallelActivityDesigner.cs
- CharUnicodeInfo.cs
- Helper.cs
- SpanIndex.cs
- CalendarAutoFormat.cs
- HttpCookiesSection.cs
- RtfControlWordInfo.cs
- HttpHandlerAction.cs
- KnownTypesHelper.cs
- TTSEngineProxy.cs
- ArgumentOutOfRangeException.cs
- SystemUnicastIPAddressInformation.cs
- AttachedPropertyMethodSelector.cs
- ImageDrawing.cs
- QueueAccessMode.cs
- EncodingDataItem.cs
- ColumnMapCopier.cs
- DefaultEventAttribute.cs
- EdmScalarPropertyAttribute.cs
- XmlTextReaderImpl.cs
- ConfigurationErrorsException.cs
- ByteAnimation.cs
- EntityKeyElement.cs
- IResourceProvider.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DateTimeOffset.cs
- PerformanceCounterPermissionAttribute.cs
- MouseBinding.cs
- PropertyGridCommands.cs
- ReachSerializer.cs
- _ShellExpression.cs
- TextTreeDeleteContentUndoUnit.cs
- followingquery.cs
- CompiledIdentityConstraint.cs
- NameValueConfigurationCollection.cs
- DropDownButton.cs
- TrackingServices.cs
- RtfNavigator.cs
- FontNamesConverter.cs
- TextEditorTyping.cs
- SelectingProviderEventArgs.cs
- WebPartCatalogCloseVerb.cs
- ControlPager.cs
- PropertyChangedEventManager.cs
- TimeoutHelper.cs
- FixedTextBuilder.cs
- ToolStripDesignerAvailabilityAttribute.cs
- DefaultShape.cs
- IteratorFilter.cs
- XsltConvert.cs
- ArrangedElement.cs
- X509DefaultServiceCertificateElement.cs
- DataTableReader.cs
- ZoneMembershipCondition.cs
- Interfaces.cs
- EncoderParameter.cs
- ScrollPatternIdentifiers.cs
- XmlNodeChangedEventManager.cs
- SqlUserDefinedTypeAttribute.cs
- UntrustedRecipientException.cs
- Base64Decoder.cs
- StorageComplexTypeMapping.cs
- mactripleDES.cs
- Rotation3D.cs
- WindowsIPAddress.cs