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
- ContextConfiguration.cs
- SharedStatics.cs
- ParserStack.cs
- EnumUnknown.cs
- RegisteredScript.cs
- ObjectListFieldsPage.cs
- EtwTrackingParticipant.cs
- TraceListener.cs
- ClientRuntimeConfig.cs
- ImageFormat.cs
- DataGridPreparingCellForEditEventArgs.cs
- TypeSystemProvider.cs
- CodeBinaryOperatorExpression.cs
- mediapermission.cs
- CompositeActivityTypeDescriptorProvider.cs
- CanonicalFontFamilyReference.cs
- XmlDocumentSchema.cs
- EntitySqlException.cs
- ComponentDispatcherThread.cs
- ToolStripPanelRenderEventArgs.cs
- KeyInterop.cs
- XamlFilter.cs
- ConnectionManagementSection.cs
- ManagementEventWatcher.cs
- PropertyConverter.cs
- PagesSection.cs
- DataTemplateSelector.cs
- EventProxy.cs
- ApplicationServicesHostFactory.cs
- CodeExporter.cs
- DataGridRowsPresenter.cs
- CheckBoxAutomationPeer.cs
- BulletChrome.cs
- TextTreeTextNode.cs
- AccessibleObject.cs
- recordstatescratchpad.cs
- InvalidCommandTreeException.cs
- Conditional.cs
- PolicyUtility.cs
- FontUnitConverter.cs
- DataTrigger.cs
- FontConverter.cs
- IteratorDescriptor.cs
- XsdDuration.cs
- NativeMethods.cs
- TimeSpanConverter.cs
- MatrixConverter.cs
- TypeNameConverter.cs
- CompositeTypefaceMetrics.cs
- RuntimeWrappedException.cs
- XmlImplementation.cs
- ComAdminInterfaces.cs
- InvalidAsynchronousStateException.cs
- BulletedListEventArgs.cs
- Int32Collection.cs
- DummyDataSource.cs
- XslAst.cs
- Version.cs
- ImmComposition.cs
- SqlServices.cs
- GridErrorDlg.cs
- ViewManager.cs
- RC2.cs
- XmlLoader.cs
- MetadataProperty.cs
- WindowsClaimSet.cs
- RowsCopiedEventArgs.cs
- IndexedWhereQueryOperator.cs
- wgx_commands.cs
- Base64Decoder.cs
- Label.cs
- TextBox.cs
- WebPartEditorCancelVerb.cs
- MouseActionConverter.cs
- TextSpan.cs
- TableLayoutPanel.cs
- DigitalSignature.cs
- UnsafeNativeMethods.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- SecurityTokenTypes.cs
- PointLight.cs
- RoleExceptions.cs
- NameValuePair.cs
- MarginsConverter.cs
- PreProcessor.cs
- ConnectionStringsExpressionBuilder.cs
- _OverlappedAsyncResult.cs
- TextRunTypographyProperties.cs
- BindableTemplateBuilder.cs
- __Error.cs
- PtsPage.cs
- StreamWriter.cs
- DataGridViewCellStyleChangedEventArgs.cs
- MultiBinding.cs
- FixedSOMPageElement.cs
- BatchWriter.cs
- DefaultSection.cs
- CodeExpressionCollection.cs
- XmlLoader.cs
- SqlCommandBuilder.cs