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
- HttpHandlerAction.cs
- ReversePositionQuery.cs
- _NtlmClient.cs
- NativeCppClassAttribute.cs
- QueryResponse.cs
- Set.cs
- FastEncoder.cs
- ExcCanonicalXml.cs
- SystemWebSectionGroup.cs
- ColorMap.cs
- EntityDataSourceState.cs
- BezierSegment.cs
- ImageList.cs
- ListItemViewControl.cs
- DrawingImage.cs
- ChannelPoolSettings.cs
- MediaSystem.cs
- EditorZoneBase.cs
- KeysConverter.cs
- WebCodeGenerator.cs
- FileEnumerator.cs
- CollectionBuilder.cs
- sqlnorm.cs
- HtmlInputRadioButton.cs
- DataGridViewColumnCollection.cs
- MenuItemAutomationPeer.cs
- TextEncodedRawTextWriter.cs
- safesecurityhelperavalon.cs
- RawAppCommandInputReport.cs
- WindowsIdentity.cs
- DrawingContext.cs
- TransformedBitmap.cs
- LogLogRecordEnumerator.cs
- EntitySetDataBindingList.cs
- SiteMapSection.cs
- PropertyMap.cs
- NetworkInformationPermission.cs
- TailPinnedEventArgs.cs
- FixedHyperLink.cs
- PathFigureCollection.cs
- StateRuntime.cs
- FormViewDesigner.cs
- EmbeddedMailObject.cs
- PeerCollaboration.cs
- RightNameExpirationInfoPair.cs
- Stack.cs
- XPathNodeHelper.cs
- ColumnMap.cs
- SelectionBorderGlyph.cs
- WebSysDisplayNameAttribute.cs
- ObjectDataSourceSelectingEventArgs.cs
- LayoutExceptionEventArgs.cs
- DeferredElementTreeState.cs
- XmlDictionaryReader.cs
- IconHelper.cs
- CodeThrowExceptionStatement.cs
- ContentElement.cs
- ContentPosition.cs
- MenuDesigner.cs
- SoundPlayer.cs
- ImageSourceValueSerializer.cs
- BindingGroup.cs
- ViewEvent.cs
- XamlSerializerUtil.cs
- RawStylusInputCustomData.cs
- Rule.cs
- PartialArray.cs
- SecUtil.cs
- _FtpDataStream.cs
- HttpCookieCollection.cs
- ServiceNameCollection.cs
- PartialCachingAttribute.cs
- DeviceContext2.cs
- Regex.cs
- TransferRequestHandler.cs
- DetailsViewModeEventArgs.cs
- RequiredFieldValidator.cs
- CompiledXpathExpr.cs
- FamilyMapCollection.cs
- JsonDataContract.cs
- ToolboxComponentsCreatingEventArgs.cs
- EntityContainer.cs
- ProviderIncompatibleException.cs
- LicenseManager.cs
- GeometryDrawing.cs
- JsonClassDataContract.cs
- AddressHeaderCollection.cs
- WebPartCatalogCloseVerb.cs
- AutomationIdentifierGuids.cs
- TextDecorations.cs
- EventProxy.cs
- PassportAuthenticationModule.cs
- IsolationInterop.cs
- SQLByteStorage.cs
- PeerNameRecordCollection.cs
- TdsParserStaticMethods.cs
- WebScriptEnablingElement.cs
- ProcessStartInfo.cs
- WebPartsPersonalization.cs
- _BaseOverlappedAsyncResult.cs