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
- XmlDocumentSurrogate.cs
- EncoderBestFitFallback.cs
- View.cs
- GlobalizationSection.cs
- ResolveInfo.cs
- FileVersion.cs
- ListBoxItem.cs
- AssertFilter.cs
- CommentEmitter.cs
- MsmqIntegrationElement.cs
- CallbackTimeoutsBehavior.cs
- Label.cs
- CreatingCookieEventArgs.cs
- ScriptRef.cs
- DocobjHost.cs
- ObjectParameterCollection.cs
- NavigationPropertyEmitter.cs
- DataBindingExpressionBuilder.cs
- StaticContext.cs
- SchemaDeclBase.cs
- pingexception.cs
- Mutex.cs
- BackgroundWorker.cs
- DesignUtil.cs
- CompensationDesigner.cs
- SecurityContextSecurityToken.cs
- SharedStatics.cs
- BinaryMessageEncodingElement.cs
- OracleException.cs
- ISessionStateStore.cs
- SqlMultiplexer.cs
- QueryableFilterRepeater.cs
- BasicKeyConstraint.cs
- ReflectionHelper.cs
- ExtentCqlBlock.cs
- PersonalizablePropertyEntry.cs
- SystemResources.cs
- EntityDataSourceContainerNameConverter.cs
- DataGridColumnCollection.cs
- ExpressionBinding.cs
- QilList.cs
- UnsettableComboBox.cs
- SystemBrushes.cs
- PickBranch.cs
- TypeUnloadedException.cs
- ClonableStack.cs
- Matrix.cs
- RegexNode.cs
- PasswordBox.cs
- NameValueCollection.cs
- DoubleLinkList.cs
- TransformedBitmap.cs
- KeyedCollection.cs
- SpecularMaterial.cs
- System.Data_BID.cs
- SqlCrossApplyToCrossJoin.cs
- SizeAnimationClockResource.cs
- LogReservationCollection.cs
- ProbeMatchesMessageCD1.cs
- ConnectionPoint.cs
- WindowsUpDown.cs
- TextServicesCompartmentContext.cs
- ReflectionUtil.cs
- RadioButtonList.cs
- XPathNode.cs
- RelationshipFixer.cs
- MetadataWorkspace.cs
- ControlParameter.cs
- SemanticResolver.cs
- VBIdentifierName.cs
- XmlCDATASection.cs
- OutOfProcStateClientManager.cs
- AdornerLayer.cs
- CrossAppDomainChannel.cs
- SinglePhaseEnlistment.cs
- XsltContext.cs
- FloaterBaseParagraph.cs
- FieldAccessException.cs
- PagedDataSource.cs
- Crc32.cs
- RangeValuePattern.cs
- XmlSchemaCollection.cs
- StylusButtonEventArgs.cs
- Emitter.cs
- TreeNodeConverter.cs
- SqlCommandBuilder.cs
- MachinePropertyVariants.cs
- WebAdminConfigurationHelper.cs
- ErrorInfoXmlDocument.cs
- RegexMatchCollection.cs
- CultureMapper.cs
- MailMessageEventArgs.cs
- CodeCatchClauseCollection.cs
- TableLayout.cs
- SafeLocalMemHandle.cs
- Roles.cs
- DeclaredTypeValidatorAttribute.cs
- PropertyChangingEventArgs.cs
- SwitchExpression.cs
- safex509handles.cs