Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media / DrawingGroupDrawingContext.cs / 1 / DrawingGroupDrawingContext.cs
//---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // Description: DrawingGroupDrawingContext populates a DrawingGroup // from Draw commands that are called on it. // // History: // // 2004/11/19 : timothyc - Created it. // //--------------------------------------------------------------------------- using System.Diagnostics; namespace System.Windows.Media { internal class DrawingGroupDrawingContext : DrawingDrawingContext { ////// DrawingGroupDrawingContext populates a DrawingGroup from the Draw /// commands that are called on it. /// /// DrawingGroup this context populates internal DrawingGroupDrawingContext(DrawingGroup drawingGroup) { Debug.Assert(null != drawingGroup); _drawingGroup = drawingGroup; } ////// Called by the base class during Close/Dispose when the content created by /// the DrawingDrawingContext needs to be committed. /// /// /// Collection containing the Drawing elements created with this /// DrawingContext. /// ////// This will only be called once (at most) per instance. /// protected override void CloseCore(DrawingCollection rootDrawingGroupChildren) { Debug.Assert(null != _drawingGroup); _drawingGroup.Close(rootDrawingGroupChildren); } private DrawingGroup _drawingGroup; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // Description: DrawingGroupDrawingContext populates a DrawingGroup // from Draw commands that are called on it. // // History: // // 2004/11/19 : timothyc - Created it. // //--------------------------------------------------------------------------- using System.Diagnostics; namespace System.Windows.Media { internal class DrawingGroupDrawingContext : DrawingDrawingContext { ////// DrawingGroupDrawingContext populates a DrawingGroup from the Draw /// commands that are called on it. /// /// DrawingGroup this context populates internal DrawingGroupDrawingContext(DrawingGroup drawingGroup) { Debug.Assert(null != drawingGroup); _drawingGroup = drawingGroup; } ////// Called by the base class during Close/Dispose when the content created by /// the DrawingDrawingContext needs to be committed. /// /// /// Collection containing the Drawing elements created with this /// DrawingContext. /// ////// This will only be called once (at most) per instance. /// protected override void CloseCore(DrawingCollection rootDrawingGroupChildren) { Debug.Assert(null != _drawingGroup); _drawingGroup.Close(rootDrawingGroupChildren); } private DrawingGroup _drawingGroup; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _TransmitFileOverlappedAsyncResult.cs
- EpmTargetTree.cs
- TextEditorSelection.cs
- DesignerLoader.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SafeFileMapViewHandle.cs
- PointCollection.cs
- SmiRecordBuffer.cs
- DateTimeConstantAttribute.cs
- SecondaryIndexList.cs
- ProxyWebPartConnectionCollection.cs
- OdbcRowUpdatingEvent.cs
- Debug.cs
- VerticalAlignConverter.cs
- TextPattern.cs
- Vars.cs
- MonthCalendarDesigner.cs
- CopyCodeAction.cs
- CachedCompositeFamily.cs
- TrackingMemoryStreamFactory.cs
- ProjectionCamera.cs
- ItemsPanelTemplate.cs
- SchemaImporter.cs
- _CookieModule.cs
- HashHelper.cs
- IItemProperties.cs
- ToolTipService.cs
- MessageLogTraceRecord.cs
- RuntimeArgumentHandle.cs
- Win32KeyboardDevice.cs
- SamlAssertion.cs
- ResourceContainer.cs
- PrtTicket_Public.cs
- ConstructorNeedsTagAttribute.cs
- ConversionHelper.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ObjectDataSourceWizardForm.cs
- cookiecollection.cs
- BindableTemplateBuilder.cs
- FamilyTypeface.cs
- DbConnectionStringCommon.cs
- _ScatterGatherBuffers.cs
- TextParagraphView.cs
- CannotUnloadAppDomainException.cs
- NetworkStream.cs
- ZipIOCentralDirectoryBlock.cs
- SchemaCollectionCompiler.cs
- ToolStripStatusLabel.cs
- SiteMapPath.cs
- ScrollBar.cs
- WmlValidationSummaryAdapter.cs
- ConvertEvent.cs
- _LocalDataStoreMgr.cs
- KnownIds.cs
- CombinedGeometry.cs
- StylusButtonCollection.cs
- MissingManifestResourceException.cs
- Assembly.cs
- PickDesigner.xaml.cs
- BlockUIContainer.cs
- SecurityManager.cs
- ChangesetResponse.cs
- HttpFileCollectionBase.cs
- ReadOnlyHierarchicalDataSourceView.cs
- SymmetricKey.cs
- PopupRoot.cs
- AnnouncementDispatcherAsyncResult.cs
- HashAlgorithm.cs
- DeclaredTypeValidator.cs
- MetadataPropertyvalue.cs
- ObjectPropertyMapping.cs
- FigureHelper.cs
- AccessDataSourceView.cs
- DataGridViewLayoutData.cs
- ReadOnlyCollection.cs
- TcpChannelHelper.cs
- CommandHelpers.cs
- HitTestFilterBehavior.cs
- DLinqAssociationProvider.cs
- Pen.cs
- TypedAsyncResult.cs
- EncoderNLS.cs
- Main.cs
- PrimitiveSchema.cs
- ProcessThread.cs
- EditorReuseAttribute.cs
- ToolStripDropDownMenu.cs
- PersonalizationAdministration.cs
- Camera.cs
- MutexSecurity.cs
- ObjectConverter.cs
- ByteStack.cs
- BookmarkScopeInfo.cs
- AddIn.cs
- SQLBytes.cs
- XslTransform.cs
- ToolBarButtonDesigner.cs
- ConstructorBuilder.cs
- NativeMethodsCLR.cs
- OutputBuffer.cs