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
- ObjectDataProvider.cs
- LineGeometry.cs
- IPHostEntry.cs
- ResourceLoader.cs
- ReflectPropertyDescriptor.cs
- ResourceLoader.cs
- ItemContainerProviderWrapper.cs
- BitArray.cs
- RepeaterDataBoundAdapter.cs
- SystemTcpStatistics.cs
- ListItemsPage.cs
- CatalogPartChrome.cs
- GeometryGroup.cs
- GestureRecognizer.cs
- EventLogSession.cs
- Partitioner.cs
- TreeNodeCollectionEditor.cs
- TextCharacters.cs
- ConfigurationStrings.cs
- PreservationFileWriter.cs
- KoreanCalendar.cs
- DelimitedListTraceListener.cs
- SqlDataSourceCache.cs
- ConsumerConnectionPoint.cs
- QilXmlWriter.cs
- CheckBoxAutomationPeer.cs
- StateMachineWorkflow.cs
- IteratorFilter.cs
- ClientTargetSection.cs
- TypeDependencyAttribute.cs
- _FtpDataStream.cs
- DeviceContext.cs
- FactoryGenerator.cs
- DictionaryBase.cs
- CodeNamespace.cs
- LoadedOrUnloadedOperation.cs
- ResourceReferenceKeyNotFoundException.cs
- DigitShape.cs
- SqlTransaction.cs
- DependencyObjectValidator.cs
- AssemblyName.cs
- ReferencedAssembly.cs
- RelationshipEntry.cs
- BamlLocalizableResource.cs
- DoubleStorage.cs
- HttpAsyncResult.cs
- InheritanceAttribute.cs
- AsymmetricSignatureFormatter.cs
- sqlser.cs
- SqlDataSourceConnectionPanel.cs
- CapabilitiesUse.cs
- EdgeModeValidation.cs
- AuthenticationConfig.cs
- SpeechRecognitionEngine.cs
- RuntimeEnvironment.cs
- LockedHandleGlyph.cs
- XmlNodeChangedEventManager.cs
- StrokeCollection2.cs
- AnchoredBlock.cs
- DebugHandleTracker.cs
- ValueSerializer.cs
- TcpTransportSecurity.cs
- TrackingServices.cs
- BufferBuilder.cs
- _ShellExpression.cs
- SpeechAudioFormatInfo.cs
- ThrowHelper.cs
- StorageEndPropertyMapping.cs
- CapabilitiesState.cs
- AttachedAnnotationChangedEventArgs.cs
- XmlArrayItemAttribute.cs
- CallTemplateAction.cs
- GeneralTransform3DTo2DTo3D.cs
- XmlSchemaSequence.cs
- ContractType.cs
- CatalogZoneAutoFormat.cs
- autovalidator.cs
- ItemMap.cs
- CounterCreationData.cs
- EtwTrace.cs
- PolyLineSegment.cs
- MatrixUtil.cs
- RuleValidation.cs
- TextFormatter.cs
- DialogWindow.cs
- ProtocolsConfigurationHandler.cs
- MailMessage.cs
- DataGridViewRowPrePaintEventArgs.cs
- Base64Encoder.cs
- MaterializeFromAtom.cs
- NamespaceDecl.cs
- MinMaxParagraphWidth.cs
- PriorityChain.cs
- _CookieModule.cs
- DataRecordInternal.cs
- InvokeMethod.cs
- WebPartZoneCollection.cs
- CustomErrorCollection.cs
- VisualStateGroup.cs
- BookmarkTable.cs