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
- followingquery.cs
- ISAPIWorkerRequest.cs
- KeyInfo.cs
- UniqueIdentifierService.cs
- WindowsIPAddress.cs
- OrderingExpression.cs
- DnsElement.cs
- InstallerTypeAttribute.cs
- EditorPartDesigner.cs
- MenuBase.cs
- ExternalException.cs
- MapPathBasedVirtualPathProvider.cs
- OracleTransaction.cs
- WmfPlaceableFileHeader.cs
- XamlWriter.cs
- DataGridColumn.cs
- StringAttributeCollection.cs
- __Filters.cs
- MembershipPasswordException.cs
- ManagementEventArgs.cs
- BamlCollectionHolder.cs
- LinkArea.cs
- Base64Encoder.cs
- ToolStripDropDownButton.cs
- VirtualPathProvider.cs
- FaultCode.cs
- TextParaClient.cs
- TextEditor.cs
- CodeMethodInvokeExpression.cs
- CircleHotSpot.cs
- Figure.cs
- RegularExpressionValidator.cs
- KeySpline.cs
- safelinkcollection.cs
- CqlWriter.cs
- SqlBulkCopyColumnMappingCollection.cs
- URL.cs
- FlowLayout.cs
- HttpProtocolReflector.cs
- WebBaseEventKeyComparer.cs
- WebServiceErrorEvent.cs
- DataGridViewRowPrePaintEventArgs.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- XmlReader.cs
- TouchPoint.cs
- FixedBufferAttribute.cs
- WorkflowHostingEndpoint.cs
- FormParameter.cs
- RootBrowserWindowProxy.cs
- DataServiceQueryProvider.cs
- RootAction.cs
- StrongTypingException.cs
- SelectionPattern.cs
- TaiwanLunisolarCalendar.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- LogWriteRestartAreaState.cs
- MsmqIntegrationOutputChannel.cs
- Wrapper.cs
- GridItemProviderWrapper.cs
- LateBoundBitmapDecoder.cs
- SymbolUsageManager.cs
- SecUtil.cs
- PackageFilter.cs
- MenuItemAutomationPeer.cs
- ProxyWebPart.cs
- AttributeQuery.cs
- WebPartHelpVerb.cs
- UserControlCodeDomTreeGenerator.cs
- validationstate.cs
- ArrayEditor.cs
- Durable.cs
- BlurEffect.cs
- DataColumnCollection.cs
- ToolStripGripRenderEventArgs.cs
- TextComposition.cs
- CodeTypeReferenceCollection.cs
- MyContact.cs
- GridViewColumnHeaderAutomationPeer.cs
- DataGridCommandEventArgs.cs
- DecimalKeyFrameCollection.cs
- HostingPreferredMapPath.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- KeyboardNavigation.cs
- WindowsGraphics2.cs
- ViewPort3D.cs
- CheckBox.cs
- RemotingAttributes.cs
- HebrewNumber.cs
- FunctionQuery.cs
- CatalogPartCollection.cs
- RNGCryptoServiceProvider.cs
- XmlSchemaAnnotated.cs
- CompilerResults.cs
- base64Transforms.cs
- ContainsRowNumberChecker.cs
- DataGridViewSelectedRowCollection.cs
- DESCryptoServiceProvider.cs
- TypographyProperties.cs
- XmlSchemaSimpleContent.cs
- NotConverter.cs