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
- ResourcePool.cs
- Attributes.cs
- _SafeNetHandles.cs
- ServiceProviders.cs
- ADMembershipProvider.cs
- XmlSchemaValidationException.cs
- GPPOINTF.cs
- BindMarkupExtensionSerializer.cs
- WebZone.cs
- sqlnorm.cs
- DbProviderFactories.cs
- Deflater.cs
- SecurityPolicySection.cs
- SqlDataSourceStatusEventArgs.cs
- ClientSession.cs
- TextDecorationLocationValidation.cs
- ParserContext.cs
- AuthenticationModuleElement.cs
- ClientBuildManager.cs
- SqlUdtInfo.cs
- ListComponentEditorPage.cs
- WebResponse.cs
- NewArrayExpression.cs
- InvalidOperationException.cs
- tooltip.cs
- FloaterBaseParagraph.cs
- EntityRecordInfo.cs
- SafeNativeMethods.cs
- StorageInfo.cs
- BevelBitmapEffect.cs
- RelatedPropertyManager.cs
- FilteredReadOnlyMetadataCollection.cs
- SmtpCommands.cs
- HijriCalendar.cs
- Underline.cs
- XmlLoader.cs
- DataKeyCollection.cs
- DbProviderSpecificTypePropertyAttribute.cs
- HtmlDocument.cs
- StringUtil.cs
- IPPacketInformation.cs
- DataServiceConfiguration.cs
- ClosableStream.cs
- MetadataUtil.cs
- CodeFieldReferenceExpression.cs
- HtmlDocument.cs
- MessageHeaderDescriptionCollection.cs
- QilScopedVisitor.cs
- RuleConditionDialog.cs
- XpsImageSerializationService.cs
- initElementDictionary.cs
- MessageBox.cs
- RadioButton.cs
- DBBindings.cs
- AmbientLight.cs
- StyleModeStack.cs
- InheritanceAttribute.cs
- BufferAllocator.cs
- MsmqIntegrationProcessProtocolHandler.cs
- OrderedDictionaryStateHelper.cs
- ApplicationId.cs
- AdapterDictionary.cs
- CompilerErrorCollection.cs
- SafeSecurityHandles.cs
- OdbcInfoMessageEvent.cs
- OutputCacheSettings.cs
- BuiltInExpr.cs
- HexParser.cs
- PrintPreviewDialog.cs
- AncestorChangedEventArgs.cs
- CommandHelper.cs
- MemberAccessException.cs
- WebPartConnectionsConnectVerb.cs
- APCustomTypeDescriptor.cs
- DesignerEditorPartChrome.cs
- ExecutedRoutedEventArgs.cs
- OutgoingWebResponseContext.cs
- XmlMembersMapping.cs
- ArrayList.cs
- webbrowsersite.cs
- Size.cs
- WriteTimeStream.cs
- SoapTypeAttribute.cs
- _LoggingObject.cs
- GacUtil.cs
- TreeNodeStyle.cs
- DebugHandleTracker.cs
- Handle.cs
- DebugView.cs
- WebPartConnectionsCancelVerb.cs
- EditingScopeUndoUnit.cs
- querybuilder.cs
- ToolBarOverflowPanel.cs
- UrlMappingCollection.cs
- PageCatalogPart.cs
- QueueProcessor.cs
- GridViewUpdatedEventArgs.cs
- SoapFault.cs
- MetaModel.cs
- Brush.cs