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
- TextCollapsingProperties.cs
- AesManaged.cs
- ValueHandle.cs
- XmlDataDocument.cs
- FixedSOMPageElement.cs
- MethodAccessException.cs
- UniformGrid.cs
- ACE.cs
- ExpressionPrinter.cs
- FontSourceCollection.cs
- EventWaitHandle.cs
- JapaneseCalendar.cs
- ComponentEvent.cs
- initElementDictionary.cs
- CodeAttributeDeclarationCollection.cs
- CssTextWriter.cs
- TypeInitializationException.cs
- SqlConnectionManager.cs
- CanExecuteRoutedEventArgs.cs
- CustomErrorsSection.cs
- PathTooLongException.cs
- UnsafeNativeMethods.cs
- TextRange.cs
- WsatServiceCertificate.cs
- InternalMappingException.cs
- HtmlDocument.cs
- Message.cs
- ColorConvertedBitmap.cs
- DrawingCollection.cs
- GPStream.cs
- FormatException.cs
- ResourceFallbackManager.cs
- WebPartEditorOkVerb.cs
- HMACMD5.cs
- PtsHelper.cs
- FileDialogCustomPlace.cs
- mansign.cs
- ActivityExecutorDelegateInfo.cs
- ProcessModuleDesigner.cs
- AsyncOperationManager.cs
- RuntimeUtils.cs
- PrimaryKeyTypeConverter.cs
- TimeSpanOrInfiniteConverter.cs
- NextPreviousPagerField.cs
- RijndaelManaged.cs
- ProxyFragment.cs
- WorkflowLayouts.cs
- RightsManagementPermission.cs
- CanExecuteRoutedEventArgs.cs
- QuotedStringWriteStateInfo.cs
- MailAddress.cs
- SortFieldComparer.cs
- WebWorkflowRole.cs
- WindowsListViewGroupHelper.cs
- KnownTypesProvider.cs
- ProtectedConfigurationSection.cs
- GenericWebPart.cs
- WebPartActionVerb.cs
- MetadataCache.cs
- PassportAuthenticationEventArgs.cs
- PlatformNotSupportedException.cs
- DataGridColumnHeader.cs
- CaseStatementProjectedSlot.cs
- DataContractSerializerOperationGenerator.cs
- SQLInt32.cs
- WebPartTransformerAttribute.cs
- SortExpressionBuilder.cs
- UrlMappingsModule.cs
- BitmapMetadataEnumerator.cs
- StorageEndPropertyMapping.cs
- nulltextcontainer.cs
- ArglessEventHandlerProxy.cs
- CodeAccessPermission.cs
- NavigationPropertyEmitter.cs
- FormsAuthentication.cs
- SplitterDesigner.cs
- DeviceContext.cs
- XmlSerializerVersionAttribute.cs
- ClockController.cs
- CodeAttributeDeclarationCollection.cs
- SwitchElementsCollection.cs
- ConfigsHelper.cs
- DragStartedEventArgs.cs
- Vector3D.cs
- ListViewCancelEventArgs.cs
- CriticalFinalizerObject.cs
- ManagementExtension.cs
- ApplicationSecurityInfo.cs
- ChangeBlockUndoRecord.cs
- PropertyOverridesDialog.cs
- SrgsSubset.cs
- TraceLevelStore.cs
- WebPermission.cs
- GZipDecoder.cs
- StretchValidation.cs
- WeakReferenceList.cs
- BitmapCache.cs
- ExtensionElement.cs
- DataBindEngine.cs
- DataControlPagerLinkButton.cs