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
- ChtmlTextWriter.cs
- ToolStripItemImageRenderEventArgs.cs
- remotingproxy.cs
- Hyperlink.cs
- ObjectDataSourceEventArgs.cs
- BevelBitmapEffect.cs
- PackageRelationshipSelector.cs
- DataView.cs
- ProgressBar.cs
- WindowsFormsSectionHandler.cs
- ButtonRenderer.cs
- SqlDataSourceCommandEventArgs.cs
- InnerItemCollectionView.cs
- CalendarDateRangeChangingEventArgs.cs
- GroupBoxRenderer.cs
- UnsafeNativeMethods.cs
- PathSegmentCollection.cs
- ConditionChanges.cs
- DeviceFiltersSection.cs
- ToolStripItemClickedEventArgs.cs
- ITextView.cs
- SqlDataSourceConfigureSortForm.cs
- DynamicObjectAccessor.cs
- AddInController.cs
- oledbconnectionstring.cs
- TableParagraph.cs
- ClientRoleProvider.cs
- SimpleFieldTemplateFactory.cs
- BrowserDefinition.cs
- AttachedAnnotationChangedEventArgs.cs
- IssuanceTokenProviderState.cs
- MD5.cs
- LayoutTableCell.cs
- _HelperAsyncResults.cs
- Ticks.cs
- OracleFactory.cs
- DataBoundControl.cs
- StateMachineSubscription.cs
- IProvider.cs
- ArrayItemValue.cs
- GZipStream.cs
- HighContrastHelper.cs
- hebrewshape.cs
- UITypeEditor.cs
- ValidateNames.cs
- Expression.cs
- StorageEndPropertyMapping.cs
- FontClient.cs
- DecimalConverter.cs
- MediaEntryAttribute.cs
- AutomationPatternInfo.cs
- ReflectionUtil.cs
- TranslateTransform3D.cs
- SecureEnvironment.cs
- DataRecordInternal.cs
- LogStream.cs
- ForceCopyBuildProvider.cs
- HostSecurityManager.cs
- StylusSystemGestureEventArgs.cs
- DrawTreeNodeEventArgs.cs
- SingleAnimation.cs
- WindowPattern.cs
- StructuredProperty.cs
- CombinedTcpChannel.cs
- AttributeCollection.cs
- Style.cs
- HGlobalSafeHandle.cs
- ProgressChangedEventArgs.cs
- HTTPNotFoundHandler.cs
- MetabaseSettings.cs
- ClientData.cs
- UpDownEvent.cs
- Overlapped.cs
- TextRunCacheImp.cs
- SplineKeyFrames.cs
- PtsPage.cs
- Compiler.cs
- _HeaderInfo.cs
- ArgumentNullException.cs
- DataTransferEventArgs.cs
- EntityKey.cs
- ControlCollection.cs
- ToolTipService.cs
- RoutedPropertyChangedEventArgs.cs
- OleDbConnectionInternal.cs
- EntityDataSourceView.cs
- invalidudtexception.cs
- PreloadedPackages.cs
- GenericParameterDataContract.cs
- TdsParameterSetter.cs
- ProcessRequestArgs.cs
- Path.cs
- CodeDirectionExpression.cs
- SchemaImporterExtension.cs
- FixedHighlight.cs
- MsmqAppDomainProtocolHandler.cs
- QuaternionValueSerializer.cs
- SqlDependencyUtils.cs
- ExpanderAutomationPeer.cs
- PositiveTimeSpanValidator.cs