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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MessageDecoder.cs
- _OverlappedAsyncResult.cs
- ContactManager.cs
- TextBox.cs
- ObjectQueryExecutionPlan.cs
- KnowledgeBase.cs
- ListSourceHelper.cs
- _UriTypeConverter.cs
- PropertyContainer.cs
- ActivitySurrogate.cs
- BamlRecords.cs
- DataTransferEventArgs.cs
- SqlTopReducer.cs
- Int64Converter.cs
- BitmapFrame.cs
- TabControl.cs
- PrintDialog.cs
- TargetControlTypeAttribute.cs
- ViewCellSlot.cs
- SBCSCodePageEncoding.cs
- ConfigXmlComment.cs
- SerialReceived.cs
- TimersDescriptionAttribute.cs
- SctClaimSerializer.cs
- MissingSatelliteAssemblyException.cs
- AspCompat.cs
- ScriptReference.cs
- SystemDropShadowChrome.cs
- ImageCollectionCodeDomSerializer.cs
- DataRelationCollection.cs
- CrossSiteScriptingValidation.cs
- EnumUnknown.cs
- IdentifierCollection.cs
- MonitorWrapper.cs
- TimeSpanStorage.cs
- HelpPage.cs
- SiteMapNodeItem.cs
- EmbeddedMailObjectsCollection.cs
- OdbcConnectionHandle.cs
- IdentityHolder.cs
- QueuedDeliveryRequirementsMode.cs
- HtmlInputSubmit.cs
- CombinedHttpChannel.cs
- DataGridParentRows.cs
- RawUIStateInputReport.cs
- WebConfigurationHost.cs
- ThreadAbortException.cs
- SqlDataSourceStatusEventArgs.cs
- UnsafeNativeMethods.cs
- DeviceContexts.cs
- GeneralTransformGroup.cs
- Group.cs
- SettingsPropertyWrongTypeException.cs
- UrlMappingCollection.cs
- SafeThreadHandle.cs
- StreamMarshaler.cs
- BlobPersonalizationState.cs
- MembershipSection.cs
- WebPartZoneCollection.cs
- coordinator.cs
- SequentialActivityDesigner.cs
- XPathMultyIterator.cs
- StorageEntityContainerMapping.cs
- SymbolDocumentGenerator.cs
- TreeNodeCollection.cs
- BinaryMessageEncoder.cs
- FixedSOMTableCell.cs
- HttpProfileGroupBase.cs
- FormViewDeletedEventArgs.cs
- DataBoundLiteralControl.cs
- FunctionUpdateCommand.cs
- CreateUserWizard.cs
- FilterQuery.cs
- PipelineModuleStepContainer.cs
- ComplexLine.cs
- TreeView.cs
- CDSCollectionETWBCLProvider.cs
- ErrorHandler.cs
- Span.cs
- DataGridViewCellStateChangedEventArgs.cs
- Configuration.cs
- UseLicense.cs
- MobileListItem.cs
- Debug.cs
- DataSourceXmlSerializer.cs
- IDispatchConstantAttribute.cs
- DocumentAutomationPeer.cs
- CompilationSection.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- Wizard.cs
- ActivityWithResult.cs
- RemotingConfigParser.cs
- SignatureConfirmations.cs
- XmlLinkedNode.cs
- WindowsListViewItemStartMenu.cs
- ControlUtil.cs
- Misc.cs
- ProtocolsConfigurationHandler.cs
- ExcludeFromCodeCoverageAttribute.cs
- PersonalizationState.cs