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
- NetworkAddressChange.cs
- HtmlElement.cs
- DrawingBrush.cs
- CodeNamespace.cs
- SafeThemeHandle.cs
- TreeViewItem.cs
- ParsedAttributeCollection.cs
- ObjectDataSourceStatusEventArgs.cs
- ValidationRuleCollection.cs
- Debug.cs
- ClientSponsor.cs
- GB18030Encoding.cs
- IPGlobalProperties.cs
- Vector3D.cs
- StylusPointProperties.cs
- SqlProvider.cs
- SqlFunctionAttribute.cs
- WebPartCloseVerb.cs
- HelpKeywordAttribute.cs
- XmlValidatingReaderImpl.cs
- ListViewItem.cs
- SwitchElementsCollection.cs
- EventMappingSettings.cs
- SystemParameters.cs
- _AutoWebProxyScriptWrapper.cs
- ReliableChannelListener.cs
- Point.cs
- SerializationInfo.cs
- InvokeWebServiceDesigner.cs
- Funcletizer.cs
- IdentitySection.cs
- OptimalBreakSession.cs
- FrameworkElementFactory.cs
- ConsoleTraceListener.cs
- Font.cs
- NamespaceEmitter.cs
- ResourceDictionary.cs
- LineBreak.cs
- EditorOptionAttribute.cs
- XPathArrayIterator.cs
- VarRefManager.cs
- OracleBoolean.cs
- DataBoundControlHelper.cs
- ComponentSerializationService.cs
- DataControlField.cs
- Pair.cs
- SecurityUtils.cs
- BitmapEffectInput.cs
- Math.cs
- TraceProvider.cs
- PageContent.cs
- NotificationContext.cs
- TableRow.cs
- SpecialFolderEnumConverter.cs
- FormatterServices.cs
- NativeStructs.cs
- BuildProvider.cs
- StringValueSerializer.cs
- BindingContext.cs
- RegexWorker.cs
- ProcessModule.cs
- CultureSpecificCharacterBufferRange.cs
- GenericUriParser.cs
- HtmlContainerControl.cs
- RegexRunner.cs
- AstNode.cs
- CustomLineCap.cs
- DataSourceHelper.cs
- ColumnClickEvent.cs
- Int64Converter.cs
- TraceHelpers.cs
- HashHelper.cs
- NetworkInterface.cs
- FormsAuthenticationUserCollection.cs
- SystemKeyConverter.cs
- RoutingEndpointTrait.cs
- sqlpipe.cs
- DataMemberFieldConverter.cs
- XmlAttributeProperties.cs
- AnnotationService.cs
- LowerCaseStringConverter.cs
- ControlValuePropertyAttribute.cs
- SecurityKeyIdentifierClause.cs
- HtmlEncodedRawTextWriter.cs
- BoundsDrawingContextWalker.cs
- CatalogZone.cs
- HtmlInputFile.cs
- streamingZipPartStream.cs
- TreeChangeInfo.cs
- CreateUserWizardDesigner.cs
- NullRuntimeConfig.cs
- Section.cs
- FindProgressChangedEventArgs.cs
- SystemUdpStatistics.cs
- CompareInfo.cs
- ConfigDefinitionUpdates.cs
- MediaPlayerState.cs
- Sequence.cs
- StyleReferenceConverter.cs
- ImageFormatConverter.cs