Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- CodeTypeReferenceCollection.cs
- LineGeometry.cs
- XamlTreeBuilderBamlRecordWriter.cs
- ContentPresenter.cs
- EventPropertyMap.cs
- hresults.cs
- AssociationEndMember.cs
- TripleDESCryptoServiceProvider.cs
- Color.cs
- ChangeConflicts.cs
- ItemContainerPattern.cs
- Normalization.cs
- WindowInteropHelper.cs
- CollaborationHelperFunctions.cs
- StringResourceManager.cs
- StringReader.cs
- Journaling.cs
- WebPartTransformerAttribute.cs
- GenericXmlSecurityTokenAuthenticator.cs
- ToolBarOverflowPanel.cs
- AssemblyBuilder.cs
- DatagridviewDisplayedBandsData.cs
- safelinkcollection.cs
- ConnectionPoint.cs
- CmsInterop.cs
- QueryStringParameter.cs
- ParallelLoopState.cs
- _SslStream.cs
- PassportAuthentication.cs
- PluggableProtocol.cs
- ConfigsHelper.cs
- IconHelper.cs
- OdbcRowUpdatingEvent.cs
- FormsAuthenticationUserCollection.cs
- OleDbFactory.cs
- ClipboardProcessor.cs
- BitmapEffectInput.cs
- ReadWriteObjectLock.cs
- SafeCertificateStore.cs
- DataSourceCache.cs
- InternalPermissions.cs
- XmlSchemaCompilationSettings.cs
- AsyncResult.cs
- CharStorage.cs
- httpapplicationstate.cs
- XhtmlBasicTextBoxAdapter.cs
- Debug.cs
- SystemIPGlobalProperties.cs
- TextEndOfParagraph.cs
- PagesChangedEventArgs.cs
- HwndSubclass.cs
- CodeTypeReference.cs
- NativeMethods.cs
- MarkupCompiler.cs
- EasingKeyFrames.cs
- DataGridViewSelectedCellCollection.cs
- AccessorTable.cs
- CodeCatchClauseCollection.cs
- HtmlContainerControl.cs
- RichTextBox.cs
- ColumnHeaderConverter.cs
- PeerNearMe.cs
- OperationGenerator.cs
- XsdBuilder.cs
- HostingPreferredMapPath.cs
- ElapsedEventArgs.cs
- KeyFrames.cs
- ActivityValidator.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- XmlDataCollection.cs
- TemplateEditingVerb.cs
- DocumentGridPage.cs
- webclient.cs
- WizardPanel.cs
- FactoryMaker.cs
- ToolStripDropDown.cs
- TableItemPatternIdentifiers.cs
- ErrorRuntimeConfig.cs
- SqlDataSourceConfigureSortForm.cs
- ImageCodecInfoPrivate.cs
- FilterQueryOptionExpression.cs
- Repeater.cs
- SimpleApplicationHost.cs
- Light.cs
- ContentPosition.cs
- MultiPropertyDescriptorGridEntry.cs
- FixedSOMGroup.cs
- TableDetailsRow.cs
- SafeTimerHandle.cs
- TraceSection.cs
- DropDownButton.cs
- XmlSequenceWriter.cs
- XmlUrlResolver.cs
- LinearQuaternionKeyFrame.cs
- HttpApplication.cs
- IListConverters.cs
- ZeroOpNode.cs
- MDIWindowDialog.cs
- FtpRequestCacheValidator.cs
- ServiceDebugBehavior.cs