Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- WorkflowLayouts.cs
- Substitution.cs
- DesignerSerializationVisibilityAttribute.cs
- WinEventTracker.cs
- ConfigurationSectionCollection.cs
- PrintingPermissionAttribute.cs
- ItemsPresenter.cs
- X509CertificateCollection.cs
- PersonalizationProvider.cs
- HttpChannelHelpers.cs
- OleDbErrorCollection.cs
- WebBrowserBase.cs
- StructuralCache.cs
- WebPartRestoreVerb.cs
- VolatileEnlistmentState.cs
- UIElement.cs
- DetailsViewInsertEventArgs.cs
- ToolStripCollectionEditor.cs
- FontCollection.cs
- WindowHideOrCloseTracker.cs
- printdlgexmarshaler.cs
- PointLight.cs
- ToolStripContentPanelRenderEventArgs.cs
- VideoDrawing.cs
- TableDetailsCollection.cs
- WorkflowEnvironment.cs
- Renderer.cs
- DataServiceBuildProvider.cs
- TransformationRules.cs
- CharKeyFrameCollection.cs
- XmlNodeChangedEventArgs.cs
- AsynchronousChannel.cs
- PassportAuthenticationEventArgs.cs
- ServiceTimeoutsElement.cs
- IPEndPointCollection.cs
- InstancePersistenceEvent.cs
- SHA1.cs
- UidManager.cs
- GridView.cs
- DataGridCell.cs
- FormatConvertedBitmap.cs
- ListGeneralPage.cs
- EventRouteFactory.cs
- MediaElementAutomationPeer.cs
- sqlinternaltransaction.cs
- ProcessModule.cs
- SqlEnums.cs
- TextServicesDisplayAttributePropertyRanges.cs
- peersecurityelement.cs
- XmlEntityReference.cs
- ListViewEditEventArgs.cs
- StreamWithDictionary.cs
- EntityDataSourceDesignerHelper.cs
- ChangesetResponse.cs
- SpeechEvent.cs
- ListViewEditEventArgs.cs
- WebConfigurationFileMap.cs
- DataSourceXmlSerializer.cs
- _ListenerResponseStream.cs
- UIElementHelper.cs
- MenuBindingsEditor.cs
- CustomLineCap.cs
- SqlDataSourceFilteringEventArgs.cs
- CacheDependency.cs
- AttachedPropertiesService.cs
- compensatingcollection.cs
- InputScopeNameConverter.cs
- GridProviderWrapper.cs
- HierarchicalDataBoundControl.cs
- RawAppCommandInputReport.cs
- XmlQualifiedNameTest.cs
- ColorConvertedBitmapExtension.cs
- RegexGroupCollection.cs
- MouseActionValueSerializer.cs
- AppDomainCompilerProxy.cs
- DoubleUtil.cs
- RtfNavigator.cs
- PathNode.cs
- TypedElement.cs
- PersonalizationEntry.cs
- RegexCode.cs
- TabControlEvent.cs
- Pair.cs
- Registration.cs
- FilterException.cs
- UrlRoutingModule.cs
- Table.cs
- Constraint.cs
- OdbcConnection.cs
- PenCursorManager.cs
- Size3D.cs
- InputEventArgs.cs
- HotSpotCollection.cs
- ImmutableAssemblyCacheEntry.cs
- BuildProvidersCompiler.cs
- Types.cs
- XmlAtomicValue.cs
- CellParaClient.cs
- DataSourceControlBuilder.cs
- Scheduling.cs