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
- ErrorCodes.cs
- KnownBoxes.cs
- LazyTextWriterCreator.cs
- DynamicILGenerator.cs
- DelegateInArgument.cs
- WebPartTransformerCollection.cs
- RegexCharClass.cs
- DesignerGeometryHelper.cs
- LinkedResource.cs
- ObjectTypeMapping.cs
- ZeroOpNode.cs
- Rect.cs
- URLMembershipCondition.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- Thickness.cs
- XmlUnspecifiedAttribute.cs
- IDReferencePropertyAttribute.cs
- TreeViewBindingsEditorForm.cs
- CompiledQuery.cs
- TextProperties.cs
- MDIClient.cs
- OleDbPropertySetGuid.cs
- documentation.cs
- Util.cs
- ParserOptions.cs
- ProcessHostMapPath.cs
- VisualTarget.cs
- SQLInt16Storage.cs
- XmlBindingWorker.cs
- SettingsProperty.cs
- PeerApplicationLaunchInfo.cs
- KeyTimeConverter.cs
- CalendarDateRangeChangingEventArgs.cs
- ValueTable.cs
- Compensate.cs
- CardSpaceException.cs
- InvalidFilterCriteriaException.cs
- _UriSyntax.cs
- AssemblyNameProxy.cs
- ListViewUpdatedEventArgs.cs
- FieldNameLookup.cs
- XmlSchemaFacet.cs
- COM2TypeInfoProcessor.cs
- CalendarBlackoutDatesCollection.cs
- RemotingConfigParser.cs
- IconEditor.cs
- versioninfo.cs
- CryptoApi.cs
- BinaryObjectInfo.cs
- FixedSOMElement.cs
- RtfControlWordInfo.cs
- ViewgenContext.cs
- ColorTransformHelper.cs
- DbCommandDefinition.cs
- XsltException.cs
- ControlUtil.cs
- ComplexPropertyEntry.cs
- InstanceCreationEditor.cs
- DataGridViewTextBoxColumn.cs
- ServerIdentity.cs
- sqlnorm.cs
- EmptyControlCollection.cs
- SettingsPropertyValue.cs
- DeferredSelectedIndexReference.cs
- QueryOperationResponseOfT.cs
- ConnectionInterfaceCollection.cs
- RegexRunnerFactory.cs
- PresentationAppDomainManager.cs
- PeerObject.cs
- BasePattern.cs
- PagerStyle.cs
- StatusBarItemAutomationPeer.cs
- ZoneIdentityPermission.cs
- TrackBar.cs
- PropertyKey.cs
- Span.cs
- FontStyles.cs
- CategoryGridEntry.cs
- PeerTransportListenAddressValidatorAttribute.cs
- SizeConverter.cs
- RegexWorker.cs
- XhtmlTextWriter.cs
- Content.cs
- MethodToken.cs
- DataGridViewElement.cs
- EncryptedKey.cs
- ObjectSet.cs
- Sql8ConformanceChecker.cs
- Size3D.cs
- CatalogPartChrome.cs
- DataTableMapping.cs
- PingOptions.cs
- FontUnit.cs
- CatalogPartCollection.cs
- IFormattable.cs
- RepeaterItem.cs
- WindowsTokenRoleProvider.cs
- CommandPlan.cs
- CodeExporter.cs
- SqlProviderUtilities.cs