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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ITextView.cs
- CollectionChangeEventArgs.cs
- SafeRegistryHandle.cs
- TemplateBindingExpression.cs
- Exceptions.cs
- BrowserCapabilitiesFactoryBase.cs
- ExtractorMetadata.cs
- FrameDimension.cs
- VirtualPathData.cs
- CardSpaceSelector.cs
- DocumentViewerConstants.cs
- FormatConvertedBitmap.cs
- ParameterModifier.cs
- BeginEvent.cs
- OdbcRowUpdatingEvent.cs
- FixedHighlight.cs
- VisualStyleRenderer.cs
- SplitContainer.cs
- ImageListDesigner.cs
- PlacementWorkspace.cs
- SecurityTokenReferenceStyle.cs
- RandomNumberGenerator.cs
- SourceFilter.cs
- UrlPropertyAttribute.cs
- PeerMessageDispatcher.cs
- SystemIPAddressInformation.cs
- EntityDataSourceContextCreatedEventArgs.cs
- EntityContainerEmitter.cs
- XhtmlBasicCalendarAdapter.cs
- DirectionalLight.cs
- DataGridColumnCollection.cs
- CqlIdentifiers.cs
- iisPickupDirectory.cs
- WinCategoryAttribute.cs
- EntityDataSourceStatementEditorForm.cs
- followingsibling.cs
- DemultiplexingClientMessageFormatter.cs
- Exceptions.cs
- ZipFileInfo.cs
- WebHttpElement.cs
- DataGridViewSelectedRowCollection.cs
- DataGridViewDesigner.cs
- CharStorage.cs
- SpellerHighlightLayer.cs
- PreviewPrintController.cs
- WebDescriptionAttribute.cs
- UnsafePeerToPeerMethods.cs
- Pkcs7Recipient.cs
- BufferedGraphicsContext.cs
- DataServiceEntityAttribute.cs
- XmlQuerySequence.cs
- IfAction.cs
- DataGridViewAdvancedBorderStyle.cs
- CollectionBuilder.cs
- ToolZone.cs
- AlphabetConverter.cs
- Serializer.cs
- StorageEntityTypeMapping.cs
- LocalizationComments.cs
- ExpressionLexer.cs
- WebPartHelpVerb.cs
- LabelLiteral.cs
- ServicePointManagerElement.cs
- ImageClickEventArgs.cs
- SortExpressionBuilder.cs
- SchemaImporterExtensionElement.cs
- HtmlTableRow.cs
- itemelement.cs
- Volatile.cs
- TypeConverterAttribute.cs
- CollectionView.cs
- LocationReferenceEnvironment.cs
- IntegerCollectionEditor.cs
- SqlNotificationEventArgs.cs
- PenLineJoinValidation.cs
- CrossAppDomainChannel.cs
- BaseCollection.cs
- InvalidPropValue.cs
- BinaryReader.cs
- Assembly.cs
- CheckBox.cs
- WebPartRestoreVerb.cs
- VirtualPathProvider.cs
- PolicyUtility.cs
- GatewayDefinition.cs
- LazyTextWriterCreator.cs
- XmlWrappingReader.cs
- CommonGetThemePartSize.cs
- ParseChildrenAsPropertiesAttribute.cs
- XmlSchemaDocumentation.cs
- GridViewCommandEventArgs.cs
- KnownTypesHelper.cs
- ADMembershipProvider.cs
- BindingSourceDesigner.cs
- SerializationTrace.cs
- ThrowOnMultipleAssignment.cs
- WorkItem.cs
- SystemTcpStatistics.cs
- InitializationEventAttribute.cs
- RegexCompilationInfo.cs