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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Point3D.cs
- ExceptionUtil.cs
- Header.cs
- XPathNode.cs
- SspiSafeHandles.cs
- CompilerGlobalScopeAttribute.cs
- _FixedSizeReader.cs
- Table.cs
- StorageConditionPropertyMapping.cs
- DockPatternIdentifiers.cs
- MaterialGroup.cs
- DesignTimeDataBinding.cs
- SafeNativeMethodsCLR.cs
- RuntimeConfigLKG.cs
- Point3D.cs
- BaseProcessProtocolHandler.cs
- PointUtil.cs
- ValidatingPropertiesEventArgs.cs
- ComplexPropertyEntry.cs
- SemanticTag.cs
- SymbolMethod.cs
- MulticastIPAddressInformationCollection.cs
- SharedConnectionWorkflowTransactionService.cs
- ResourceExpressionBuilder.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- NativeStructs.cs
- EndpointNotFoundException.cs
- ProjectionCamera.cs
- Transform3D.cs
- InputScope.cs
- SqlParameterizer.cs
- AgileSafeNativeMemoryHandle.cs
- InsufficientMemoryException.cs
- WebPartDescription.cs
- Variant.cs
- SystemIPGlobalProperties.cs
- xmlfixedPageInfo.cs
- DefaultMemberAttribute.cs
- ToolStripSettings.cs
- HtmlElementErrorEventArgs.cs
- HttpServerChannel.cs
- Assert.cs
- ExceptionValidationRule.cs
- ControlDesigner.cs
- FieldToken.cs
- PropertyValueUIItem.cs
- RewritingPass.cs
- StrongNamePublicKeyBlob.cs
- MarkupExtensionReturnTypeAttribute.cs
- ScrollViewer.cs
- PublishLicense.cs
- TextEditorParagraphs.cs
- AssemblyAssociatedContentFileAttribute.cs
- SmiRequestExecutor.cs
- RecognizedWordUnit.cs
- Container.cs
- TerminatingOperationBehavior.cs
- RoleManagerModule.cs
- MethodToken.cs
- ImageCodecInfo.cs
- SaveFileDialog.cs
- SelectionRangeConverter.cs
- XmlCountingReader.cs
- FileDataSourceCache.cs
- KeyTime.cs
- PolicyLevel.cs
- QuaternionAnimationBase.cs
- CapabilitiesPattern.cs
- HttpException.cs
- DispatcherFrame.cs
- DataBinding.cs
- DataKeyCollection.cs
- DesignTimeVisibleAttribute.cs
- oledbmetadatacolumnnames.cs
- Exception.cs
- ResizeGrip.cs
- Style.cs
- Error.cs
- WebBrowserNavigatedEventHandler.cs
- CryptoApi.cs
- BitmapData.cs
- EventProperty.cs
- ClientBase.cs
- serverconfig.cs
- SqlServer2KCompatibilityCheck.cs
- FacetChecker.cs
- TransformerInfo.cs
- Fault.cs
- ScrollViewer.cs
- HttpProtocolReflector.cs
- TrackingServices.cs
- ChildTable.cs
- TimeoutTimer.cs
- DataGridViewRowPostPaintEventArgs.cs
- WindowsRebar.cs
- ContextProperty.cs
- selecteditemcollection.cs
- ReaderWriterLockWrapper.cs
- TCEAdapterGenerator.cs
- SpecularMaterial.cs