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
- InvalidWorkflowException.cs
- PointLightBase.cs
- OdbcEnvironment.cs
- XmlSigningNodeWriter.cs
- MessageSmuggler.cs
- InfoCardRSACryptoProvider.cs
- DesignerTextWriter.cs
- ExpressionParser.cs
- TreeBuilder.cs
- ECDiffieHellman.cs
- ProcessHost.cs
- CompoundFileIOPermission.cs
- StackSpiller.Generated.cs
- ClusterSafeNativeMethods.cs
- SqlClientWrapperSmiStream.cs
- MergeFailedEvent.cs
- HtmlMeta.cs
- MatrixTransform3D.cs
- ApplicationTrust.cs
- ScriptResourceInfo.cs
- FullTrustAssembliesSection.cs
- DataView.cs
- ModelFunctionTypeElement.cs
- MobilePage.cs
- SqlInternalConnection.cs
- FtpWebRequest.cs
- SynchronizedKeyedCollection.cs
- PageCatalogPart.cs
- OdbcConnection.cs
- WsatServiceAddress.cs
- NavigatorInput.cs
- EdmType.cs
- StrongNameMembershipCondition.cs
- GifBitmapDecoder.cs
- DataGridCell.cs
- XdrBuilder.cs
- StylusButton.cs
- ProviderException.cs
- SpecialNameAttribute.cs
- QueryContinueDragEvent.cs
- JournalNavigationScope.cs
- ScriptingAuthenticationServiceSection.cs
- SQLDoubleStorage.cs
- XmlAttribute.cs
- QueueProcessor.cs
- RequestTimeoutManager.cs
- EntityProviderServices.cs
- WebConfigurationManager.cs
- ContractHandle.cs
- HtmlUtf8RawTextWriter.cs
- XmlUtil.cs
- ComboBox.cs
- GlobalizationSection.cs
- ConfigXmlCDataSection.cs
- TextEditorSelection.cs
- PackagingUtilities.cs
- EventSinkHelperWriter.cs
- QuotedStringFormatReader.cs
- DictionaryContent.cs
- DesigntimeLicenseContextSerializer.cs
- BasicHttpSecurity.cs
- Rect3D.cs
- Wildcard.cs
- SQLMembershipProvider.cs
- InputLangChangeRequestEvent.cs
- ParentQuery.cs
- SharedUtils.cs
- printdlgexmarshaler.cs
- ToolStripOverflowButton.cs
- PropertyTab.cs
- ListViewAutomationPeer.cs
- QilTernary.cs
- ILGenerator.cs
- ViewGenResults.cs
- PointKeyFrameCollection.cs
- DocumentSchemaValidator.cs
- Padding.cs
- ButtonFieldBase.cs
- XPathSelectionIterator.cs
- EdmComplexPropertyAttribute.cs
- TogglePattern.cs
- LogFlushAsyncResult.cs
- AudioSignalProblemOccurredEventArgs.cs
- XPathDescendantIterator.cs
- CommandSet.cs
- ZoneButton.cs
- formatter.cs
- HTMLTextWriter.cs
- NativeStructs.cs
- FileRecordSequenceHelper.cs
- TypeSchema.cs
- WriteableBitmap.cs
- HtmlTableCellCollection.cs
- TextView.cs
- HttpListenerException.cs
- StatusBar.cs
- ProfileService.cs
- ErrorProvider.cs
- XmlCharCheckingReader.cs
- ComponentChangingEvent.cs