Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- UnknownBitmapEncoder.cs
- ToolStripLocationCancelEventArgs.cs
- _AcceptOverlappedAsyncResult.cs
- ConstraintStruct.cs
- ColorTranslator.cs
- DateTime.cs
- HtmlControlPersistable.cs
- HtmlProps.cs
- BitArray.cs
- DataControlCommands.cs
- CustomValidator.cs
- DataServiceProviderWrapper.cs
- FixedSOMGroup.cs
- ManageRequest.cs
- Math.cs
- DataGridColumnCollection.cs
- OverflowException.cs
- SortedList.cs
- ReferencedAssembly.cs
- CultureSpecificStringDictionary.cs
- WindowsToolbar.cs
- DeploymentExceptionMapper.cs
- BinaryParser.cs
- DataServiceHost.cs
- PathData.cs
- DataListItemCollection.cs
- ObjectQuery.cs
- PropertyTabAttribute.cs
- UnknownBitmapDecoder.cs
- NegatedConstant.cs
- Stackframe.cs
- TransformDescriptor.cs
- CuspData.cs
- QilPatternVisitor.cs
- MessagePartDescriptionCollection.cs
- CollectionContainer.cs
- DateTimeFormat.cs
- COSERVERINFO.cs
- BitmapImage.cs
- ControlBindingsCollection.cs
- GeneralTransform3DTo2D.cs
- ItemCollection.cs
- RijndaelManaged.cs
- EditingCoordinator.cs
- Splitter.cs
- AuthenticationException.cs
- HwndSubclass.cs
- PointAnimationUsingKeyFrames.cs
- SiteMapHierarchicalDataSourceView.cs
- DataGridViewHeaderCell.cs
- CompiledQuery.cs
- ContainerCodeDomSerializer.cs
- Monitor.cs
- TreeViewCancelEvent.cs
- AppDomainShutdownMonitor.cs
- TransactionTraceIdentifier.cs
- OracleInternalConnection.cs
- ListItemCollection.cs
- MembershipAdapter.cs
- NativeMethodsCLR.cs
- CompositeActivityTypeDescriptor.cs
- TextViewBase.cs
- FtpRequestCacheValidator.cs
- OracleTransaction.cs
- CompilerCollection.cs
- keycontainerpermission.cs
- ListViewInsertedEventArgs.cs
- DataGridCellsPanel.cs
- ThemeDirectoryCompiler.cs
- NonClientArea.cs
- ImageSourceValueSerializer.cs
- Walker.cs
- Msec.cs
- ElapsedEventArgs.cs
- ObjectViewEntityCollectionData.cs
- DesignerLabelAdapter.cs
- TableLayoutCellPaintEventArgs.cs
- FileDialogCustomPlacesCollection.cs
- SystemIPv6InterfaceProperties.cs
- SafeNativeMethodsOther.cs
- DataGridClipboardHelper.cs
- TypeUnloadedException.cs
- EdmProperty.cs
- AppDomainUnloadedException.cs
- TextSerializer.cs
- DataGridItem.cs
- FixUpCollection.cs
- UnsafeNativeMethods.cs
- PropVariant.cs
- EventRouteFactory.cs
- SqlUserDefinedTypeAttribute.cs
- ModulesEntry.cs
- XpsDigitalSignature.cs
- MetadataArtifactLoaderCompositeFile.cs
- DocumentViewerBaseAutomationPeer.cs
- StyleCollection.cs
- SoapTypeAttribute.cs
- XmlComplianceUtil.cs
- XmlSchema.cs
- InkCanvasAutomationPeer.cs