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
- dataobject.cs
- RangeContentEnumerator.cs
- ObjectContextServiceProvider.cs
- SqlInfoMessageEvent.cs
- FramingEncoders.cs
- TransformDescriptor.cs
- ColumnWidthChangedEvent.cs
- XmlSchemas.cs
- TreeBuilder.cs
- Win32SafeHandles.cs
- QueryExtender.cs
- IteratorDescriptor.cs
- BuildResultCache.cs
- EventLogEntryCollection.cs
- SessionEndingCancelEventArgs.cs
- SecurityChannel.cs
- PointLightBase.cs
- IgnoreDeviceFilterElement.cs
- DragStartedEventArgs.cs
- ForeignConstraint.cs
- CollectionViewProxy.cs
- HtmlValidationSummaryAdapter.cs
- ListBoxChrome.cs
- ListControlBoundActionList.cs
- TypeToken.cs
- SiteMapSection.cs
- TimeBoundedCache.cs
- SelectedGridItemChangedEvent.cs
- DrawToolTipEventArgs.cs
- InternalConfigEventArgs.cs
- WindowShowOrOpenTracker.cs
- HuffmanTree.cs
- BaseProcessProtocolHandler.cs
- ConfigErrorGlyph.cs
- LocalFileSettingsProvider.cs
- HttpFileCollection.cs
- BitmapSourceSafeMILHandle.cs
- SectionRecord.cs
- MediaElementAutomationPeer.cs
- ResourceCodeDomSerializer.cs
- ControlType.cs
- LabelEditEvent.cs
- BaseAddressPrefixFilterElement.cs
- Scene3D.cs
- HttpConfigurationSystem.cs
- HtmlGenericControl.cs
- ExpressionsCollectionEditor.cs
- serverconfig.cs
- ProxyWebPartManager.cs
- BlurEffect.cs
- Floater.cs
- ProtocolElement.cs
- RefreshEventArgs.cs
- SqlCaseSimplifier.cs
- ArcSegment.cs
- Ray3DHitTestResult.cs
- HotSpot.cs
- EventLogger.cs
- PagesSection.cs
- CssClassPropertyAttribute.cs
- XmlNodeList.cs
- WebPartManagerInternals.cs
- Expression.cs
- XmlTextWriter.cs
- DataGridDetailsPresenterAutomationPeer.cs
- ParserExtension.cs
- coordinator.cs
- CellPartitioner.cs
- WriterOutput.cs
- NetworkInterface.cs
- AllMembershipCondition.cs
- sqlser.cs
- DesignTimeData.cs
- SQLMoney.cs
- Queue.cs
- AppModelKnownContentFactory.cs
- DbModificationClause.cs
- AuthenticationModeHelper.cs
- uribuilder.cs
- TypeGeneratedEventArgs.cs
- GroupQuery.cs
- CodeAttributeArgument.cs
- TemplateComponentConnector.cs
- ModuleConfigurationInfo.cs
- SqlUtil.cs
- XmlLanguage.cs
- Clock.cs
- StrongNamePublicKeyBlob.cs
- HttpContextWrapper.cs
- ADMembershipUser.cs
- TextSelection.cs
- OleDbStruct.cs
- ProbeMatchesApril2005.cs
- NullableBoolConverter.cs
- SafeNativeMethods.cs
- coordinatorfactory.cs
- TdsParameterSetter.cs
- TypeEnumerableViewSchema.cs
- RelatedImageListAttribute.cs
- WindowsTreeView.cs