Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- BitmapEffectGroup.cs
- DataTable.cs
- StateWorkerRequest.cs
- WFItemsToSpacerVisibility.cs
- ProfileEventArgs.cs
- BaseValidator.cs
- TextWriter.cs
- ToolStripArrowRenderEventArgs.cs
- TextElementEnumerator.cs
- PolicyStatement.cs
- SystemNetworkInterface.cs
- TypefaceCollection.cs
- DbProviderServices.cs
- DataGridLinkButton.cs
- CuspData.cs
- XmlAttributeOverrides.cs
- ButtonBase.cs
- RemoteWebConfigurationHost.cs
- StylusButton.cs
- DrawingVisualDrawingContext.cs
- ObjectDataSourceMethodEditor.cs
- XmlCDATASection.cs
- VarInfo.cs
- MetadataUtil.cs
- MessageVersionConverter.cs
- StylusPointProperties.cs
- XmlSchemaSimpleTypeList.cs
- ConnectionsZone.cs
- Transform.cs
- ExcludePathInfo.cs
- DesignerSerializationOptionsAttribute.cs
- CatalogZoneBase.cs
- ListSortDescriptionCollection.cs
- UIElement3D.cs
- FormViewUpdatedEventArgs.cs
- TextDecorations.cs
- EditorZoneDesigner.cs
- baseshape.cs
- ProxyWebPartConnectionCollection.cs
- RowUpdatingEventArgs.cs
- DesignTimeParseData.cs
- SqlUserDefinedTypeAttribute.cs
- TransportReplyChannelAcceptor.cs
- CodeExpressionStatement.cs
- ScalarType.cs
- FileSystemEnumerable.cs
- AppLevelCompilationSectionCache.cs
- SqlNotificationRequest.cs
- MsmqChannelFactoryBase.cs
- TypeToken.cs
- ProfileEventArgs.cs
- WindowsSolidBrush.cs
- EncoderExceptionFallback.cs
- Win32Interop.cs
- CapabilitiesAssignment.cs
- Condition.cs
- SmiMetaData.cs
- Module.cs
- ResourceReferenceExpressionConverter.cs
- PnrpPermission.cs
- SplitterPanel.cs
- DecimalKeyFrameCollection.cs
- TraceLog.cs
- Debug.cs
- FocusWithinProperty.cs
- RequestCache.cs
- EnvironmentPermission.cs
- ActivityStateQuery.cs
- SequentialUshortCollection.cs
- HuffCodec.cs
- TextContainerChangeEventArgs.cs
- DeleteWorkflowOwnerCommand.cs
- EncodingInfo.cs
- TextRangeEditTables.cs
- DataGridViewColumnCollection.cs
- ListChangedEventArgs.cs
- OracleColumn.cs
- PropertyToken.cs
- EdmSchemaError.cs
- HttpListenerException.cs
- RequestQueryProcessor.cs
- HtmlHistory.cs
- ConnectionStringsExpressionBuilder.cs
- DataGridRelationshipRow.cs
- AutomationElementCollection.cs
- SchemaType.cs
- GlyphTypeface.cs
- XamlTreeBuilderBamlRecordWriter.cs
- ResourceDictionaryCollection.cs
- DrawingContextWalker.cs
- RowSpanVector.cs
- CommonObjectSecurity.cs
- SQLBytes.cs
- ComplexPropertyEntry.cs
- XmlIlVisitor.cs
- DiscoveryVersionConverter.cs
- PackageRelationship.cs
- DESCryptoServiceProvider.cs
- DirectoryLocalQuery.cs
- XmlDataSourceNodeDescriptor.cs