Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Data / DataTransferEventArgs.cs / 1305600 / DataTransferEventArgs.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: DataTransfer event arguments // // Specs: http://avalon/connecteddata/M5%20Specs/UIBinding.mht // //--------------------------------------------------------------------------- using System; namespace System.Windows.Data { ////// Arguments for DataTransfer events such as TargetUpdated or SourceUpdated. /// ////// public class DataTransferEventArgs : RoutedEventArgs { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- internal DataTransferEventArgs(DependencyObject targetObject, DependencyProperty dp) : base() { _targetObject = targetObject; _dp = dp; } //------------------------------------------------------ // // Public Properties // //----------------------------------------------------- ///The TargetUpdated event is raised whenever a value is transferred from the source to the target, /// (but only for bindings that have requested the event, by setting BindFlags.NotifyOnTargetUpdated).
///The SourceUpdated event is raised whenever a value is transferred from the target to the source, /// (but only for bindings that have requested the event, by setting BindFlags.NotifyOnSourceUpdated).
////// The target object of the binding that raised the event. /// public DependencyObject TargetObject { get { return _targetObject; } } ////// The target property of the binding that raised the event. /// public DependencyProperty Property { get { return _dp; } } //------------------------------------------------------ // // Protected Methods // //------------------------------------------------------ ////// The mechanism used to call the type-specific handler on the /// target. /// /// /// The generic handler to call in a type-specific way. /// /// /// The target to call the handler on. /// protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { EventHandlerhandler = (EventHandler ) genericHandler; handler(genericTarget, this); } //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ private DependencyObject _targetObject; private DependencyProperty _dp; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HtmlUtf8RawTextWriter.cs
- Delegate.cs
- SqlNodeAnnotations.cs
- DataGridViewElement.cs
- CfgArc.cs
- ClientFactory.cs
- HMACSHA256.cs
- InspectionWorker.cs
- TerminatorSinks.cs
- ExtentJoinTreeNode.cs
- Delegate.cs
- ProgramNode.cs
- CompiledQuery.cs
- Section.cs
- ProtocolViolationException.cs
- Form.cs
- CellPartitioner.cs
- TextParagraphView.cs
- SchemaTypeEmitter.cs
- EditCommandColumn.cs
- DataGridViewColumnHeaderCell.cs
- DBSchemaRow.cs
- RequestCachePolicy.cs
- Annotation.cs
- UpdateCommand.cs
- ValidationErrorEventArgs.cs
- UnmanagedMemoryStream.cs
- KeyedHashAlgorithm.cs
- HandlerBase.cs
- WebPartCollection.cs
- safelink.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- ImageFormatConverter.cs
- CalendarDataBindingHandler.cs
- ToolStripDropDownClosedEventArgs.cs
- MsmqDiagnostics.cs
- SmtpTransport.cs
- HttpResponse.cs
- DataListItem.cs
- Rotation3D.cs
- PrtCap_Public.cs
- Drawing.cs
- TraceLevelHelper.cs
- SchemaImporter.cs
- _StreamFramer.cs
- FixedLineResult.cs
- AspCompat.cs
- SizeLimitedCache.cs
- StreamGeometry.cs
- versioninfo.cs
- PaintEvent.cs
- COM2PropertyBuilderUITypeEditor.cs
- DBPropSet.cs
- UnknownBitmapEncoder.cs
- PathFigureCollection.cs
- WindowsTreeView.cs
- ExtentKey.cs
- TransactionFlowOption.cs
- OutputCacheSettings.cs
- ConstantCheck.cs
- WebPartEventArgs.cs
- FrameworkRichTextComposition.cs
- VarRefManager.cs
- SimpleMailWebEventProvider.cs
- TitleStyle.cs
- dbenumerator.cs
- BuilderInfo.cs
- RawUIStateInputReport.cs
- UnitySerializationHolder.cs
- FixUp.cs
- XmlArrayItemAttributes.cs
- RelatedEnd.cs
- ToolTipService.cs
- ListBox.cs
- DataPagerCommandEventArgs.cs
- ToggleButton.cs
- namescope.cs
- BitmapCacheBrush.cs
- PartManifestEntry.cs
- OdbcConnectionFactory.cs
- DataGridViewRowEventArgs.cs
- RemoteWebConfigurationHostStream.cs
- WSHttpBinding.cs
- HttpHandlerAction.cs
- TypeBuilder.cs
- Math.cs
- VBIdentifierName.cs
- CombinedGeometry.cs
- ServerValidateEventArgs.cs
- VisualStyleElement.cs
- IItemContainerGenerator.cs
- AppDomainUnloadedException.cs
- ReturnEventArgs.cs
- unsafeIndexingFilterStream.cs
- Part.cs
- CodeFieldReferenceExpression.cs
- Point3DCollectionConverter.cs
- Size3DValueSerializer.cs
- XPathAxisIterator.cs
- EntityReference.cs