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
- TypeListConverter.cs
- UserPersonalizationStateInfo.cs
- RSAPKCS1SignatureDeformatter.cs
- PasswordRecovery.cs
- PageRanges.cs
- AuthenticationService.cs
- ServiceDescriptionImporter.cs
- HashLookup.cs
- SRef.cs
- __Filters.cs
- AlternateViewCollection.cs
- XmlMemberMapping.cs
- ScrollChangedEventArgs.cs
- EventArgs.cs
- Tokenizer.cs
- ButtonBase.cs
- Base64Decoder.cs
- TableLayoutSettings.cs
- VisualBasicExpressionConverter.cs
- Unit.cs
- DoubleAnimation.cs
- TimeBoundedCache.cs
- COM2ColorConverter.cs
- TypeConverterHelper.cs
- PixelFormat.cs
- BuildDependencySet.cs
- EndpointDiscoveryMetadataCD1.cs
- DependencyObjectValidator.cs
- _Connection.cs
- DockPatternIdentifiers.cs
- WizardPanel.cs
- EventRecordWrittenEventArgs.cs
- StylusLogic.cs
- ExplicitDiscriminatorMap.cs
- TreeIterators.cs
- ErrorFormatterPage.cs
- CssTextWriter.cs
- TemplateContainer.cs
- InputDevice.cs
- HtmlInputText.cs
- ReceiveActivityDesigner.cs
- CommandID.cs
- NonVisualControlAttribute.cs
- MostlySingletonList.cs
- PolyLineSegment.cs
- HostedBindingBehavior.cs
- BindingUtils.cs
- CellConstant.cs
- DelayDesigner.cs
- WmlLiteralTextAdapter.cs
- DefaultHttpHandler.cs
- SoapProtocolImporter.cs
- OutputScopeManager.cs
- XmlDataSourceView.cs
- WebRequestModulesSection.cs
- IDReferencePropertyAttribute.cs
- ItemsControl.cs
- DivideByZeroException.cs
- DependencyObject.cs
- PathFigureCollection.cs
- TouchDevice.cs
- ColorTranslator.cs
- Grid.cs
- rsa.cs
- DiscoveryEndpointElement.cs
- TcpWorkerProcess.cs
- FrugalMap.cs
- PartialCachingAttribute.cs
- Document.cs
- sqlpipe.cs
- SqlTriggerAttribute.cs
- WinFormsUtils.cs
- BitmapEffectInputConnector.cs
- UserControl.cs
- NetworkCredential.cs
- ColorConverter.cs
- WinEventHandler.cs
- LabelLiteral.cs
- SynchronousReceiveElement.cs
- UnsafeNativeMethodsTablet.cs
- StreamWithDictionary.cs
- SQLInt16Storage.cs
- Listbox.cs
- OptimalTextSource.cs
- QueryResult.cs
- AvTrace.cs
- LightweightEntityWrapper.cs
- WindowsFormsSynchronizationContext.cs
- MetadataWorkspace.cs
- AttributeCollection.cs
- CqlParserHelpers.cs
- ManagementObjectSearcher.cs
- ClientTargetCollection.cs
- PageAdapter.cs
- TextCollapsingProperties.cs
- TimeSpanStorage.cs
- CodeGotoStatement.cs
- XmlSchemaSet.cs
- AppendHelper.cs
- ScalarType.cs