Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media / DrawingVisualDrawingContext.cs / 1 / DrawingVisualDrawingContext.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2003 // // File: VisualDrawingContext.cs // // History: // GSchneid: 04/19/2003 // Created it based on the DrawingVisualDrawingContext used in the AvPhat branch. // adsmith: 07/02/2003 // Renamed to RetainedDrawingContext, which derives from DrawingContext // adsmith: 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: // GSchneid: 04/19/2003 // Created it based on the DrawingVisualDrawingContext used in the AvPhat branch. // adsmith: 07/02/2003 // Renamed to RetainedDrawingContext, which derives from DrawingContext // adsmith: 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
- TextDocumentView.cs
- Image.cs
- StringFreezingAttribute.cs
- ToolStrip.cs
- _TimerThread.cs
- SignedPkcs7.cs
- ExponentialEase.cs
- CatalogZoneBase.cs
- XPathNavigator.cs
- PageMediaType.cs
- WorkflowOwnershipException.cs
- ExpandCollapsePattern.cs
- XhtmlConformanceSection.cs
- QueryTask.cs
- HatchBrush.cs
- PrincipalPermissionMode.cs
- StringValueConverter.cs
- PrintPreviewGraphics.cs
- State.cs
- MeshGeometry3D.cs
- BinaryCommonClasses.cs
- CodeDirectoryCompiler.cs
- WarningException.cs
- ListViewDataItem.cs
- RelationshipSet.cs
- Win32.cs
- SoapFormatter.cs
- FixedSOMPageConstructor.cs
- CmsUtils.cs
- BasicExpressionVisitor.cs
- CacheMemory.cs
- UrlAuthFailureHandler.cs
- COM2PictureConverter.cs
- MsmqReceiveParameters.cs
- WebPartsSection.cs
- SafeHandle.cs
- XmlHierarchicalDataSourceView.cs
- WebServiceErrorEvent.cs
- InkCanvasSelection.cs
- ObjectConverter.cs
- SqlFileStream.cs
- XmlnsDictionary.cs
- JournalNavigationScope.cs
- ValidationEventArgs.cs
- SHA256Managed.cs
- DataSetMappper.cs
- XPathItem.cs
- XmlTextReaderImpl.cs
- newitemfactory.cs
- SafeWaitHandle.cs
- StringSource.cs
- ChtmlImageAdapter.cs
- CustomLineCap.cs
- DataGridViewAutoSizeModeEventArgs.cs
- XmlNode.cs
- SemanticResultKey.cs
- TextBreakpoint.cs
- WebPartHeaderCloseVerb.cs
- StorageEntityContainerMapping.cs
- IFlowDocumentViewer.cs
- SafeBitVector32.cs
- TagPrefixCollection.cs
- ChildTable.cs
- DoubleAnimationClockResource.cs
- TypeForwardedToAttribute.cs
- DataGridCaption.cs
- ResourceManager.cs
- PassportAuthenticationEventArgs.cs
- DataSourceCache.cs
- HostProtectionException.cs
- BindingValueChangedEventArgs.cs
- DataRecordObjectView.cs
- DataKeyCollection.cs
- ReservationCollection.cs
- TextHidden.cs
- XmlSchemaObjectTable.cs
- TreeViewCancelEvent.cs
- EntityDataSourceView.cs
- UInt64Converter.cs
- ToolBarTray.cs
- PropertyItemInternal.cs
- ColumnReorderedEventArgs.cs
- BoolLiteral.cs
- basecomparevalidator.cs
- CompiledAction.cs
- SchemaType.cs
- ExternalException.cs
- FixedPageAutomationPeer.cs
- ExtensionWindowResizeGrip.cs
- RemotingConfiguration.cs
- DataGridHyperlinkColumn.cs
- EventLogEntryCollection.cs
- SmtpAuthenticationManager.cs
- TextEditorCharacters.cs
- PropertyMapper.cs
- OdbcConnectionPoolProviderInfo.cs
- SplineKeyFrames.cs
- ToolStripItemImageRenderEventArgs.cs
- BindingListCollectionView.cs
- XamlBuildTaskServices.cs