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
- TypeListConverter.cs
- NamedPipeChannelFactory.cs
- IntPtr.cs
- AssemblyHelper.cs
- IpcChannelHelper.cs
- DBAsyncResult.cs
- EmptyEnumerable.cs
- UserControlAutomationPeer.cs
- ReversePositionQuery.cs
- DefaultBindingPropertyAttribute.cs
- RSAPKCS1SignatureDeformatter.cs
- MultiDataTrigger.cs
- SequentialUshortCollection.cs
- PerfProviderCollection.cs
- XmlSchemaAttributeGroup.cs
- Filter.cs
- UIntPtr.cs
- BitmapMetadata.cs
- MetadataItemEmitter.cs
- StorageEntitySetMapping.cs
- HMACSHA256.cs
- DesignBinding.cs
- AppAction.cs
- ValidationSummary.cs
- BinaryWriter.cs
- BinaryObjectWriter.cs
- XamlReaderHelper.cs
- UInt64Storage.cs
- ReliabilityContractAttribute.cs
- coordinator.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- VisualBasicImportReference.cs
- DependencyObject.cs
- PlatformNotSupportedException.cs
- RoleManagerSection.cs
- SecurityException.cs
- EventLogTraceListener.cs
- TrustExchangeException.cs
- ReachSerializationUtils.cs
- VBIdentifierDesigner.xaml.cs
- HyperLink.cs
- HtmlTitle.cs
- StickyNoteContentControl.cs
- PropertyChangedEventManager.cs
- CompositeClientFormatter.cs
- CodeMethodReturnStatement.cs
- TextEditor.cs
- WebPartExportVerb.cs
- MultiTrigger.cs
- XmlValueConverter.cs
- EncodingInfo.cs
- Wildcard.cs
- XamlReader.cs
- sqlcontext.cs
- AssemblyAssociatedContentFileAttribute.cs
- EntityDataSourceContextCreatingEventArgs.cs
- XPathScanner.cs
- FilteredDataSetHelper.cs
- MenuCommandService.cs
- DataGridViewCellValidatingEventArgs.cs
- DataObjectFieldAttribute.cs
- SqlUserDefinedAggregateAttribute.cs
- TextTreeTextBlock.cs
- BaseInfoTable.cs
- DatatypeImplementation.cs
- StylusOverProperty.cs
- SqlCacheDependencyDatabase.cs
- TextDecoration.cs
- TypeBrowser.xaml.cs
- NumericUpDown.cs
- PeerInputChannelListener.cs
- MemberInfoSerializationHolder.cs
- ValidationEventArgs.cs
- SHA512.cs
- EntityDataSourceView.cs
- MyContact.cs
- RegionInfo.cs
- XmlQueryOutput.cs
- MatrixTransform.cs
- Crc32.cs
- DataTablePropertyDescriptor.cs
- ContentPlaceHolder.cs
- EdmFunction.cs
- BamlMapTable.cs
- Currency.cs
- DataGridViewDataConnection.cs
- Positioning.cs
- ScriptComponentDescriptor.cs
- ClipboardData.cs
- PasswordPropertyTextAttribute.cs
- DetailsViewDeleteEventArgs.cs
- ZipIOExtraFieldElement.cs
- EventDriven.cs
- RubberbandSelector.cs
- DataViewSetting.cs
- MinMaxParagraphWidth.cs
- AnimationLayer.cs
- PropertyPathConverter.cs
- MobileSysDescriptionAttribute.cs
- WebPartEditorCancelVerb.cs