Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / 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 : 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
- EventWaitHandleSecurity.cs
- DefaultValueTypeConverter.cs
- MtomMessageEncodingBindingElement.cs
- MethodCallConverter.cs
- SystemInformation.cs
- Size3DValueSerializer.cs
- MethodBody.cs
- XAMLParseException.cs
- DataGridViewTopLeftHeaderCell.cs
- ElementMarkupObject.cs
- PriorityChain.cs
- WebConfigurationHost.cs
- WCFModelStrings.Designer.cs
- TagMapCollection.cs
- TimelineClockCollection.cs
- BuildProvider.cs
- FontSource.cs
- WhitespaceRule.cs
- EventEntry.cs
- PolyQuadraticBezierSegment.cs
- sqlnorm.cs
- HitTestParameters3D.cs
- MailMessage.cs
- ProcessModelInfo.cs
- Button.cs
- QilExpression.cs
- TrackingStringDictionary.cs
- SeverityFilter.cs
- RefExpr.cs
- WindowInteractionStateTracker.cs
- PlatformCulture.cs
- StringInfo.cs
- TrustLevelCollection.cs
- WindowPattern.cs
- RequestCachePolicy.cs
- UserControlDesigner.cs
- ParameterCollectionEditorForm.cs
- PeerNearMe.cs
- BaseDataList.cs
- ApplicationDirectoryMembershipCondition.cs
- ExtractedStateEntry.cs
- SeparatorAutomationPeer.cs
- OleDbFactory.cs
- EventEntry.cs
- LinqToSqlWrapper.cs
- XmlSerializerVersionAttribute.cs
- SqlWorkflowInstanceStoreLock.cs
- ClientScriptManagerWrapper.cs
- ChannelDispatcherBase.cs
- DispatcherOperation.cs
- SoapRpcServiceAttribute.cs
- PointConverter.cs
- OleDbPropertySetGuid.cs
- PrePrepareMethodAttribute.cs
- OdbcConnectionPoolProviderInfo.cs
- PrePostDescendentsWalker.cs
- DataGridTextColumn.cs
- VisualStateManager.cs
- SmiSettersStream.cs
- SkinBuilder.cs
- ResourceType.cs
- ClientTarget.cs
- ToolStripGripRenderEventArgs.cs
- ProfessionalColorTable.cs
- WindowsAuthenticationEventArgs.cs
- IDReferencePropertyAttribute.cs
- OdbcStatementHandle.cs
- StoragePropertyMapping.cs
- SoapEnumAttribute.cs
- ExpressionPrinter.cs
- BaseConfigurationRecord.cs
- TypeUtils.cs
- SortDescription.cs
- ExternalFile.cs
- SafeCertificateStore.cs
- SocketAddress.cs
- ConfigDefinitionUpdates.cs
- Sql8ConformanceChecker.cs
- ControlEvent.cs
- XPathAncestorQuery.cs
- ThreadAttributes.cs
- DataRelationCollection.cs
- Native.cs
- TextComposition.cs
- RowToFieldTransformer.cs
- ProjectionCamera.cs
- AssemblyInfo.cs
- MouseWheelEventArgs.cs
- UriScheme.cs
- StylusPointDescription.cs
- TableMethodGenerator.cs
- OciEnlistContext.cs
- DetailsViewPageEventArgs.cs
- ContainerUtilities.cs
- _IPv4Address.cs
- LinqDataSourceView.cs
- WindowsSysHeader.cs
- _MultipleConnectAsync.cs
- arabicshape.cs
- SessionSwitchEventArgs.cs