Code:
/ 4.0 / 4.0 / 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.
//----------------------------------------------------------------------------
//
// 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
- Zone.cs
- IndexerNameAttribute.cs
- CodeConditionStatement.cs
- AttachedProperty.cs
- EpmSyndicationContentSerializer.cs
- URL.cs
- UniformGrid.cs
- MouseCaptureWithinProperty.cs
- QueueProcessor.cs
- LineSegment.cs
- QilLoop.cs
- WriteTimeStream.cs
- XmlSecureResolver.cs
- ListenerPerfCounters.cs
- WindowExtensionMethods.cs
- SatelliteContractVersionAttribute.cs
- ContextMenu.cs
- SevenBitStream.cs
- SecurityManager.cs
- VirtualizingPanel.cs
- SqlRetyper.cs
- UnitySerializationHolder.cs
- DesignerHierarchicalDataSourceView.cs
- DrawingContextDrawingContextWalker.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- SQLConvert.cs
- MobileSysDescriptionAttribute.cs
- BinaryOperationBinder.cs
- RuntimeEnvironment.cs
- TypedCompletedAsyncResult.cs
- _DisconnectOverlappedAsyncResult.cs
- AsymmetricAlgorithm.cs
- AtomMaterializer.cs
- XPathDocumentNavigator.cs
- TextServicesDisplayAttribute.cs
- Section.cs
- InstanceLockLostException.cs
- BasicExpandProvider.cs
- GridViewDeleteEventArgs.cs
- EmbeddedMailObjectsCollection.cs
- EntitySqlQueryCacheKey.cs
- DispatcherExceptionEventArgs.cs
- RuntimeConfig.cs
- ToolStripManager.cs
- AccessibleObject.cs
- ProxyWebPartManager.cs
- DataSetFieldSchema.cs
- AudioSignalProblemOccurredEventArgs.cs
- WebContentFormatHelper.cs
- PropertyGroupDescription.cs
- GlyphTypeface.cs
- DataGridViewRowCollection.cs
- securitycriticaldata.cs
- SqlStream.cs
- PeerNodeAddress.cs
- Helpers.cs
- EdmProviderManifest.cs
- RequestBringIntoViewEventArgs.cs
- ACL.cs
- ApplicationDirectory.cs
- StrongTypingException.cs
- templategroup.cs
- PrintDialogDesigner.cs
- MouseGestureConverter.cs
- EdmSchemaAttribute.cs
- TextEditorSpelling.cs
- TabControlToolboxItem.cs
- Validator.cs
- ArrayListCollectionBase.cs
- Encoder.cs
- UIElement.cs
- GradientStop.cs
- ObjectListTitleAttribute.cs
- _HelperAsyncResults.cs
- ManagedCodeMarkers.cs
- PartialCachingAttribute.cs
- FontUnitConverter.cs
- SqlFactory.cs
- ManagementInstaller.cs
- SupportingTokenProviderSpecification.cs
- ToolZone.cs
- XmlILIndex.cs
- ProviderSettings.cs
- CursorInteropHelper.cs
- DataGridColumnDropSeparator.cs
- TabletCollection.cs
- Vector.cs
- TargetParameterCountException.cs
- DesignerActionPropertyItem.cs
- Tracer.cs
- columnmapkeybuilder.cs
- ListBindingHelper.cs
- AuthenticationModulesSection.cs
- PictureBox.cs
- CommandLibraryHelper.cs
- FrameworkRichTextComposition.cs
- ExpressionBuilder.cs
- HttpListenerPrefixCollection.cs
- ButtonBaseAdapter.cs
- ComboBoxAutomationPeer.cs