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
- GridViewDeletedEventArgs.cs
- Win32SafeHandles.cs
- DynamicDocumentPaginator.cs
- HyperlinkAutomationPeer.cs
- CommandBinding.cs
- SchemaComplexType.cs
- UrlMappingsModule.cs
- UpDownEvent.cs
- DbParameterHelper.cs
- DataRowExtensions.cs
- ClassicBorderDecorator.cs
- ThemeDictionaryExtension.cs
- SafeRightsManagementQueryHandle.cs
- TreeNode.cs
- ProxyManager.cs
- TypeUtil.cs
- HttpRawResponse.cs
- ObjectManager.cs
- HtmlLinkAdapter.cs
- AliasedSlot.cs
- oledbconnectionstring.cs
- XhtmlBasicTextBoxAdapter.cs
- GroupStyle.cs
- EntityDataSourceDataSelection.cs
- EntityDataSourceMemberPath.cs
- OdbcConnectionFactory.cs
- SqlInfoMessageEvent.cs
- NativeCppClassAttribute.cs
- PlanCompilerUtil.cs
- ProvideValueServiceProvider.cs
- ImageIndexConverter.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- XmlProcessingInstruction.cs
- EntityContainerEntitySetDefiningQuery.cs
- CodeCatchClause.cs
- AssemblyName.cs
- ComponentDispatcher.cs
- HMACSHA1.cs
- FixUpCollection.cs
- Task.cs
- AuthenticationManager.cs
- FileDocument.cs
- HttpListenerException.cs
- DataSourceGroupCollection.cs
- StringUtil.cs
- XPathNavigatorKeyComparer.cs
- MarginsConverter.cs
- DiscoveryClientDuplexChannel.cs
- CommonRemoteMemoryBlock.cs
- Geometry3D.cs
- RuntimeConfig.cs
- ClientBuildManagerCallback.cs
- SessionSwitchEventArgs.cs
- MissingFieldException.cs
- PerformanceCounterPermission.cs
- basevalidator.cs
- SoapInteropTypes.cs
- TextBoxView.cs
- Triangle.cs
- TemplateParser.cs
- SpotLight.cs
- DeriveBytes.cs
- BoolLiteral.cs
- RuntimeHandles.cs
- GridViewRowEventArgs.cs
- DbConnectionStringCommon.cs
- AppSettingsSection.cs
- DragStartedEventArgs.cs
- XmlDocument.cs
- NameSpaceExtractor.cs
- EncryptedPackageFilter.cs
- AlgoModule.cs
- DataGridRow.cs
- SignatureHelper.cs
- XPathScanner.cs
- XmlDataSourceNodeDescriptor.cs
- ValuePatternIdentifiers.cs
- sqlmetadatafactory.cs
- SelectionEditor.cs
- Thickness.cs
- XmlDocumentSerializer.cs
- InsufficientExecutionStackException.cs
- TextRunCache.cs
- PackageRelationshipCollection.cs
- CodeGenerationManager.cs
- ScriptingProfileServiceSection.cs
- ListSortDescription.cs
- EraserBehavior.cs
- EdgeProfileValidation.cs
- SafeEventLogWriteHandle.cs
- Menu.cs
- ContextQuery.cs
- DeploymentExceptionMapper.cs
- CreateUserErrorEventArgs.cs
- Collection.cs
- StateMachineWorkflowInstance.cs
- SimpleType.cs
- BitmapEncoder.cs
- SyntaxCheck.cs
- VerificationException.cs