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
- typedescriptorpermissionattribute.cs
- SQLDecimalStorage.cs
- UserControl.cs
- MouseCaptureWithinProperty.cs
- CustomErrorCollection.cs
- XmlConvert.cs
- precedingsibling.cs
- SecurityTraceRecordHelper.cs
- Utility.cs
- BinaryFormatter.cs
- WhitespaceRuleLookup.cs
- Rect3DConverter.cs
- KeyedHashAlgorithm.cs
- TextAutomationPeer.cs
- DockProviderWrapper.cs
- ListBox.cs
- TrailingSpaceComparer.cs
- SqlServer2KCompatibilityCheck.cs
- UnSafeCharBuffer.cs
- Content.cs
- PropVariant.cs
- ToolStripContentPanelDesigner.cs
- TraceLog.cs
- SettingsSavedEventArgs.cs
- XmlQueryStaticData.cs
- BlobPersonalizationState.cs
- WorkflowQueue.cs
- BinarySerializer.cs
- GraphicsContext.cs
- SchemaManager.cs
- ConnectionManagementElementCollection.cs
- TypeContext.cs
- TempFiles.cs
- ToolStripContentPanelRenderEventArgs.cs
- GridItem.cs
- BaseAppDomainProtocolHandler.cs
- DodSequenceMerge.cs
- CmsInterop.cs
- FamilyTypeface.cs
- SoapAttributes.cs
- RawStylusInputCustomDataList.cs
- SqlBulkCopyColumnMappingCollection.cs
- MenuAdapter.cs
- EmulateRecognizeCompletedEventArgs.cs
- WindowAutomationPeer.cs
- TypeDescriptionProviderAttribute.cs
- DesignConnectionCollection.cs
- WS2007FederationHttpBindingCollectionElement.cs
- Context.cs
- DispatcherSynchronizationContext.cs
- SoapClientProtocol.cs
- CommandHelper.cs
- WsdlInspector.cs
- webeventbuffer.cs
- HandlerBase.cs
- ForeignConstraint.cs
- Padding.cs
- DispatcherSynchronizationContext.cs
- StringFormat.cs
- RuntimeHelpers.cs
- WhereQueryOperator.cs
- CodeExpressionCollection.cs
- ListChangedEventArgs.cs
- ToolStripRenderer.cs
- MemoryResponseElement.cs
- ColumnHeader.cs
- ObjectListComponentEditor.cs
- formatstringdialog.cs
- rsa.cs
- XPathNode.cs
- CacheDependency.cs
- Resources.Designer.cs
- FocusTracker.cs
- WindowsFormsHostAutomationPeer.cs
- Size.cs
- ReflectPropertyDescriptor.cs
- DataTableMappingCollection.cs
- GroupQuery.cs
- CachedFontFace.cs
- brushes.cs
- VirtualizingStackPanel.cs
- TransactionsSectionGroup.cs
- UpdatePanelTriggerCollection.cs
- SafeCryptoHandles.cs
- Array.cs
- HyperlinkAutomationPeer.cs
- VirtualPathUtility.cs
- TaskFormBase.cs
- Hash.cs
- PageAdapter.cs
- ToolStripComboBox.cs
- HtmlTextArea.cs
- EmissiveMaterial.cs
- Viewport2DVisual3D.cs
- LocalTransaction.cs
- SQLCharsStorage.cs
- ListSortDescription.cs
- CalendarDataBindingHandler.cs
- SelectionEditingBehavior.cs
- BamlResourceSerializer.cs