Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- BufferedWebEventProvider.cs
- FontDifferentiator.cs
- RubberbandSelector.cs
- RenderDataDrawingContext.cs
- SerializationSectionGroup.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- X509CertificateCollection.cs
- PartBasedPackageProperties.cs
- ObjectConverter.cs
- WrappedIUnknown.cs
- COM2Properties.cs
- NoResizeSelectionBorderGlyph.cs
- AppDomainFactory.cs
- QilGenerator.cs
- BamlBinaryWriter.cs
- StringArrayConverter.cs
- WindowsListViewGroupHelper.cs
- CompositeFontInfo.cs
- SynchronizedDispatch.cs
- Popup.cs
- activationcontext.cs
- WithStatement.cs
- ScriptHandlerFactory.cs
- RowToFieldTransformer.cs
- HttpDebugHandler.cs
- ConstructorExpr.cs
- EventWaitHandle.cs
- ImpersonateTokenRef.cs
- PtsCache.cs
- AffineTransform3D.cs
- IsolatedStorageException.cs
- DebugManager.cs
- ExternalException.cs
- CultureInfoConverter.cs
- RtType.cs
- BitmapFrame.cs
- XdrBuilder.cs
- ACE.cs
- Visitor.cs
- WindowsClientCredential.cs
- TemplateBindingExtensionConverter.cs
- ImageInfo.cs
- TemplateContentLoader.cs
- TransactionBridgeSection.cs
- MSG.cs
- CryptoApi.cs
- AstNode.cs
- WindowsToolbar.cs
- MsdtcWrapper.cs
- TraceContextEventArgs.cs
- propertytag.cs
- TypefaceMetricsCache.cs
- ListViewEditEventArgs.cs
- EntityTypeBase.cs
- ToolBarButtonDesigner.cs
- ResourceExpressionBuilder.cs
- XmlSchemaDatatype.cs
- TransformerTypeCollection.cs
- Condition.cs
- Memoizer.cs
- InputElement.cs
- SpeechSeg.cs
- DataReceivedEventArgs.cs
- Types.cs
- Int32CollectionValueSerializer.cs
- RunClient.cs
- CompiledQuery.cs
- InkCanvasFeedbackAdorner.cs
- SelectionList.cs
- MenuTracker.cs
- HighContrastHelper.cs
- ObjectTag.cs
- hresults.cs
- TextFormatterContext.cs
- ApplicationBuildProvider.cs
- QilInvoke.cs
- IriParsingElement.cs
- TextSpanModifier.cs
- UrlPath.cs
- DbExpressionBuilder.cs
- TransformedBitmap.cs
- XmlQueryRuntime.cs
- LinqDataSourceDisposeEventArgs.cs
- FrugalList.cs
- xml.cs
- EntityDataSourceState.cs
- ApplicationTrust.cs
- SortFieldComparer.cs
- EnumerationRangeValidationUtil.cs
- MobileUserControl.cs
- XsdDataContractImporter.cs
- FileStream.cs
- NamespaceCollection.cs
- PageSettings.cs
- Tag.cs
- IfJoinedCondition.cs
- ErrorWebPart.cs
- SafeThreadHandle.cs
- ElementHostPropertyMap.cs
- IItemContainerGenerator.cs