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
- InOutArgumentConverter.cs
- DefaultAssemblyResolver.cs
- PeerCollaborationPermission.cs
- Oid.cs
- LocatorPart.cs
- ActivityScheduledQuery.cs
- PathFigure.cs
- DataRelationCollection.cs
- MimeFormatter.cs
- UIAgentAsyncBeginRequest.cs
- SerializationInfo.cs
- OracleString.cs
- CheckBox.cs
- TextBoxView.cs
- IDispatchConstantAttribute.cs
- WebPartConnectVerb.cs
- InstancePersistence.cs
- ReadOnlyHierarchicalDataSource.cs
- TextComposition.cs
- AnnotationService.cs
- Int32CAMarshaler.cs
- DataControlHelper.cs
- MarshalByRefObject.cs
- LocalizationComments.cs
- RuleInfoComparer.cs
- DelegatedStream.cs
- XhtmlTextWriter.cs
- EnumBuilder.cs
- MessageLogTraceRecord.cs
- MouseGesture.cs
- XmlUtil.cs
- ChildrenQuery.cs
- XmlLoader.cs
- Vector3DKeyFrameCollection.cs
- SocketPermission.cs
- SocketAddress.cs
- ListViewEditEventArgs.cs
- SafeSystemMetrics.cs
- IgnoreFlushAndCloseStream.cs
- WorkflowViewElement.cs
- DataServiceExpressionVisitor.cs
- RegularExpressionValidator.cs
- ForeignKeyConstraint.cs
- CompilationSection.cs
- ComponentDispatcher.cs
- ListItem.cs
- XmlWriterSettings.cs
- SiteOfOriginContainer.cs
- DropAnimation.xaml.cs
- Content.cs
- ListItemViewControl.cs
- HashCodeCombiner.cs
- XPathException.cs
- ModulesEntry.cs
- Rect3D.cs
- ClientRoleProvider.cs
- DocumentSequence.cs
- PageAsyncTaskManager.cs
- XmlAnyAttributeAttribute.cs
- BasicCellRelation.cs
- RichTextBoxAutomationPeer.cs
- ScriptControl.cs
- KeyedCollection.cs
- ToolboxComponentsCreatedEventArgs.cs
- FragmentNavigationEventArgs.cs
- SqlSelectStatement.cs
- ExtensionQuery.cs
- PeerCollaborationPermission.cs
- CodeStatementCollection.cs
- CommentEmitter.cs
- Material.cs
- ObjectListField.cs
- UnsafeMethods.cs
- CodeFieldReferenceExpression.cs
- TranslateTransform.cs
- Padding.cs
- ActiveXSite.cs
- PageSettings.cs
- OracleRowUpdatingEventArgs.cs
- RemotingServices.cs
- GroupItem.cs
- Section.cs
- Int32CollectionValueSerializer.cs
- DataControlFieldHeaderCell.cs
- ThreadPool.cs
- UserControlAutomationPeer.cs
- TypeDescriptor.cs
- UriExt.cs
- HttpGetClientProtocol.cs
- UInt32Converter.cs
- EncodingTable.cs
- SortedDictionary.cs
- DataObjectAttribute.cs
- SqlSupersetValidator.cs
- EnvironmentPermission.cs
- ManagedIStream.cs
- ToolStripDropDownItem.cs
- SafeReadContext.cs
- DefaultBindingPropertyAttribute.cs
- TextSerializer.cs