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
- SHA256.cs
- DataGridViewColumnEventArgs.cs
- GuidConverter.cs
- UserControlDesigner.cs
- LinkButton.cs
- FrugalList.cs
- WebCategoryAttribute.cs
- CanExecuteRoutedEventArgs.cs
- SyndicationSerializer.cs
- ComboBoxRenderer.cs
- TdsParameterSetter.cs
- PerformanceCounter.cs
- CharKeyFrameCollection.cs
- Repeater.cs
- clipboard.cs
- PasswordTextNavigator.cs
- MarkupWriter.cs
- ZipFileInfoCollection.cs
- DbDataAdapter.cs
- Registry.cs
- OlePropertyStructs.cs
- StringValueSerializer.cs
- Run.cs
- NestedContainer.cs
- IIS7WorkerRequest.cs
- Double.cs
- ActivitySurrogateSelector.cs
- WorkerRequest.cs
- SystemUnicastIPAddressInformation.cs
- PrePrepareMethodAttribute.cs
- HttpCookiesSection.cs
- BoolExpressionVisitors.cs
- HyperlinkAutomationPeer.cs
- ExpressionReplacer.cs
- ModelPerspective.cs
- ComponentResourceManager.cs
- KeyInterop.cs
- XmlImplementation.cs
- Tuple.cs
- ToolBarOverflowPanel.cs
- keycontainerpermission.cs
- Resources.Designer.cs
- Package.cs
- DebugHandleTracker.cs
- TextElementEnumerator.cs
- SecurityTokenAuthenticator.cs
- SqlWebEventProvider.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- ZipIOLocalFileBlock.cs
- DocumentGridPage.cs
- FlowNode.cs
- EnumDataContract.cs
- DataListItemCollection.cs
- ViewKeyConstraint.cs
- Metadata.cs
- EditorServiceContext.cs
- StateMachineDesignerPaint.cs
- StrongName.cs
- Listbox.cs
- CryptographicAttribute.cs
- ChangeNode.cs
- RoleManagerEventArgs.cs
- WinEventQueueItem.cs
- TemplateBamlTreeBuilder.cs
- DesignerSelectionListAdapter.cs
- HtmlInputText.cs
- DPTypeDescriptorContext.cs
- TextBreakpoint.cs
- XXXInfos.cs
- ColorBlend.cs
- CustomTrackingQuery.cs
- PerformanceCounterCategory.cs
- XmlNavigatorFilter.cs
- OleDbDataReader.cs
- WeakRefEnumerator.cs
- UserControlBuildProvider.cs
- TiffBitmapEncoder.cs
- HtmlTableRowCollection.cs
- DeriveBytes.cs
- AuthenticationConfig.cs
- _UriTypeConverter.cs
- ValidatorUtils.cs
- DataServiceProcessingPipeline.cs
- formatter.cs
- DataGridHeaderBorder.cs
- StorageModelBuildProvider.cs
- BidirectionalDictionary.cs
- Mapping.cs
- StateManagedCollection.cs
- XmlExpressionDumper.cs
- StylusCollection.cs
- CodeMemberMethod.cs
- DataSysAttribute.cs
- HttpCookieCollection.cs
- WindowsSpinner.cs
- AssemblyNameProxy.cs
- PolyQuadraticBezierSegment.cs
- JournalEntryStack.cs
- ProxyWebPartManager.cs
- IISMapPath.cs