Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- BuildManagerHost.cs
- LocalizeDesigner.cs
- _NtlmClient.cs
- ObjectSet.cs
- Geometry.cs
- DataGrid.cs
- NativeCompoundFileAPIs.cs
- SystemInformation.cs
- PingReply.cs
- WsatExtendedInformation.cs
- SqlError.cs
- Material.cs
- validationstate.cs
- assertwrapper.cs
- ContentOperations.cs
- DefaultPropertyAttribute.cs
- NavigateEvent.cs
- StdValidatorsAndConverters.cs
- IisTraceListener.cs
- Size.cs
- Compilation.cs
- GACIdentityPermission.cs
- CatalogPartChrome.cs
- CodeIndexerExpression.cs
- GlyphsSerializer.cs
- XmlText.cs
- RootBuilder.cs
- SimpleBitVector32.cs
- MenuItemStyleCollection.cs
- WindowProviderWrapper.cs
- BinaryFormatterWriter.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- PropertyValueUIItem.cs
- PanelDesigner.cs
- AttributeQuery.cs
- ProcessHost.cs
- X509UI.cs
- DelegateArgument.cs
- XmlSchemaSubstitutionGroup.cs
- ZipIOExtraFieldElement.cs
- ReadOnlyTernaryTree.cs
- ExtractorMetadata.cs
- XmlSchemaExporter.cs
- OpCellTreeNode.cs
- TextWriterTraceListener.cs
- TableChangeProcessor.cs
- FillRuleValidation.cs
- OdbcDataAdapter.cs
- ProgressBar.cs
- TextFormatterImp.cs
- ActiveXHost.cs
- ProgressiveCrcCalculatingStream.cs
- DbInsertCommandTree.cs
- SiteMapPath.cs
- EmptyQuery.cs
- JsonDataContract.cs
- Brush.cs
- ComponentManagerBroker.cs
- uribuilder.cs
- ButtonBase.cs
- _FtpControlStream.cs
- FileSecurity.cs
- XmlSchemaIdentityConstraint.cs
- DefaultPrintController.cs
- EntityConnectionStringBuilder.cs
- TcpClientChannel.cs
- Classification.cs
- ScrollItemProviderWrapper.cs
- GiveFeedbackEvent.cs
- HwndSourceParameters.cs
- InitializerFacet.cs
- DynamicQueryableWrapper.cs
- DCSafeHandle.cs
- _DynamicWinsockMethods.cs
- SystemInformation.cs
- DataServiceConfiguration.cs
- BackgroundWorker.cs
- IndexerNameAttribute.cs
- UriScheme.cs
- MetadataPropertyCollection.cs
- AuthenticationServiceManager.cs
- UnknownBitmapEncoder.cs
- Button.cs
- UpdatableGenericsFeature.cs
- AnnotationAdorner.cs
- MailWriter.cs
- FamilyMap.cs
- DefaultValueAttribute.cs
- TaiwanLunisolarCalendar.cs
- XXXInfos.cs
- RecognizerInfo.cs
- ObjectAnimationUsingKeyFrames.cs
- TextBoxBase.cs
- DiscoveryService.cs
- ToolStripGripRenderEventArgs.cs
- NullPackagingPolicy.cs
- basevalidator.cs
- ScrollEventArgs.cs
- ClipboardProcessor.cs
- SqlDataSourceStatusEventArgs.cs