Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- Repeater.cs
- TerminatorSinks.cs
- MethodToken.cs
- UserNamePasswordValidator.cs
- XmlILStorageConverter.cs
- XPathDescendantIterator.cs
- EntityReference.cs
- SqlClientMetaDataCollectionNames.cs
- RSAPKCS1SignatureDeformatter.cs
- MailMessageEventArgs.cs
- DataAdapter.cs
- MemberInitExpression.cs
- AdornerPresentationContext.cs
- UnsafeNativeMethods.cs
- CallbackHandler.cs
- EntityDataSourceDataSelection.cs
- PublisherMembershipCondition.cs
- PageSettings.cs
- XmlSchemaAttributeGroup.cs
- PageAsyncTask.cs
- Base64WriteStateInfo.cs
- ListViewGroupCollectionEditor.cs
- PagesChangedEventArgs.cs
- safelinkcollection.cs
- SHA512.cs
- LayoutUtils.cs
- GlobalizationSection.cs
- MatrixTransform3D.cs
- AstTree.cs
- HebrewNumber.cs
- ExceptionTranslationTable.cs
- CfgParser.cs
- SrgsItemList.cs
- GregorianCalendarHelper.cs
- XmlChildNodes.cs
- Util.cs
- RadialGradientBrush.cs
- isolationinterop.cs
- TextBreakpoint.cs
- SHA1Managed.cs
- AppDomainFactory.cs
- TextSelectionProcessor.cs
- DecoderNLS.cs
- ImageDrawing.cs
- ResourceCodeDomSerializer.cs
- XPathSingletonIterator.cs
- TdsParserStaticMethods.cs
- AuthenticateEventArgs.cs
- DetailsViewUpdatedEventArgs.cs
- DataServiceKeyAttribute.cs
- ListContractAdapter.cs
- TypeReference.cs
- AggregateNode.cs
- HexParser.cs
- DiagnosticTrace.cs
- IDReferencePropertyAttribute.cs
- ResourcesGenerator.cs
- OutputCache.cs
- SettingsPropertyCollection.cs
- SortExpressionBuilder.cs
- FormViewRow.cs
- FormViewInsertEventArgs.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- RTLAwareMessageBox.cs
- WindowsTokenRoleProvider.cs
- TextServicesManager.cs
- FragmentQueryKB.cs
- TabControlEvent.cs
- SurrogateEncoder.cs
- UInt64Converter.cs
- TriggerCollection.cs
- StringValueSerializer.cs
- PrintingPermission.cs
- SQLSingle.cs
- X509SecurityToken.cs
- SafeProcessHandle.cs
- DynamicILGenerator.cs
- BoundField.cs
- XmlCustomFormatter.cs
- PageRequestManager.cs
- TemplateAction.cs
- TextFormatterImp.cs
- ResXBuildProvider.cs
- ColumnCollection.cs
- PostBackOptions.cs
- LabelAutomationPeer.cs
- ControlCommandSet.cs
- BeginEvent.cs
- BitmapVisualManager.cs
- X509ScopedServiceCertificateElement.cs
- Keyboard.cs
- DiscoveryEndpoint.cs
- XslAst.cs
- _MultipleConnectAsync.cs
- CodeConstructor.cs
- FontFamilyConverter.cs
- HtmlUtf8RawTextWriter.cs
- ContainerParaClient.cs
- ProxyHelper.cs
- FastEncoder.cs