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
- DataGridViewCellErrorTextNeededEventArgs.cs
- TransformGroup.cs
- BoundField.cs
- AdornerPresentationContext.cs
- AssemblyInfo.cs
- EncoderFallback.cs
- Scanner.cs
- TreeBuilderBamlTranslator.cs
- SchemaTableColumn.cs
- ErrorHandler.cs
- TreeIterator.cs
- Byte.cs
- ObjectResult.cs
- ViewManager.cs
- OrderToken.cs
- WeakReadOnlyCollection.cs
- FocusManager.cs
- HttpResponse.cs
- DropDownList.cs
- ImmutableObjectAttribute.cs
- SqlCacheDependency.cs
- MeasurementDCInfo.cs
- Int64Converter.cs
- SiteMapDataSourceView.cs
- FixedSOMTextRun.cs
- JobStaple.cs
- HostElement.cs
- UnknownBitmapEncoder.cs
- StringComparer.cs
- EntityTypeEmitter.cs
- AnnotationAdorner.cs
- CreateUserWizardDesigner.cs
- ObjectComplexPropertyMapping.cs
- TCPClient.cs
- PointConverter.cs
- DataTableMapping.cs
- Padding.cs
- DeflateEmulationStream.cs
- EmptyElement.cs
- StringDictionaryCodeDomSerializer.cs
- XmlSchemaSimpleType.cs
- HTMLTextWriter.cs
- SecurityTokenReferenceStyle.cs
- TraceContextRecord.cs
- CodeExporter.cs
- CqlErrorHelper.cs
- Rights.cs
- GenericTextProperties.cs
- sqlcontext.cs
- ReadContentAsBinaryHelper.cs
- DispatchChannelSink.cs
- RotateTransform3D.cs
- MatrixIndependentAnimationStorage.cs
- IssuedTokenParametersElement.cs
- NumericUpDownAcceleration.cs
- IconBitmapDecoder.cs
- DataViewManager.cs
- PolicyException.cs
- ShaperBuffers.cs
- RegexParser.cs
- FontSizeConverter.cs
- DSASignatureFormatter.cs
- XmlChildEnumerator.cs
- CodeFieldReferenceExpression.cs
- ToolStripPanel.cs
- EmptyEnumerable.cs
- AssociationSetEnd.cs
- Screen.cs
- FusionWrap.cs
- AssemblyBuilder.cs
- SimpleHandlerFactory.cs
- WebBaseEventKeyComparer.cs
- PeerApplication.cs
- SingleAnimation.cs
- CodeTryCatchFinallyStatement.cs
- ObjectItemCachedAssemblyLoader.cs
- WindowsRichEdit.cs
- XmlTextReader.cs
- SubstitutionResponseElement.cs
- EventToken.cs
- XmlnsDictionary.cs
- SplayTreeNode.cs
- HotSpotCollection.cs
- HttpModulesSection.cs
- URLMembershipCondition.cs
- TextRunTypographyProperties.cs
- SHA512Managed.cs
- ControlTemplate.cs
- WindowsImpersonationContext.cs
- SystemTcpStatistics.cs
- WebPartConnectionsConnectVerb.cs
- TextDecoration.cs
- SingleAnimationUsingKeyFrames.cs
- BuildProviderCollection.cs
- ReadOnlyDataSourceView.cs
- RegexNode.cs
- XmlSchemaCollection.cs
- SqlGenericUtil.cs
- ActivityUtilities.cs
- LifetimeServices.cs