Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / DrawingVisualDrawingContext.cs / 1305600 / DrawingVisualDrawingContext.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2003 // // File: VisualDrawingContext.cs // // History: // [....]: 04/19/2003 // Created it based on the DrawingVisualDrawingContext used in the AvPhat branch. // [....]: 07/02/2003 // Renamed to RetainedDrawingContext, which derives from DrawingContext // [....]: 07/16/2003 // Renamed again to DrawingVisualDrawingContext, which derives from RenderDataDrawingContext // //----------------------------------------------------------------------------- using System; using System.Security.Permissions; using System.Windows; using System.Windows.Threading; using System.Windows.Media.Animation; using System.Windows.Media; using System.Windows.Media.Composition; using System.Diagnostics; using MS.Internal; namespace System.Windows.Media { ////// VisualDrawingContext - the DrawingContext for Visuals that can create it. /// internal class VisualDrawingContext : RenderDataDrawingContext { #region Constructors ////// Creates a drawing context for a DrawingVisual. /// The Visual must not be null. /// /// The Visual that created the DrawingContext, which must not be null. internal VisualDrawingContext( Visual ownerVisual ) { Debug.Assert(null != ownerVisual); _ownerVisual = ownerVisual; } #endregion Constructors #region Protected Methods ////// CloseCore - Implemented be derivees to Close the context. /// This will only be called once (if ever) per instance. /// /// The render data produced by this RenderDataDrawingContext. protected override void CloseCore(RenderData renderData) { Debug.Assert(null != _ownerVisual); _ownerVisual.RenderClose(renderData); #if DEBUG _ownerVisual = null; #endif } #endregion Protected Methods #region Private Fields private Visual _ownerVisual; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2003 // // File: VisualDrawingContext.cs // // History: // [....]: 04/19/2003 // Created it based on the DrawingVisualDrawingContext used in the AvPhat branch. // [....]: 07/02/2003 // Renamed to RetainedDrawingContext, which derives from DrawingContext // [....]: 07/16/2003 // Renamed again to DrawingVisualDrawingContext, which derives from RenderDataDrawingContext // //----------------------------------------------------------------------------- using System; using System.Security.Permissions; using System.Windows; using System.Windows.Threading; using System.Windows.Media.Animation; using System.Windows.Media; using System.Windows.Media.Composition; using System.Diagnostics; using MS.Internal; namespace System.Windows.Media { ////// VisualDrawingContext - the DrawingContext for Visuals that can create it. /// internal class VisualDrawingContext : RenderDataDrawingContext { #region Constructors ////// Creates a drawing context for a DrawingVisual. /// The Visual must not be null. /// /// The Visual that created the DrawingContext, which must not be null. internal VisualDrawingContext( Visual ownerVisual ) { Debug.Assert(null != ownerVisual); _ownerVisual = ownerVisual; } #endregion Constructors #region Protected Methods ////// CloseCore - Implemented be derivees to Close the context. /// This will only be called once (if ever) per instance. /// /// The render data produced by this RenderDataDrawingContext. protected override void CloseCore(RenderData renderData) { Debug.Assert(null != _ownerVisual); _ownerVisual.RenderClose(renderData); #if DEBUG _ownerVisual = null; #endif } #endregion Protected Methods #region Private Fields private Visual _ownerVisual; #endregion Private Fields } } // 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
- CatalogZone.cs
- NoneExcludedImageIndexConverter.cs
- ModelPropertyCollectionImpl.cs
- NativeMethods.cs
- cookieexception.cs
- CustomAttributeBuilder.cs
- BitmapEffectInputData.cs
- ZipIOLocalFileHeader.cs
- ConfigurationValidatorAttribute.cs
- DataChangedEventManager.cs
- EmbeddedMailObject.cs
- CompositionDesigner.cs
- ThreadExceptionEvent.cs
- MimeTypePropertyAttribute.cs
- CategoryEditor.cs
- ParamArrayAttribute.cs
- PackageRelationshipSelector.cs
- TextEffect.cs
- DependencyPropertyDescriptor.cs
- CaseInsensitiveHashCodeProvider.cs
- DecoratedNameAttribute.cs
- TemplateBindingExpression.cs
- AddInToken.cs
- DataGridViewImageColumn.cs
- UrlMappingsSection.cs
- HelpInfo.cs
- x509store.cs
- DataGridViewCellStyle.cs
- SqlInternalConnectionTds.cs
- Helpers.cs
- InstanceStoreQueryResult.cs
- JoinGraph.cs
- PrivilegedConfigurationManager.cs
- DataGridViewCellLinkedList.cs
- HwndKeyboardInputProvider.cs
- SendingRequestEventArgs.cs
- ImageKeyConverter.cs
- ValidatingCollection.cs
- LinkLabel.cs
- DataGridParentRows.cs
- IdentityModelStringsVersion1.cs
- DataGridItem.cs
- BookmarkEventArgs.cs
- WebServiceReceive.cs
- EndpointDesigner.cs
- ScriptResourceHandler.cs
- DeferredSelectedIndexReference.cs
- TextEffect.cs
- ExtendedProperty.cs
- LinkGrep.cs
- FilterInvalidBodyAccessException.cs
- SqlRecordBuffer.cs
- MenuStrip.cs
- RectKeyFrameCollection.cs
- SessionState.cs
- HyperLinkDesigner.cs
- Attributes.cs
- AdvancedBindingEditor.cs
- TreeChangeInfo.cs
- AssemblyInfo.cs
- DataGridViewComponentPropertyGridSite.cs
- XhtmlBasicPhoneCallAdapter.cs
- ProviderConnectionPoint.cs
- WebPartHeaderCloseVerb.cs
- ColumnMapVisitor.cs
- ObjectSet.cs
- ValueExpressions.cs
- Effect.cs
- brushes.cs
- DateTimeOffset.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- BaseCollection.cs
- BuilderPropertyEntry.cs
- PagedDataSource.cs
- AutomationTextAttribute.cs
- LinkDescriptor.cs
- FormClosedEvent.cs
- PolicyImporterElementCollection.cs
- OdbcDataAdapter.cs
- AttachedAnnotation.cs
- LinkGrep.cs
- ApplicationTrust.cs
- Keyboard.cs
- ServiceControllerDesigner.cs
- Int16.cs
- SQLStringStorage.cs
- SimpleWebHandlerParser.cs
- ImageClickEventArgs.cs
- DebuggerAttributes.cs
- ButtonFieldBase.cs
- CompilerCollection.cs
- PipeConnection.cs
- PerformanceCountersElement.cs
- ProfileInfo.cs
- ImageDrawing.cs
- XmlLangPropertyAttribute.cs
- ReadOnlyDataSourceView.cs
- ExpressionEvaluator.cs
- ConversionHelper.cs
- DbUpdateCommandTree.cs