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
- DispatcherOperation.cs
- InvalidDataContractException.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- TableItemStyle.cs
- DictationGrammar.cs
- xmlformatgeneratorstatics.cs
- ConfigurationLocation.cs
- DesignerFrame.cs
- MimeMapping.cs
- FontSourceCollection.cs
- SqlClientFactory.cs
- FixedTextView.cs
- XmlnsDictionary.cs
- AffineTransform3D.cs
- TiffBitmapEncoder.cs
- Stacktrace.cs
- FreezableDefaultValueFactory.cs
- DesignTimeTemplateParser.cs
- SplitterPanel.cs
- XmlWriterDelegator.cs
- X509KeyIdentifierClauseType.cs
- ProcessHost.cs
- HostingPreferredMapPath.cs
- FragmentQueryKB.cs
- OleDbException.cs
- PluggableProtocol.cs
- MasterPageCodeDomTreeGenerator.cs
- CollectionsUtil.cs
- ObjectDataSourceEventArgs.cs
- OracleBFile.cs
- ResourcePermissionBaseEntry.cs
- CollectionBuilder.cs
- ExtendedPropertyCollection.cs
- MethodSignatureGenerator.cs
- TreeNode.cs
- ParallelTimeline.cs
- AvTraceFormat.cs
- SendingRequestEventArgs.cs
- ValidatorAttribute.cs
- COM2AboutBoxPropertyDescriptor.cs
- TextBoxBase.cs
- XamlHttpHandlerFactory.cs
- FloaterParagraph.cs
- GestureRecognitionResult.cs
- InstanceHandleConflictException.cs
- OleDbCommand.cs
- ColorMatrix.cs
- CustomBindingCollectionElement.cs
- ScalarType.cs
- SHA1Managed.cs
- PackageProperties.cs
- XamlPathDataSerializer.cs
- PtsPage.cs
- TextElementEnumerator.cs
- DataPagerField.cs
- Int32KeyFrameCollection.cs
- Normalization.cs
- XmlCountingReader.cs
- ChtmlPhoneCallAdapter.cs
- InvalidDataException.cs
- AsynchronousChannelMergeEnumerator.cs
- ShellProvider.cs
- EntryWrittenEventArgs.cs
- CompilerCollection.cs
- CompressionTransform.cs
- TagElement.cs
- BitmapFrameEncode.cs
- PreloadedPackages.cs
- TextureBrush.cs
- BaseCodePageEncoding.cs
- LogLogRecordEnumerator.cs
- SecondaryIndexList.cs
- RequestQueryParser.cs
- StylusShape.cs
- SqlClientFactory.cs
- WebConfigurationHost.cs
- hebrewshape.cs
- SQLMoney.cs
- DelegateSerializationHolder.cs
- VariableQuery.cs
- Command.cs
- PreviewKeyDownEventArgs.cs
- DataAdapter.cs
- RelationshipFixer.cs
- BinaryObjectWriter.cs
- FacetDescription.cs
- VersionPair.cs
- ExtendedTransformFactory.cs
- ClientProxyGenerator.cs
- XmlSchemaObjectTable.cs
- TraceListeners.cs
- GuidConverter.cs
- AssertUtility.cs
- CrossSiteScriptingValidation.cs
- SqlNamer.cs
- DropSourceBehavior.cs
- PipelineComponent.cs
- PersianCalendar.cs
- XmlSchemaObjectCollection.cs
- SqlServer2KCompatibilityCheck.cs