Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextRenderer.cs
- SmtpMail.cs
- StateInitializationDesigner.cs
- BigIntegerStorage.cs
- Privilege.cs
- Guid.cs
- CodeArrayIndexerExpression.cs
- SplitterCancelEvent.cs
- ComPlusContractBehavior.cs
- ArgumentException.cs
- safelinkcollection.cs
- BasicExpressionVisitor.cs
- RecordBuilder.cs
- FatalException.cs
- CommonGetThemePartSize.cs
- RunWorkerCompletedEventArgs.cs
- WebServiceErrorEvent.cs
- ShaperBuffers.cs
- WindowsGraphicsWrapper.cs
- PlatformCulture.cs
- jithelpers.cs
- HttpCookiesSection.cs
- PlanCompiler.cs
- GeometryDrawing.cs
- OraclePermission.cs
- MarkupCompilePass2.cs
- EncryptedPackageFilter.cs
- EntityDataSourceValidationException.cs
- BoolExpression.cs
- SamlAttribute.cs
- EventRecordWrittenEventArgs.cs
- _ShellExpression.cs
- CustomErrorCollection.cs
- PrivilegedConfigurationManager.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- Rect3DConverter.cs
- DropAnimation.xaml.cs
- OleDbWrapper.cs
- ConfigurationSectionGroup.cs
- SoapAttributeOverrides.cs
- XmlMapping.cs
- ToolStripProgressBar.cs
- DataControlCommands.cs
- PointCollectionValueSerializer.cs
- TypeReference.cs
- ISFClipboardData.cs
- CultureInfoConverter.cs
- Executor.cs
- HWStack.cs
- MetadataArtifactLoaderFile.cs
- StringToken.cs
- DataBoundControlDesigner.cs
- MaterialGroup.cs
- PartialCachingControl.cs
- SafeHandles.cs
- XmlUtf8RawTextWriter.cs
- SynchronizedInputProviderWrapper.cs
- Tracking.cs
- DataGridParentRows.cs
- KeyValueConfigurationCollection.cs
- PropertyEmitter.cs
- AuthorizationRuleCollection.cs
- DataGridViewEditingControlShowingEventArgs.cs
- IPeerNeighbor.cs
- PropertyNames.cs
- XPathScanner.cs
- DataGridViewCellValueEventArgs.cs
- GenerateTemporaryTargetAssembly.cs
- HatchBrush.cs
- PerfCounterSection.cs
- contentDescriptor.cs
- ObjectListCommandCollection.cs
- CodeEntryPointMethod.cs
- ObjectPersistData.cs
- LinqDataSource.cs
- ContentType.cs
- PointHitTestParameters.cs
- nulltextcontainer.cs
- AxisAngleRotation3D.cs
- EndPoint.cs
- DynamicHyperLink.cs
- XmlSchemaAttributeGroupRef.cs
- WindowsToolbar.cs
- DataGridColumn.cs
- NTAccount.cs
- MILUtilities.cs
- safelink.cs
- MarshalByValueComponent.cs
- Stackframe.cs
- WeakRefEnumerator.cs
- GCHandleCookieTable.cs
- XmlNavigatorFilter.cs
- SqlNodeAnnotation.cs
- SmtpMail.cs
- CallbackHandler.cs
- DataList.cs
- PrivateFontCollection.cs
- PageClientProxyGenerator.cs
- DesignerActionHeaderItem.cs
- ColorAnimationUsingKeyFrames.cs