Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- webbrowsersite.cs
- newitemfactory.cs
- NameNode.cs
- ProfileProvider.cs
- XmlValueConverter.cs
- GrammarBuilderPhrase.cs
- ArrangedElement.cs
- CatalogPart.cs
- ApplicationException.cs
- _ProxyRegBlob.cs
- SqlUDTStorage.cs
- UInt32.cs
- SimpleWebHandlerParser.cs
- DataBoundControl.cs
- DispatcherFrame.cs
- ServiceDescriptionSerializer.cs
- SimpleType.cs
- CodeTypeConstructor.cs
- ScrollChrome.cs
- ReferenceList.cs
- CompilerErrorCollection.cs
- AspNetPartialTrustHelpers.cs
- RegexCharClass.cs
- MultiTouchSystemGestureLogic.cs
- MLangCodePageEncoding.cs
- PageVisual.cs
- NameNode.cs
- ThemeConfigurationDialog.cs
- ResXResourceSet.cs
- ScriptBehaviorDescriptor.cs
- ParenthesizePropertyNameAttribute.cs
- FileUtil.cs
- ProviderCollection.cs
- XmlMtomReader.cs
- TargetParameterCountException.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- SourceFileBuildProvider.cs
- TemplateControlParser.cs
- XamlBuildTaskServices.cs
- HighlightComponent.cs
- EmptyStringExpandableObjectConverter.cs
- ScaleTransform.cs
- ExecutionPropertyManager.cs
- XmlObjectSerializer.cs
- InteropAutomationProvider.cs
- ControlParameter.cs
- MimeParameters.cs
- DataBoundControlAdapter.cs
- NumericUpDownAcceleration.cs
- ApplicationProxyInternal.cs
- DesignerActionListCollection.cs
- EntityDesignerBuildProvider.cs
- BinaryNode.cs
- InternalsVisibleToAttribute.cs
- EntityDataSourceContainerNameConverter.cs
- AvtEvent.cs
- XmlSortKeyAccumulator.cs
- ActivityCodeDomSerializer.cs
- IPPacketInformation.cs
- SmtpAuthenticationManager.cs
- ByteArrayHelperWithString.cs
- LocatorPartList.cs
- EditorAttribute.cs
- PropertyFilterAttribute.cs
- Int32.cs
- UIHelper.cs
- GetPageCompletedEventArgs.cs
- GroupLabel.cs
- UInt16Converter.cs
- ExcCanonicalXml.cs
- FtpWebRequest.cs
- ControlType.cs
- HostingEnvironmentWrapper.cs
- WebServiceParameterData.cs
- MetadataCache.cs
- StringDictionary.cs
- FormViewDeleteEventArgs.cs
- CommonRemoteMemoryBlock.cs
- BatchWriter.cs
- PersonalizationAdministration.cs
- InternalBufferOverflowException.cs
- SmtpReplyReader.cs
- SiteMap.cs
- SocketException.cs
- Light.cs
- GACMembershipCondition.cs
- RIPEMD160.cs
- TextMessageEncoder.cs
- SymmetricAlgorithm.cs
- RegexTree.cs
- EntityDataSourceWrapper.cs
- StorageMappingItemLoader.cs
- CacheMemory.cs
- SessionState.cs
- CatalogPartCollection.cs
- ScrollableControl.cs
- DataColumnChangeEvent.cs
- FormsAuthentication.cs
- WeakReferenceEnumerator.cs
- WebPartDescription.cs