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
- CLSCompliantAttribute.cs
- MatrixUtil.cs
- FormViewInsertedEventArgs.cs
- ThreadAttributes.cs
- PropertyEntry.cs
- TrustLevelCollection.cs
- WinInetCache.cs
- ConfigurationStrings.cs
- DataGridPageChangedEventArgs.cs
- RandomNumberGenerator.cs
- EventProperty.cs
- MatcherBuilder.cs
- GenericTextProperties.cs
- ParamArrayAttribute.cs
- AttributeUsageAttribute.cs
- Main.cs
- RootProjectionNode.cs
- KeyGesture.cs
- AppDomainAttributes.cs
- WebHttpBindingCollectionElement.cs
- ParameterCollection.cs
- FileDialog_Vista.cs
- SqlBuilder.cs
- CompatibleComparer.cs
- TextRange.cs
- FormViewUpdateEventArgs.cs
- MediaContext.cs
- XmlExtensionFunction.cs
- MessageSecurityOverHttpElement.cs
- CodeDomConfigurationHandler.cs
- PenCursorManager.cs
- IsolationInterop.cs
- FrameworkReadOnlyPropertyMetadata.cs
- BitmapEffectRenderDataResource.cs
- SystemDiagnosticsSection.cs
- NetTcpBindingCollectionElement.cs
- StateInitialization.cs
- WindowsFont.cs
- DocumentsTrace.cs
- SelectionEditor.cs
- DefaultSerializationProviderAttribute.cs
- RenderData.cs
- RestHandlerFactory.cs
- DataKey.cs
- CriticalExceptions.cs
- ObservableCollection.cs
- PropertyGroupDescription.cs
- PartitionResolver.cs
- InheritedPropertyChangedEventArgs.cs
- PersonalizationProviderHelper.cs
- WebBrowserDocumentCompletedEventHandler.cs
- TypeUtils.cs
- ConnectionStringsExpressionBuilder.cs
- ProxyAttribute.cs
- EmbeddedMailObjectsCollection.cs
- HttpWebRequestElement.cs
- WebPermission.cs
- SignatureToken.cs
- WebControlParameterProxy.cs
- OleDbTransaction.cs
- InkCanvasSelectionAdorner.cs
- SafeHandles.cs
- TreeNodeCollectionEditor.cs
- ScrollChrome.cs
- PtsHelper.cs
- EventRecordWrittenEventArgs.cs
- RegistrySecurity.cs
- HotSpotCollection.cs
- ModifierKeysValueSerializer.cs
- NavigationWindowAutomationPeer.cs
- TextBox.cs
- TransformerInfoCollection.cs
- WorkflowRuntimeServiceElementCollection.cs
- WinEventTracker.cs
- WorkflowMarkupElementEventArgs.cs
- RelatedEnd.cs
- InputScope.cs
- Rotation3D.cs
- HttpFileCollection.cs
- SecurityTokenSerializer.cs
- DesignerContextDescriptor.cs
- DataGridCell.cs
- PKCS1MaskGenerationMethod.cs
- Transform.cs
- _NTAuthentication.cs
- ReadOnlyTernaryTree.cs
- CompositeCollection.cs
- LinkLabel.cs
- TypePresenter.xaml.cs
- _SecureChannel.cs
- DiagnosticTraceSource.cs
- SiteMapProvider.cs
- GradientBrush.cs
- Expression.cs
- BaseTemplateParser.cs
- OdbcCommand.cs
- MethodRental.cs
- TextPattern.cs
- TypeElement.cs
- Propagator.ExtentPlaceholderCreator.cs