Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / DrawingVisualDrawingContext.cs / 1 / 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
- HashMembershipCondition.cs
- ILGen.cs
- SpAudioStreamWrapper.cs
- NameNode.cs
- RestHandlerFactory.cs
- EmptyElement.cs
- DecoderNLS.cs
- SplashScreen.cs
- WindowsSolidBrush.cs
- XmlElementAttributes.cs
- Publisher.cs
- WebEventCodes.cs
- TextEditorSpelling.cs
- ElementAction.cs
- KoreanLunisolarCalendar.cs
- CheckBoxField.cs
- DeviceFilterEditorDialog.cs
- TemplateControlParser.cs
- ConfigurationStrings.cs
- InsufficientMemoryException.cs
- Identity.cs
- ValidationErrorInfo.cs
- BrowsableAttribute.cs
- EventHandlerService.cs
- ExtendedProtectionPolicy.cs
- _LocalDataStore.cs
- DataGridViewCellMouseEventArgs.cs
- PolyBezierSegmentFigureLogic.cs
- Transaction.cs
- X509CertificateStore.cs
- ContainerControl.cs
- FlowchartSizeFeature.cs
- VirtualPathData.cs
- TimerElapsedEvenArgs.cs
- ObjectView.cs
- DbQueryCommandTree.cs
- ColorConverter.cs
- NGCSerializationManagerAsync.cs
- MarginsConverter.cs
- LinkTarget.cs
- PointCollectionConverter.cs
- CapabilitiesSection.cs
- PathSegmentCollection.cs
- WindowsGraphicsCacheManager.cs
- XmlEncodedRawTextWriter.cs
- BehaviorEditorPart.cs
- PrintPreviewControl.cs
- JobStaple.cs
- ResolveMatchesMessage11.cs
- Convert.cs
- DebugView.cs
- BaseCollection.cs
- DebuggerAttributes.cs
- SoapObjectInfo.cs
- sqlcontext.cs
- DrawingDrawingContext.cs
- DbSetClause.cs
- TableItemStyle.cs
- HtmlInputFile.cs
- Latin1Encoding.cs
- UITypeEditors.cs
- ExpandCollapseIsCheckedConverter.cs
- JsonEnumDataContract.cs
- ToolBarTray.cs
- BufferCache.cs
- TabControlEvent.cs
- AsyncStreamReader.cs
- Parser.cs
- DrawingBrush.cs
- ReferenceAssemblyAttribute.cs
- WebPartCollection.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Barrier.cs
- HttpProfileGroupBase.cs
- WindowsEditBoxRange.cs
- WSHttpTransportSecurityElement.cs
- GacUtil.cs
- CrossSiteScriptingValidation.cs
- GlyphRunDrawing.cs
- TextEditorCopyPaste.cs
- DataGridTextBoxColumn.cs
- KeyTime.cs
- IIS7UserPrincipal.cs
- FlowDocumentView.cs
- Size3D.cs
- CriticalHandle.cs
- ToolBarTray.cs
- LightweightCodeGenerator.cs
- SqlWebEventProvider.cs
- XsdBuilder.cs
- BindValidator.cs
- PriorityRange.cs
- HyperLink.cs
- HandlerBase.cs
- SoapAttributeOverrides.cs
- LoginStatusDesigner.cs
- VoiceInfo.cs
- ActivationServices.cs
- SqlParameter.cs