Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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 : [....] - 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PathSegment.cs
- ClientData.cs
- PtsContext.cs
- SQLUtility.cs
- StartUpEventArgs.cs
- NativeMethods.cs
- DesignerEventService.cs
- ItemsChangedEventArgs.cs
- AddInPipelineAttributes.cs
- FileDialog_Vista_Interop.cs
- ExpandableObjectConverter.cs
- TimeSpanMinutesConverter.cs
- SettingsProperty.cs
- formatstringdialog.cs
- TiffBitmapEncoder.cs
- RegistrySecurity.cs
- NativeMethods.cs
- TextClipboardData.cs
- VBCodeProvider.cs
- BuilderPropertyEntry.cs
- ObjectAnimationUsingKeyFrames.cs
- FileAuthorizationModule.cs
- SmtpAuthenticationManager.cs
- SecurityElement.cs
- PropertyTab.cs
- PolicyUnit.cs
- InstanceOwnerException.cs
- EntityStoreSchemaFilterEntry.cs
- HostExecutionContextManager.cs
- IndexObject.cs
- TextServicesProperty.cs
- NativeMethods.cs
- MouseOverProperty.cs
- NetStream.cs
- EventWaitHandle.cs
- log.cs
- StorageBasedPackageProperties.cs
- Command.cs
- RelationshipEndCollection.cs
- OrderedParallelQuery.cs
- ProxyHelper.cs
- HttpResponseHeader.cs
- BatchServiceHost.cs
- _IPv4Address.cs
- OdbcFactory.cs
- path.cs
- designeractionlistschangedeventargs.cs
- SubstitutionList.cs
- Model3DCollection.cs
- StrokeCollection2.cs
- SamlEvidence.cs
- BoolLiteral.cs
- handlecollector.cs
- HtmlControl.cs
- PointHitTestParameters.cs
- ConfigurationElement.cs
- LingerOption.cs
- ShortcutKeysEditor.cs
- BrowserCapabilitiesFactory.cs
- RouteCollection.cs
- PersonalizationStateInfoCollection.cs
- SqlConnectionPoolProviderInfo.cs
- EntitySet.cs
- RandomNumberGenerator.cs
- QuaternionAnimation.cs
- ResponseBodyWriter.cs
- SystemPens.cs
- RootBuilder.cs
- DataContractSerializerOperationFormatter.cs
- fixedPageContentExtractor.cs
- ToolStripDesignerAvailabilityAttribute.cs
- DbXmlEnabledProviderManifest.cs
- AutoGeneratedField.cs
- TaiwanCalendar.cs
- MarkedHighlightComponent.cs
- CollectionType.cs
- XmlSortKey.cs
- TableLayoutRowStyleCollection.cs
- TreeViewImageIndexConverter.cs
- HandlerMappingMemo.cs
- ExpressionBuilder.cs
- StylusCollection.cs
- CriticalHandle.cs
- DesignTimeParseData.cs
- X500Name.cs
- WindowVisualStateTracker.cs
- XhtmlBasicTextBoxAdapter.cs
- returneventsaver.cs
- AppliedDeviceFiltersEditor.cs
- StrongNameKeyPair.cs
- ToolboxItemImageConverter.cs
- Accessors.cs
- PersonalizationProviderCollection.cs
- PrePrepareMethodAttribute.cs
- IIS7UserPrincipal.cs
- X509Chain.cs
- WebPartEditorCancelVerb.cs
- CompareValidator.cs
- DataGridViewCellMouseEventArgs.cs
- QilGenerator.cs