Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Xaml / Context / XamlFrame.cs / 1305600 / XamlFrame.cs
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; namespace MS.Internal.Xaml.Context { abstract class XamlFrame { private int _depth; private XamlFrame _previous; protected XamlFrame() { _depth = -1; } // Copy constructor protected XamlFrame(XamlFrame source) { _depth = source._depth; } public virtual XamlFrame Clone() { // Clone should only be overridden for the classes that really need it // ObjectWriterFrame overrides this so we can reuse the context for // Templates. throw new NotImplementedException(); } // Reset the contents of the Frame so it can be reused in a stack without reallocating. // Depth and previous do not change when we reuse the Frame. public abstract void Reset(); public int Depth { get { Debug.Assert(_depth != -1, "Context Frame is uninitialized"); return _depth; } } public XamlFrame Previous { get { return _previous; } set { _previous = value; _depth = (_previous == null) ? 0 : _previous._depth + 1; } } } } // 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
- ValidationUtility.cs
- ToolStripPanelDesigner.cs
- RelationshipSet.cs
- TreeNodeBinding.cs
- StreamingContext.cs
- TextServicesDisplayAttribute.cs
- LogConverter.cs
- BrowserCapabilitiesFactory.cs
- ObjectCloneHelper.cs
- EntryPointNotFoundException.cs
- AccessorTable.cs
- DataControlFieldCollection.cs
- GrammarBuilder.cs
- DeviceContext2.cs
- PhysicalAddress.cs
- FilteredSchemaElementLookUpTable.cs
- TextSelectionHelper.cs
- BamlLocalizer.cs
- XmlValidatingReader.cs
- FixedTextPointer.cs
- BindingValueChangedEventArgs.cs
- RijndaelManaged.cs
- GlyphCache.cs
- UDPClient.cs
- DropShadowEffect.cs
- BitmapEffectInput.cs
- ZipIOFileItemStream.cs
- ResourcePermissionBaseEntry.cs
- GridViewSortEventArgs.cs
- SingleKeyFrameCollection.cs
- sqlinternaltransaction.cs
- ComponentRenameEvent.cs
- XamlTreeBuilderBamlRecordWriter.cs
- AttributeAction.cs
- SettingsPropertyValue.cs
- ProviderMetadata.cs
- OrderByBuilder.cs
- WebPartCatalogAddVerb.cs
- CriticalExceptions.cs
- MouseButton.cs
- RoleManagerModule.cs
- TextFormatterContext.cs
- UseLicense.cs
- ObjectListSelectEventArgs.cs
- SqlProviderUtilities.cs
- XmlSubtreeReader.cs
- HttpConfigurationSystem.cs
- TemplateControlCodeDomTreeGenerator.cs
- CodeThrowExceptionStatement.cs
- RangeContentEnumerator.cs
- MgmtConfigurationRecord.cs
- AlternationConverter.cs
- PrintDialogException.cs
- SqlCharStream.cs
- ConvertEvent.cs
- MediaTimeline.cs
- DesignerCategoryAttribute.cs
- ListBoxItemAutomationPeer.cs
- RecipientInfo.cs
- NavigationPropertyEmitter.cs
- SettingsPropertyValueCollection.cs
- MenuItemBinding.cs
- counter.cs
- sqlinternaltransaction.cs
- HttpDebugHandler.cs
- Container.cs
- StateDesigner.LayoutSelectionGlyph.cs
- ListViewItemEventArgs.cs
- CompositeDataBoundControl.cs
- IisHelper.cs
- Exception.cs
- DrawingContextDrawingContextWalker.cs
- XmlReflectionMember.cs
- RepeatBehavior.cs
- ConnectivityStatus.cs
- ListViewEditEventArgs.cs
- DelegatedStream.cs
- _SafeNetHandles.cs
- WebBrowserBase.cs
- TemplateContent.cs
- CurrencyManager.cs
- QueryResponse.cs
- SizeLimitedCache.cs
- CallTemplateAction.cs
- Int32RectValueSerializer.cs
- DocumentGridPage.cs
- ClientApiGenerator.cs
- WebPartEditorCancelVerb.cs
- DrawListViewItemEventArgs.cs
- CodeTypeParameter.cs
- OptionalRstParameters.cs
- DataGridViewCellStyleChangedEventArgs.cs
- Missing.cs
- TypeDelegator.cs
- StringAnimationBase.cs
- PersistenceTypeAttribute.cs
- SourceLocationProvider.cs
- SymmetricAlgorithm.cs
- DeviceContexts.cs
- RelationshipFixer.cs