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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GridViewColumn.cs
- CompoundFileDeflateTransform.cs
- HttpProtocolImporter.cs
- Form.cs
- State.cs
- LogExtentCollection.cs
- SqlBulkCopyColumnMapping.cs
- XPathDocumentNavigator.cs
- CompilerInfo.cs
- StrokeIntersection.cs
- TextEditorThreadLocalStore.cs
- DependencyObject.cs
- BuildManager.cs
- CodeMethodInvokeExpression.cs
- DataChangedEventManager.cs
- GridSplitter.cs
- ContextBase.cs
- MimeImporter.cs
- SoapMessage.cs
- DistinctQueryOperator.cs
- SafeHandles.cs
- Internal.cs
- DependencyPropertyConverter.cs
- Material.cs
- OrderByQueryOptionExpression.cs
- Geometry.cs
- ThrowHelper.cs
- PanelStyle.cs
- DateTimePicker.cs
- SlipBehavior.cs
- ZipIOFileItemStream.cs
- DataComponentNameHandler.cs
- ListBase.cs
- FixUp.cs
- BrowserInteropHelper.cs
- IOThreadTimer.cs
- SwitchElementsCollection.cs
- ExpressionList.cs
- DSASignatureFormatter.cs
- HwndProxyElementProvider.cs
- PropertyToken.cs
- ParameterBuilder.cs
- InputScopeAttribute.cs
- GridViewRowEventArgs.cs
- ConnectionOrientedTransportManager.cs
- LocalFileSettingsProvider.cs
- StyleCollectionEditor.cs
- PageCodeDomTreeGenerator.cs
- documentsequencetextcontainer.cs
- TypefaceMetricsCache.cs
- BinaryReader.cs
- ComponentChangingEvent.cs
- StreamMarshaler.cs
- FixedFindEngine.cs
- DrawingDrawingContext.cs
- AttributeData.cs
- SafeNativeMethods.cs
- HotSpot.cs
- OracleNumber.cs
- DecoderBestFitFallback.cs
- OperandQuery.cs
- SystemMulticastIPAddressInformation.cs
- BitVec.cs
- CompositeTypefaceMetrics.cs
- CommandField.cs
- SmiEventStream.cs
- SQLCharsStorage.cs
- XPathNodeInfoAtom.cs
- BinaryConverter.cs
- ObjectViewEntityCollectionData.cs
- TaskFormBase.cs
- HtmlInputHidden.cs
- DataGridViewTextBoxColumn.cs
- KeyConverter.cs
- ProxyRpc.cs
- TextWriterTraceListener.cs
- ListViewItemMouseHoverEvent.cs
- DockPattern.cs
- GlyphShapingProperties.cs
- WebPartDescription.cs
- SiteMapDataSourceView.cs
- HttpCachePolicyElement.cs
- DefaultPropertyAttribute.cs
- ControlFilterExpression.cs
- PageCodeDomTreeGenerator.cs
- BoolExpr.cs
- TreeViewBindingsEditorForm.cs
- SystemNetHelpers.cs
- Expression.cs
- StreamGeometry.cs
- dbdatarecord.cs
- CSharpCodeProvider.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- WebPartConnectionCollection.cs
- SettingsContext.cs
- EntityContainer.cs
- Preprocessor.cs
- PatternMatcher.cs
- GradientStopCollection.cs
- MenuItemStyle.cs