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
- CloudCollection.cs
- BinaryMethodMessage.cs
- RegistryPermission.cs
- TextTreeText.cs
- CollectionConverter.cs
- shaperfactoryquerycacheentry.cs
- Set.cs
- DesignerDataSourceView.cs
- DataGridAddNewRow.cs
- BitStack.cs
- DirectoryObjectSecurity.cs
- MouseActionValueSerializer.cs
- CompilerError.cs
- EventLogPermissionAttribute.cs
- TextServicesLoader.cs
- PropertyDescriptorCollection.cs
- ContactManager.cs
- PeerOutputChannel.cs
- NavigateEvent.cs
- XmlSchemaSimpleType.cs
- SemaphoreSecurity.cs
- XmlSchemaObjectCollection.cs
- TemplatedWizardStep.cs
- ControlBuilder.cs
- SafeEventLogWriteHandle.cs
- WebScriptMetadataFormatter.cs
- EdmFunctionAttribute.cs
- ComponentEvent.cs
- WmfPlaceableFileHeader.cs
- Utils.cs
- RequestCacheManager.cs
- xamlnodes.cs
- SubstitutionResponseElement.cs
- MatrixTransform3D.cs
- Operators.cs
- TreeView.cs
- ReferencedAssembly.cs
- AssemblyResourceLoader.cs
- ListBase.cs
- OleDbReferenceCollection.cs
- DateTimeHelper.cs
- ActivityStatusChangeEventArgs.cs
- IdnMapping.cs
- StateMachineWorkflowInstance.cs
- Filter.cs
- System.Data_BID.cs
- PageResolution.cs
- NameTable.cs
- SimpleHandlerBuildProvider.cs
- NetworkAddressChange.cs
- ObjectSet.cs
- CopyAction.cs
- ComboBoxAutomationPeer.cs
- ValueTypeFixupInfo.cs
- ValueOfAction.cs
- ArraySortHelper.cs
- ManagementOptions.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- TailCallAnalyzer.cs
- CodeTypeDeclaration.cs
- PagesSection.cs
- RepeatInfo.cs
- DynamicActivityXamlReader.cs
- MailAddress.cs
- TextServicesProperty.cs
- CustomAttribute.cs
- LocalsItemDescription.cs
- ShadowGlyph.cs
- InputMethodStateChangeEventArgs.cs
- BitmapEffectrendercontext.cs
- Identity.cs
- DiscreteKeyFrames.cs
- BoolLiteral.cs
- RsaSecurityKey.cs
- BitmapData.cs
- StretchValidation.cs
- SessionPageStateSection.cs
- PageEventArgs.cs
- ScriptReference.cs
- AuthenticationSection.cs
- IdentifierService.cs
- MenuItemCollection.cs
- EventLogEntryCollection.cs
- BeginEvent.cs
- DispatcherProcessingDisabled.cs
- MenuItem.cs
- ButtonAutomationPeer.cs
- RecommendedAsConfigurableAttribute.cs
- GeometryCombineModeValidation.cs
- Sql8ConformanceChecker.cs
- HttpCachePolicyBase.cs
- ProfileWorkflowElement.cs
- InfoCardSymmetricCrypto.cs
- Emitter.cs
- SchemaElementLookUpTableEnumerator.cs
- SerializationFieldInfo.cs
- SqlDataSourceStatusEventArgs.cs
- x509utils.cs
- NonBatchDirectoryCompiler.cs
- Transactions.cs