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
- ObjectStateFormatter.cs
- CommonObjectSecurity.cs
- SendKeys.cs
- TypeConverterHelper.cs
- TypeForwardedToAttribute.cs
- CodeSnippetStatement.cs
- DataBoundLiteralControl.cs
- WindowExtensionMethods.cs
- CodeEntryPointMethod.cs
- ImageDrawing.cs
- PackageRelationshipCollection.cs
- InstanceLockLostException.cs
- DeviceContext.cs
- InputReferenceExpression.cs
- SubclassTypeValidator.cs
- SafeNativeMemoryHandle.cs
- EmptyReadOnlyDictionaryInternal.cs
- ToolZone.cs
- EntityCommandCompilationException.cs
- AccessViolationException.cs
- WsdlEndpointConversionContext.cs
- GridViewRowCollection.cs
- FormViewUpdatedEventArgs.cs
- xsdvalidator.cs
- InternalConfigHost.cs
- XmlImplementation.cs
- CipherData.cs
- BufferedGraphicsManager.cs
- DispatchChannelSink.cs
- ContainerCodeDomSerializer.cs
- FileRecordSequenceCompletedAsyncResult.cs
- ScrollChrome.cs
- WebPartCatalogCloseVerb.cs
- DataBindEngine.cs
- securitycriticaldataClass.cs
- TreePrinter.cs
- ToolTip.cs
- SqlParameterCollection.cs
- TrackingParameters.cs
- Utils.cs
- BypassElementCollection.cs
- SafeNativeMethodsCLR.cs
- VisualTreeHelper.cs
- ServiceInfoCollection.cs
- ConnectionStringsSection.cs
- DPCustomTypeDescriptor.cs
- ReadOnlyDictionary.cs
- ClientSettings.cs
- StreamGeometry.cs
- DataColumnMapping.cs
- BlurBitmapEffect.cs
- IsolatedStorageFilePermission.cs
- FormsAuthenticationEventArgs.cs
- WebPartTracker.cs
- EventItfInfo.cs
- Rect.cs
- BamlVersionHeader.cs
- GridViewUpdatedEventArgs.cs
- TailPinnedEventArgs.cs
- PathFigureCollectionConverter.cs
- UserControl.cs
- bindurihelper.cs
- DispatcherTimer.cs
- HttpRuntime.cs
- GestureRecognitionResult.cs
- TiffBitmapDecoder.cs
- AssociationSet.cs
- SymmetricKeyWrap.cs
- XPathNodeList.cs
- DictationGrammar.cs
- HttpContextServiceHost.cs
- autovalidator.cs
- ChtmlFormAdapter.cs
- RotateTransform.cs
- ErrorRuntimeConfig.cs
- GeneratedView.cs
- TypeBuilder.cs
- DoubleLinkList.cs
- RectAnimation.cs
- Annotation.cs
- SlotInfo.cs
- NegotiateStream.cs
- SqlRowUpdatedEvent.cs
- RequestCachingSection.cs
- RegistryDataKey.cs
- ProfileSettingsCollection.cs
- RemotingClientProxy.cs
- MetadataItemSerializer.cs
- HtmlTernaryTree.cs
- LineBreakRecord.cs
- ErrorsHelper.cs
- XslAst.cs
- StaticResourceExtension.cs
- ControlUtil.cs
- OutputCache.cs
- WebPartsPersonalization.cs
- odbcmetadatafactory.cs
- DataTemplateKey.cs
- TiffBitmapDecoder.cs
- ObjectListField.cs