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
- PropertyTabAttribute.cs
- PasswordRecoveryAutoFormat.cs
- MetabaseSettingsIis7.cs
- PassportPrincipal.cs
- UIElement.cs
- ByteConverter.cs
- UpDownBase.cs
- AttributeSetAction.cs
- Bidi.cs
- ZipFileInfoCollection.cs
- XmlSchemaRedefine.cs
- HtmlLink.cs
- BrowserCapabilitiesCodeGenerator.cs
- TimeManager.cs
- StreamingContext.cs
- UnsafeNativeMethods.cs
- Icon.cs
- NativeMethods.cs
- VisualStyleTypesAndProperties.cs
- WinHttpWebProxyFinder.cs
- StoreContentChangedEventArgs.cs
- XmlSchemaInferenceException.cs
- SelfIssuedAuthRSAPKCS1SignatureDeformatter.cs
- DataContractSerializerMessageContractImporter.cs
- UnsignedPublishLicense.cs
- GuidTagList.cs
- WebPartConnectionsEventArgs.cs
- XamlReaderHelper.cs
- DBConnectionString.cs
- EpmTargetTree.cs
- Latin1Encoding.cs
- SqlClientWrapperSmiStreamChars.cs
- Literal.cs
- ComEventsMethod.cs
- MachineKeySection.cs
- SelectionRangeConverter.cs
- ErrorProvider.cs
- TransformGroup.cs
- ImageClickEventArgs.cs
- DocumentEventArgs.cs
- EventLogTraceListener.cs
- Error.cs
- GeneralTransformGroup.cs
- AuthorizationRuleCollection.cs
- FileLevelControlBuilderAttribute.cs
- MetadataHelper.cs
- HtmlGenericControl.cs
- Mutex.cs
- CompilerGlobalScopeAttribute.cs
- GridEntry.cs
- CellParagraph.cs
- DataRecord.cs
- ZipIOExtraFieldZip64Element.cs
- WebBrowserBase.cs
- XPathMultyIterator.cs
- GridItemProviderWrapper.cs
- SqlClientFactory.cs
- MsmqChannelFactory.cs
- QueryOutputWriter.cs
- SafeProcessHandle.cs
- DbParameterCollectionHelper.cs
- SafeFileMapViewHandle.cs
- PaginationProgressEventArgs.cs
- SchemaTypeEmitter.cs
- TableLayoutCellPaintEventArgs.cs
- SecurityElement.cs
- DbConnectionFactory.cs
- ArcSegment.cs
- KnownTypes.cs
- _BaseOverlappedAsyncResult.cs
- InvalidFilterCriteriaException.cs
- WebProxyScriptElement.cs
- DispatcherObject.cs
- SQLString.cs
- PartManifestEntry.cs
- WebBrowser.cs
- CodeAttachEventStatement.cs
- SystemWebCachingSectionGroup.cs
- GridViewSelectEventArgs.cs
- BaseCollection.cs
- EncodingNLS.cs
- ThreadSafeList.cs
- ValidatorUtils.cs
- DataTableReader.cs
- Application.cs
- ControllableStoryboardAction.cs
- Identity.cs
- ConfigXmlAttribute.cs
- DataGridViewCellCancelEventArgs.cs
- LayoutTableCell.cs
- MsmqIntegrationSecurity.cs
- GlyphCollection.cs
- MimeMapping.cs
- BridgeDataReader.cs
- HttpDebugHandler.cs
- VersionUtil.cs
- PassportAuthentication.cs
- OdbcParameterCollection.cs
- XmlMemberMapping.cs
- SchemaCollectionCompiler.cs