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
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- StyleCollectionEditor.cs
- XmlSchemaAll.cs
- ViewStateModeByIdAttribute.cs
- EditingCommands.cs
- DbDeleteCommandTree.cs
- ListBoxItemWrapperAutomationPeer.cs
- ISAPIRuntime.cs
- HtmlContainerControl.cs
- HealthMonitoringSection.cs
- XmlNotation.cs
- WMIGenerator.cs
- MachineKeySection.cs
- VisualTreeUtils.cs
- Module.cs
- Debug.cs
- BackgroundFormatInfo.cs
- XmlUtil.cs
- Transactions.cs
- BulletChrome.cs
- PrintDocument.cs
- PointAnimationBase.cs
- KeySplineConverter.cs
- SQLInt32.cs
- ReadOnlyState.cs
- RunInstallerAttribute.cs
- BamlReader.cs
- WebFormDesignerActionService.cs
- UserControlAutomationPeer.cs
- HierarchicalDataSourceControl.cs
- SqlAggregateChecker.cs
- ClientClassGenerator.cs
- JournalEntry.cs
- ContextInformation.cs
- ChangeBlockUndoRecord.cs
- TrackingValidationObjectDictionary.cs
- ScrollBarRenderer.cs
- COM2Properties.cs
- EdmType.cs
- ModifierKeysConverter.cs
- AsyncInvokeContext.cs
- WebPartManager.cs
- TextElement.cs
- SessionStateModule.cs
- Math.cs
- ProcessInputEventArgs.cs
- DrawingCollection.cs
- TableItemPatternIdentifiers.cs
- XslVisitor.cs
- Pen.cs
- DeclarationUpdate.cs
- WebScriptMetadataMessageEncodingBindingElement.cs
- EditCommandColumn.cs
- EndpointBehaviorElement.cs
- BrowserCapabilitiesFactoryBase.cs
- DesignerUtility.cs
- EdmComplexPropertyAttribute.cs
- ProtectedConfiguration.cs
- MimeReturn.cs
- HelpProvider.cs
- DataGridTableCollection.cs
- SchemaDeclBase.cs
- AuthenticationManager.cs
- SimpleExpression.cs
- SubclassTypeValidatorAttribute.cs
- DataViewManager.cs
- EqualityComparer.cs
- AccessText.cs
- LocatorBase.cs
- AuthenticationService.cs
- InputLanguageEventArgs.cs
- MenuItemStyle.cs
- ClientRequest.cs
- TextDecorationCollectionConverter.cs
- GifBitmapDecoder.cs
- _IPv4Address.cs
- ValidationErrorCollection.cs
- AudioStateChangedEventArgs.cs
- DataGridParentRows.cs
- IsolatedStorageException.cs
- MediaContext.cs
- CacheOutputQuery.cs
- DependencyObject.cs
- XsdDataContractExporter.cs
- CodeBlockBuilder.cs
- ChangeConflicts.cs
- WindowsSpinner.cs
- Point3DCollectionValueSerializer.cs
- OneOfScalarConst.cs
- ClickablePoint.cs
- UndoEngine.cs
- ScrollableControl.cs
- XmlSchemaExternal.cs
- InplaceBitmapMetadataWriter.cs
- CompareValidator.cs
- ExpandableObjectConverter.cs
- TemplateBindingExtensionConverter.cs
- SafeNativeMethods.cs
- DependencyObjectPropertyDescriptor.cs
- TypefaceMap.cs