Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / DrawingGroupDrawingContext.cs / 1305600 / 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
- WmlTextViewAdapter.cs
- WaitHandleCannotBeOpenedException.cs
- TreeViewItemAutomationPeer.cs
- UIHelper.cs
- SendMessageContent.cs
- TypeDescriptionProviderAttribute.cs
- NetworkCredential.cs
- ParameterCollectionEditorForm.cs
- UnmanagedMarshal.cs
- MonthCalendar.cs
- RowToParametersTransformer.cs
- XamlReaderHelper.cs
- WebPartRestoreVerb.cs
- EventRouteFactory.cs
- HttpFormatExtensions.cs
- CreateUserWizard.cs
- CLSCompliantAttribute.cs
- InstanceDataCollectionCollection.cs
- ErrorStyle.cs
- DetailsViewModeEventArgs.cs
- SelectorItemAutomationPeer.cs
- ComponentEvent.cs
- BlurBitmapEffect.cs
- ScriptModule.cs
- InputReferenceExpression.cs
- InvalidComObjectException.cs
- StylusPlugInCollection.cs
- CaseStatement.cs
- InheritanceRules.cs
- MarkupExtensionParser.cs
- UserInitiatedNavigationPermission.cs
- FunctionQuery.cs
- StylusPointPropertyInfoDefaults.cs
- HttpListenerElement.cs
- SafeUserTokenHandle.cs
- TreeNodeCollection.cs
- OleDbPropertySetGuid.cs
- Tracer.cs
- PropertyKey.cs
- DeviceSpecificDesigner.cs
- ModelMemberCollection.cs
- WebResourceAttribute.cs
- CompiledAction.cs
- ScriptingWebServicesSectionGroup.cs
- SqlEnums.cs
- InputLanguageEventArgs.cs
- XmlSyndicationContent.cs
- SessionEndingCancelEventArgs.cs
- SplineQuaternionKeyFrame.cs
- WebPartTransformerCollection.cs
- XmlSchemaCollection.cs
- DataSetViewSchema.cs
- ContainerParagraph.cs
- HtmlUtf8RawTextWriter.cs
- ContextMenu.cs
- DoubleAnimationUsingPath.cs
- ConnectionPoint.cs
- StateDesigner.CommentLayoutGlyph.cs
- AccessDataSourceDesigner.cs
- Crc32.cs
- OletxEnlistment.cs
- Menu.cs
- XmlWriterSettings.cs
- AuditLogLocation.cs
- Transactions.cs
- HeaderElement.cs
- WindowsScroll.cs
- WindowsFormsHelpers.cs
- SmiContext.cs
- BufferedStream.cs
- TreeView.cs
- RootProfilePropertySettingsCollection.cs
- UnsafeNativeMethods.cs
- Error.cs
- SqlConnectionString.cs
- CustomDictionarySources.cs
- BitSet.cs
- TypefaceMetricsCache.cs
- Win32SafeHandles.cs
- KernelTypeValidation.cs
- ConstructorBuilder.cs
- ReturnType.cs
- DataListItemCollection.cs
- TypeHelper.cs
- TargetInvocationException.cs
- EntityDataSourceWrapperCollection.cs
- RequiredAttributeAttribute.cs
- ReversePositionQuery.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- FormatPage.cs
- MediaEntryAttribute.cs
- SecurityTokenRequirement.cs
- WebPartsPersonalization.cs
- EntityDataSourceQueryBuilder.cs
- XmlValidatingReader.cs
- ItemContainerProviderWrapper.cs
- DateTimeOffset.cs
- OpenFileDialog.cs
- HScrollBar.cs
- _LocalDataStore.cs