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
- AnonymousIdentificationModule.cs
- AsyncPostBackErrorEventArgs.cs
- ApplicationCommands.cs
- LoginName.cs
- StorageMappingFragment.cs
- TrackingDataItem.cs
- HtmlInputImage.cs
- GridPattern.cs
- RetriableClipboard.cs
- LinqDataView.cs
- RawMouseInputReport.cs
- KeyValueSerializer.cs
- ApplicationSecurityInfo.cs
- DeflateStream.cs
- AdditionalEntityFunctions.cs
- EraserBehavior.cs
- SqlUserDefinedAggregateAttribute.cs
- DataServiceKeyAttribute.cs
- TimeoutValidationAttribute.cs
- DataGridViewColumnConverter.cs
- GroupLabel.cs
- DataGridViewSelectedRowCollection.cs
- DataKeyArray.cs
- AssemblyLoader.cs
- FilteredDataSetHelper.cs
- HeaderUtility.cs
- Focus.cs
- HashAlgorithm.cs
- xdrvalidator.cs
- RegistrySecurity.cs
- HttpHeaderCollection.cs
- ParagraphVisual.cs
- FontFaceLayoutInfo.cs
- PeerObject.cs
- PageDeviceFont.cs
- ClientScriptItem.cs
- TaskDesigner.cs
- DPCustomTypeDescriptor.cs
- Converter.cs
- Internal.cs
- odbcmetadatafactory.cs
- BitmapCodecInfoInternal.cs
- ConfigXmlComment.cs
- BitmapSource.cs
- UnsettableComboBox.cs
- RunInstallerAttribute.cs
- PostBackOptions.cs
- ProviderSettingsCollection.cs
- ToolStripProgressBar.cs
- HostingEnvironmentException.cs
- ToolStripActionList.cs
- DataGridViewCellStyleConverter.cs
- TextShapeableCharacters.cs
- UITypeEditors.cs
- UpdateCommand.cs
- XamlStyleSerializer.cs
- AccessKeyManager.cs
- DiagnosticsElement.cs
- CompositeDispatchFormatter.cs
- _ContextAwareResult.cs
- XmlILAnnotation.cs
- Decimal.cs
- ResourceExpressionBuilder.cs
- AttachmentService.cs
- UIElement3DAutomationPeer.cs
- ResourceDescriptionAttribute.cs
- ProxyWebPart.cs
- DataGridViewLayoutData.cs
- ProxySimple.cs
- Polygon.cs
- AgileSafeNativeMemoryHandle.cs
- SapiRecoContext.cs
- JsonFormatReaderGenerator.cs
- ItemMap.cs
- TargetParameterCountException.cs
- ExternalCalls.cs
- KerberosTicketHashIdentifierClause.cs
- FastEncoderWindow.cs
- mactripleDES.cs
- DataListItem.cs
- SafeViewOfFileHandle.cs
- GridViewRowCollection.cs
- ApplicationId.cs
- AutoGeneratedFieldProperties.cs
- BoolExpr.cs
- MediaContextNotificationWindow.cs
- ConfigurationStrings.cs
- CommandSet.cs
- ResourceWriter.cs
- Timer.cs
- TransformerInfo.cs
- CacheRequest.cs
- WindowsListBox.cs
- DSASignatureFormatter.cs
- FixedStringLookup.cs
- TransportConfigurationTypeElementCollection.cs
- LongSumAggregationOperator.cs
- RectangleF.cs
- ContextInformation.cs
- CancelAsyncOperationRequest.cs