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
- OleDbFactory.cs
- smtpconnection.cs
- TablePattern.cs
- PasswordTextNavigator.cs
- ValidatorCompatibilityHelper.cs
- AuthorizationRuleCollection.cs
- Vector3DKeyFrameCollection.cs
- WebSysDisplayNameAttribute.cs
- Menu.cs
- SafeFindHandle.cs
- ListView.cs
- WeakReference.cs
- TreeWalkHelper.cs
- NumberFormatter.cs
- WindowsMenu.cs
- HMAC.cs
- InstanceHandleConflictException.cs
- Int32Collection.cs
- ContextMenuAutomationPeer.cs
- safelinkcollection.cs
- TrackingProfileDeserializationException.cs
- UrlPath.cs
- TraceProvider.cs
- HierarchicalDataTemplate.cs
- NetDataContractSerializer.cs
- XmlAttribute.cs
- XmlDocument.cs
- AdjustableArrowCap.cs
- TextTreeUndo.cs
- JapaneseCalendar.cs
- SettingsBindableAttribute.cs
- Brushes.cs
- HostedImpersonationContext.cs
- PluralizationService.cs
- MultiView.cs
- TypedReference.cs
- RawAppCommandInputReport.cs
- WebServiceTypeData.cs
- SqlDataSourceTableQuery.cs
- WindowsStartMenu.cs
- ReadonlyMessageFilter.cs
- CodeDomDecompiler.cs
- CompositeActivityCodeGenerator.cs
- Drawing.cs
- InheritanceAttribute.cs
- AnimatedTypeHelpers.cs
- PropertyMappingExceptionEventArgs.cs
- ClockController.cs
- AndCondition.cs
- SystemWebSectionGroup.cs
- ItemDragEvent.cs
- WindowsAuthenticationModule.cs
- SqlInfoMessageEvent.cs
- QuaternionValueSerializer.cs
- RelationshipSet.cs
- SQLGuidStorage.cs
- ModelFactory.cs
- CustomAttribute.cs
- FullTrustAssembly.cs
- BasicHttpMessageSecurityElement.cs
- CngKeyCreationParameters.cs
- FilterableAttribute.cs
- OuterGlowBitmapEffect.cs
- GeneralTransform3D.cs
- ManagedWndProcTracker.cs
- Renderer.cs
- PcmConverter.cs
- StringBuilder.cs
- FunctionDefinition.cs
- WebConfigurationHostFileChange.cs
- SystemInfo.cs
- TableItemProviderWrapper.cs
- OleAutBinder.cs
- GlobalizationSection.cs
- OleDbReferenceCollection.cs
- EndSelectCardRequest.cs
- Hash.cs
- OutputWindow.cs
- BaseCodePageEncoding.cs
- ProfilePropertyNameValidator.cs
- TaskFactory.cs
- CommonXSendMessage.cs
- CollaborationHelperFunctions.cs
- SymbolType.cs
- LabelLiteral.cs
- XmlSchemaRedefine.cs
- ReachVisualSerializerAsync.cs
- XmlRootAttribute.cs
- ServerValidateEventArgs.cs
- LinkedList.cs
- Point4D.cs
- ListViewInsertedEventArgs.cs
- LinkButton.cs
- SafeFileMappingHandle.cs
- HMACMD5.cs
- _NestedMultipleAsyncResult.cs
- ServiceOperationParameter.cs
- BinaryObjectInfo.cs
- Int64Storage.cs
- AuthenticationManager.cs