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
- SystemException.cs
- CodePageUtils.cs
- MenuItem.cs
- Separator.cs
- SoapBinding.cs
- IERequestCache.cs
- CqlQuery.cs
- SelectedGridItemChangedEvent.cs
- VerticalAlignConverter.cs
- Wrapper.cs
- FrameDimension.cs
- precedingquery.cs
- UnknownBitmapEncoder.cs
- validationstate.cs
- FormatConvertedBitmap.cs
- GlyphRun.cs
- LongValidatorAttribute.cs
- TrackingMemoryStreamFactory.cs
- XamlClipboardData.cs
- LifetimeServices.cs
- TableLayoutPanelResizeGlyph.cs
- SchemaTypeEmitter.cs
- XPathCompileException.cs
- ElapsedEventArgs.cs
- WebAdminConfigurationHelper.cs
- BridgeDataRecord.cs
- XmlSchemaInferenceException.cs
- RIPEMD160.cs
- Context.cs
- StoreAnnotationsMap.cs
- Compiler.cs
- SqlVersion.cs
- HttpStreamFormatter.cs
- HttpProtocolReflector.cs
- Pen.cs
- ColorComboBox.cs
- XPathChildIterator.cs
- ViewUtilities.cs
- ThicknessAnimationBase.cs
- MembershipSection.cs
- ToolStripComboBox.cs
- NullableDecimalMinMaxAggregationOperator.cs
- HttpPostLocalhostServerProtocol.cs
- DragDropManager.cs
- PublisherMembershipCondition.cs
- DataSourceXmlElementAttribute.cs
- SoapAttributes.cs
- AttributedMetaModel.cs
- ModelPerspective.cs
- SizeConverter.cs
- TailPinnedEventArgs.cs
- ParagraphResult.cs
- DetailsViewModeEventArgs.cs
- Quaternion.cs
- MetadataSource.cs
- EntryWrittenEventArgs.cs
- XmlSerializationReader.cs
- XmlParser.cs
- XmlBindingWorker.cs
- StandardBindingElementCollection.cs
- EastAsianLunisolarCalendar.cs
- NeutralResourcesLanguageAttribute.cs
- IdnMapping.cs
- DocumentApplication.cs
- Encoder.cs
- SubpageParagraph.cs
- StylusPlugInCollection.cs
- RemotingConfigParser.cs
- RenderOptions.cs
- SynchronizationContext.cs
- WebResponse.cs
- SecurityUtils.cs
- DBAsyncResult.cs
- HwndSource.cs
- GridItemPattern.cs
- RadioButtonList.cs
- XPathDescendantIterator.cs
- coordinatorfactory.cs
- GenericWebPart.cs
- UpdateCommandGenerator.cs
- _NetworkingPerfCounters.cs
- SmtpTransport.cs
- XPathQilFactory.cs
- UrlAuthorizationModule.cs
- FloatUtil.cs
- InputScope.cs
- RangeBase.cs
- PointLight.cs
- BitmapEffectCollection.cs
- ModifierKeysValueSerializer.cs
- XmlNullResolver.cs
- DynamicMethod.cs
- PopupControlService.cs
- ImagingCache.cs
- TextInfo.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- CodeStatement.cs
- PersistenceProviderBehavior.cs
- WindowsBrush.cs
- SafeArrayTypeMismatchException.cs