Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / DrawingGroupDrawingContext.cs / 1305600 / 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
- BulletedList.cs
- TemplatedAdorner.cs
- RuntimeConfig.cs
- SmiRequestExecutor.cs
- DataSourceExpressionCollection.cs
- DbConnectionPoolGroup.cs
- NodeFunctions.cs
- WorkflowQueuingService.cs
- SoapHttpTransportImporter.cs
- XmlSerializationGeneratedCode.cs
- ExtensionQuery.cs
- HttpFileCollection.cs
- XmlSchemaResource.cs
- MexNamedPipeBindingElement.cs
- ObjectHandle.cs
- ServiceModelStringsVersion1.cs
- Overlapped.cs
- Helpers.cs
- PrinterUnitConvert.cs
- JsonFormatReaderGenerator.cs
- SmiSettersStream.cs
- Constants.cs
- EntityClassGenerator.cs
- NetworkCredential.cs
- LinqDataSourceView.cs
- HwndHostAutomationPeer.cs
- EncryptedReference.cs
- XmlException.cs
- AnimatedTypeHelpers.cs
- LinqDataSourceSelectEventArgs.cs
- DataColumnMappingCollection.cs
- ConfigurationStrings.cs
- RegexTypeEditor.cs
- StatusBarDrawItemEvent.cs
- MethodBuilder.cs
- FunctionUpdateCommand.cs
- TTSEvent.cs
- EventMap.cs
- UxThemeWrapper.cs
- SharedPersonalizationStateInfo.cs
- ViewCellRelation.cs
- DocumentGridPage.cs
- InputScopeAttribute.cs
- KnownBoxes.cs
- Win32PrintDialog.cs
- XmlSchemaInfo.cs
- WmfPlaceableFileHeader.cs
- RsaEndpointIdentity.cs
- WebPartDisplayModeEventArgs.cs
- AppDomainProtocolHandler.cs
- LoginStatusDesigner.cs
- TableDetailsRow.cs
- BinHexEncoder.cs
- CodeDomLocalizationProvider.cs
- ConsoleKeyInfo.cs
- ObjectAnimationUsingKeyFrames.cs
- FixedPageAutomationPeer.cs
- XmlUtf8RawTextWriter.cs
- XmlText.cs
- Int32AnimationBase.cs
- PageClientProxyGenerator.cs
- MaskedTextBox.cs
- DbConnectionPoolGroup.cs
- SoapElementAttribute.cs
- TextSpan.cs
- CellPartitioner.cs
- ConstNode.cs
- SizeIndependentAnimationStorage.cs
- HandleCollector.cs
- DashStyle.cs
- ComponentChangingEvent.cs
- DesignUtil.cs
- DataView.cs
- CompilerErrorCollection.cs
- DispatcherEventArgs.cs
- FixedSOMPageElement.cs
- DocumentApplicationJournalEntry.cs
- BooleanAnimationBase.cs
- BooleanFunctions.cs
- TimeSpanConverter.cs
- NativeMethods.cs
- X509AsymmetricSecurityKey.cs
- localization.cs
- ImagingCache.cs
- TreeNodeCollection.cs
- HelpInfo.cs
- XmlSchemaExternal.cs
- ServiceNotStartedException.cs
- PartialList.cs
- FormatSettings.cs
- ScrollContentPresenter.cs
- SmiRecordBuffer.cs
- MessageSecurityTokenVersion.cs
- EdgeProfileValidation.cs
- TimelineClockCollection.cs
- MetadataItemEmitter.cs
- MemoryPressure.cs
- CreatingCookieEventArgs.cs
- TextWriterTraceListener.cs
- DateTimeConstantAttribute.cs