Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ActivityExecutorOperation.cs
- _ScatterGatherBuffers.cs
- ScrollEvent.cs
- BindToObject.cs
- SafeWaitHandle.cs
- QueryCorrelationInitializer.cs
- DialogResultConverter.cs
- ConfigXmlCDataSection.cs
- NativeMethodsOther.cs
- BufferCache.cs
- HtmlTableCellCollection.cs
- SubqueryRules.cs
- InvokeWebServiceDesigner.cs
- XslException.cs
- XmlValueConverter.cs
- GradientStopCollection.cs
- MeshGeometry3D.cs
- UndirectedGraph.cs
- DesignerValidationSummaryAdapter.cs
- OdbcConnectionOpen.cs
- DataServiceClientException.cs
- DefaultBindingPropertyAttribute.cs
- Model3DGroup.cs
- DetailsViewPageEventArgs.cs
- XamlReaderHelper.cs
- DataControlPagerLinkButton.cs
- XamlClipboardData.cs
- HtmlEncodedRawTextWriter.cs
- WindowInteropHelper.cs
- QuaternionKeyFrameCollection.cs
- WindowsScroll.cs
- MasterPage.cs
- ImageAnimator.cs
- Roles.cs
- PasswordBoxAutomationPeer.cs
- SystemEvents.cs
- WorkflowDesignerColors.cs
- UseLicense.cs
- _BaseOverlappedAsyncResult.cs
- ProcessHost.cs
- CompositeKey.cs
- TableLayoutStyleCollection.cs
- Hyperlink.cs
- ReadOnlyCollectionBase.cs
- WorkflowApplicationException.cs
- relpropertyhelper.cs
- HostAdapter.cs
- TextViewBase.cs
- DockAndAnchorLayout.cs
- SmiMetaDataProperty.cs
- TdsParser.cs
- Scheduling.cs
- InvalidPrinterException.cs
- SQLInt32Storage.cs
- FixedStringLookup.cs
- BrowserCapabilitiesCodeGenerator.cs
- DirectoryNotFoundException.cs
- WinInet.cs
- ExpandableObjectConverter.cs
- ResourceAttributes.cs
- TypeValidationEventArgs.cs
- SiteMapNodeItem.cs
- TaiwanCalendar.cs
- XhtmlTextWriter.cs
- TypeGenericEnumerableViewSchema.cs
- UniqueEventHelper.cs
- ModelUtilities.cs
- ControlPaint.cs
- CollectionViewGroup.cs
- FontUnit.cs
- ImageMapEventArgs.cs
- WasHostedComPlusFactory.cs
- UrlPath.cs
- CalculatedColumn.cs
- PropertySourceInfo.cs
- TextRunProperties.cs
- Transform3D.cs
- EntityViewGenerator.cs
- RenderDataDrawingContext.cs
- Buffer.cs
- EncryptedData.cs
- ApplicationDirectoryMembershipCondition.cs
- TrackingConditionCollection.cs
- GatewayIPAddressInformationCollection.cs
- FrameSecurityDescriptor.cs
- XpsFilter.cs
- SplitContainer.cs
- ToolStripArrowRenderEventArgs.cs
- URIFormatException.cs
- CharacterBufferReference.cs
- DecimalAnimationBase.cs
- ByteAnimationUsingKeyFrames.cs
- EntityProviderFactory.cs
- SynchronizedChannelCollection.cs
- InternalDuplexChannelFactory.cs
- RayMeshGeometry3DHitTestResult.cs
- ConstrainedGroup.cs
- MatchingStyle.cs
- FastEncoderWindow.cs
- Scalars.cs