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
- FilterQuery.cs
- Visual3DCollection.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- EdmEntityTypeAttribute.cs
- TcpStreams.cs
- RecordsAffectedEventArgs.cs
- DesignObjectWrapper.cs
- XmlCustomFormatter.cs
- BamlReader.cs
- LiteralDesigner.cs
- ConnectorRouter.cs
- XmlHelper.cs
- SelectingProviderEventArgs.cs
- DateTimeSerializationSection.cs
- Util.cs
- InputProcessorProfilesLoader.cs
- EntitySetRetriever.cs
- HandlerFactoryCache.cs
- _BufferOffsetSize.cs
- SelectionItemPattern.cs
- PreviewPrintController.cs
- webeventbuffer.cs
- SourceItem.cs
- Calendar.cs
- QilScopedVisitor.cs
- RankException.cs
- ConstraintConverter.cs
- XmlComplianceUtil.cs
- _Connection.cs
- XPathAncestorIterator.cs
- NativeRightsManagementAPIsStructures.cs
- SplitterDesigner.cs
- HttpListener.cs
- HostExecutionContextManager.cs
- InnerItemCollectionView.cs
- BufferAllocator.cs
- ScriptMethodAttribute.cs
- Screen.cs
- FunctionImportElement.cs
- DBSqlParser.cs
- RectIndependentAnimationStorage.cs
- HtmlWindow.cs
- RemoveStoryboard.cs
- TabPage.cs
- CroppedBitmap.cs
- Decoder.cs
- PolyQuadraticBezierSegment.cs
- AdCreatedEventArgs.cs
- EncoderParameters.cs
- BuildProvidersCompiler.cs
- DoubleLink.cs
- SetIterators.cs
- SelectionEditingBehavior.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- VisualProxy.cs
- DataRowCollection.cs
- Line.cs
- EndpointDiscoveryElement.cs
- SchemaElementLookUpTableEnumerator.cs
- AliasExpr.cs
- WindowsClaimSet.cs
- FloaterParaClient.cs
- SqlColumnizer.cs
- MessageSmuggler.cs
- ScriptBehaviorDescriptor.cs
- RegexMatchCollection.cs
- NewArray.cs
- SecurityCriticalDataForSet.cs
- CssTextWriter.cs
- LogManagementAsyncResult.cs
- SmiSettersStream.cs
- WorkerProcess.cs
- XslAstAnalyzer.cs
- CalendarDay.cs
- Thickness.cs
- ConfigXmlElement.cs
- KeyboardEventArgs.cs
- SafeRegistryKey.cs
- SamlDelegatingWriter.cs
- OleServicesContext.cs
- InputBindingCollection.cs
- SystemUnicastIPAddressInformation.cs
- Point3D.cs
- MsmqIntegrationProcessProtocolHandler.cs
- QilInvokeEarlyBound.cs
- IProvider.cs
- UnsafeNativeMethods.cs
- DefinitionBase.cs
- HttpContextServiceHost.cs
- SmiMetaDataProperty.cs
- ControlTemplate.cs
- DataGridViewEditingControlShowingEventArgs.cs
- BufferModeSettings.cs
- FixedSchema.cs
- PropertyInfoSet.cs
- DesignerVerbToolStripMenuItem.cs
- IntSecurity.cs
- ScrollProperties.cs
- Line.cs
- RequiredFieldValidator.cs