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
- EntityDataSourceStatementEditor.cs
- ValidationError.cs
- SafeMILHandle.cs
- TextSelectionProcessor.cs
- DataColumnCollection.cs
- DelegateBodyWriter.cs
- EnumerableRowCollectionExtensions.cs
- TableLayoutPanel.cs
- odbcmetadatacollectionnames.cs
- Array.cs
- ProgressBarHighlightConverter.cs
- UniformGrid.cs
- BooleanToVisibilityConverter.cs
- XmlDeclaration.cs
- CommonXSendMessage.cs
- __Filters.cs
- LingerOption.cs
- Options.cs
- MDIControlStrip.cs
- Metafile.cs
- StylusButtonCollection.cs
- BooleanConverter.cs
- NativeMethods.cs
- VectorAnimationBase.cs
- MouseBinding.cs
- DataGridViewComboBoxCell.cs
- XmlUtilWriter.cs
- DeleteStoreRequest.cs
- FixedPosition.cs
- WebServiceHandler.cs
- ConstantProjectedSlot.cs
- StrokeNodeEnumerator.cs
- GenericAuthenticationEventArgs.cs
- ToolBarOverflowPanel.cs
- WebCategoryAttribute.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ConfigWriter.cs
- HtmlSelect.cs
- WorkflowQueue.cs
- EdgeProfileValidation.cs
- LicFileLicenseProvider.cs
- DragDeltaEventArgs.cs
- PropertyChangingEventArgs.cs
- CreateUserErrorEventArgs.cs
- UTF32Encoding.cs
- Int32Animation.cs
- BamlVersionHeader.cs
- ArrangedElement.cs
- ListViewItemMouseHoverEvent.cs
- InterleavedZipPartStream.cs
- TextComposition.cs
- MeshGeometry3D.cs
- EncryptedType.cs
- COM2EnumConverter.cs
- GenericWebPart.cs
- FormViewDeleteEventArgs.cs
- BrushProxy.cs
- CacheDependency.cs
- ContextQuery.cs
- BinHexDecoder.cs
- XmlSerializerFaultFormatter.cs
- MemberPath.cs
- IDispatchConstantAttribute.cs
- ViewDesigner.cs
- ArrayEditor.cs
- Types.cs
- DataControlImageButton.cs
- TickBar.cs
- XmlLinkedNode.cs
- ReadOnlyPropertyMetadata.cs
- ClassGenerator.cs
- MaskInputRejectedEventArgs.cs
- ExpressionBuilder.cs
- SemaphoreFullException.cs
- ProjectionCamera.cs
- DescendantBaseQuery.cs
- StackOverflowException.cs
- ObjectPropertyMapping.cs
- FilterFactory.cs
- ValidationPropertyAttribute.cs
- EmptyCollection.cs
- DataTableTypeConverter.cs
- DefaultObjectMappingItemCollection.cs
- Environment.cs
- WindowsFormsSynchronizationContext.cs
- TextSelectionProcessor.cs
- PropertyEmitter.cs
- Blend.cs
- Floater.cs
- PinnedBufferMemoryStream.cs
- RequestQueue.cs
- JsonServiceDocumentSerializer.cs
- FixedTextBuilder.cs
- RuntimeConfigurationRecord.cs
- SingleAnimationBase.cs
- InstanceDescriptor.cs
- ResourceProviderFactory.cs
- GridViewColumnHeaderAutomationPeer.cs
- WebPartHeaderCloseVerb.cs
- FormView.cs