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
- MenuCommand.cs
- Encoding.cs
- AttributeQuery.cs
- ContentType.cs
- CodeIndexerExpression.cs
- DateTimeStorage.cs
- dtdvalidator.cs
- SqlCacheDependency.cs
- CalloutQueueItem.cs
- DesignConnection.cs
- ServiceDesigner.cs
- CustomValidator.cs
- AutoFocusStyle.xaml.cs
- DbParameterHelper.cs
- XmlAnyElementAttribute.cs
- GCHandleCookieTable.cs
- LayoutTable.cs
- StringArrayConverter.cs
- ProcessHostFactoryHelper.cs
- StreamInfo.cs
- StyleCollectionEditor.cs
- webproxy.cs
- BamlLocalizationDictionary.cs
- HtmlControl.cs
- StorageBasedPackageProperties.cs
- BufferBuilder.cs
- TimeStampChecker.cs
- CachedBitmap.cs
- SignedXml.cs
- HttpCapabilitiesEvaluator.cs
- StylusPoint.cs
- EndPoint.cs
- PatternMatcher.cs
- DispatcherHookEventArgs.cs
- ModelTreeManager.cs
- DbConnectionPool.cs
- ResourceIDHelper.cs
- ClientSettings.cs
- BufferedStream.cs
- SystemIPv6InterfaceProperties.cs
- xmlformatgeneratorstatics.cs
- SmtpNetworkElement.cs
- CommonDialog.cs
- MutexSecurity.cs
- DocumentPropertiesDialog.cs
- TrackingMemoryStream.cs
- SynchronizedInputAdaptor.cs
- TrustSection.cs
- SingleAnimationUsingKeyFrames.cs
- RegexCode.cs
- FormViewUpdateEventArgs.cs
- TimeIntervalCollection.cs
- Vector3D.cs
- ConstraintEnumerator.cs
- TaskSchedulerException.cs
- CollectionViewGroupInternal.cs
- Compiler.cs
- NameValueConfigurationElement.cs
- TaskSchedulerException.cs
- ResourceContainer.cs
- SmiGettersStream.cs
- Underline.cs
- XmlSchemaInfo.cs
- XMLDiffLoader.cs
- VarRemapper.cs
- ConstraintEnumerator.cs
- ControlAdapter.cs
- AsyncPostBackErrorEventArgs.cs
- HyperLinkColumn.cs
- EntityCommand.cs
- WindowPattern.cs
- SmiEventSink.cs
- VectorKeyFrameCollection.cs
- ApplicationFileParser.cs
- ImageMap.cs
- CodePrimitiveExpression.cs
- HtmlMobileTextWriter.cs
- XmlUrlResolver.cs
- IncrementalCompileAnalyzer.cs
- PanelStyle.cs
- SystemGatewayIPAddressInformation.cs
- DesignerDataSourceView.cs
- ErrorLog.cs
- InvokeMethod.cs
- Pens.cs
- CatalogPart.cs
- ActivityBindForm.Designer.cs
- QilIterator.cs
- HttpResponseHeader.cs
- XsltFunctions.cs
- System.Data_BID.cs
- ValueUnavailableException.cs
- VisualStyleElement.cs
- AppSecurityManager.cs
- Section.cs
- HttpServerVarsCollection.cs
- XslTransform.cs
- StorageBasedPackageProperties.cs
- PageContentCollection.cs
- WindowsFormsEditorServiceHelper.cs