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
- ConnectionOrientedTransportBindingElement.cs
- NavigationPropertyAccessor.cs
- GraphicsPathIterator.cs
- FilterRepeater.cs
- XmlSchemas.cs
- RegexRunner.cs
- SuspendDesigner.cs
- SchemaMerger.cs
- COM2ExtendedTypeConverter.cs
- NumberFunctions.cs
- Button.cs
- ApplicationSecurityInfo.cs
- FieldNameLookup.cs
- SpStreamWrapper.cs
- GridView.cs
- DictionaryKeyPropertyAttribute.cs
- HyperLinkColumn.cs
- WebBrowserContainer.cs
- UInt64Converter.cs
- DataStreamFromComStream.cs
- InstanceNotReadyException.cs
- CodeRegionDirective.cs
- DomainUpDown.cs
- HtmlGenericControl.cs
- BrowserDefinitionCollection.cs
- AsyncWaitHandle.cs
- SignedPkcs7.cs
- ToolZoneDesigner.cs
- DbInsertCommandTree.cs
- RemoveStoryboard.cs
- CompositeCollectionView.cs
- cookie.cs
- DeclarationUpdate.cs
- CodeSnippetStatement.cs
- TransformConverter.cs
- AdornerLayer.cs
- DynamicExpression.cs
- BlurBitmapEffect.cs
- TimeoutHelper.cs
- CorrelationInitializer.cs
- TriggerBase.cs
- SmtpSection.cs
- HttpResponseInternalBase.cs
- RemoteHelper.cs
- ToolStripDropDownItem.cs
- AsyncOperation.cs
- ScrollBarRenderer.cs
- SpotLight.cs
- MarginsConverter.cs
- COM2EnumConverter.cs
- WmlValidationSummaryAdapter.cs
- PolyQuadraticBezierSegment.cs
- GeneralTransform3DGroup.cs
- VersionValidator.cs
- Utility.cs
- KeyedHashAlgorithm.cs
- DataGridViewSelectedColumnCollection.cs
- Container.cs
- DataGridItem.cs
- SafePEFileHandle.cs
- RulePatternOps.cs
- RowUpdatedEventArgs.cs
- UnitySerializationHolder.cs
- BitmapEffectDrawingContent.cs
- ExpandoObject.cs
- documentsequencetextcontainer.cs
- fixedPageContentExtractor.cs
- SaveLedgerEntryRequest.cs
- UpdateCommand.cs
- TextModifierScope.cs
- Path.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ConstraintEnumerator.cs
- SafeNativeMethods.cs
- ThicknessAnimation.cs
- GenericAuthenticationEventArgs.cs
- IisTraceWebEventProvider.cs
- ContractUtils.cs
- AttachedProperty.cs
- ResumeStoryboard.cs
- LoginViewDesigner.cs
- DesignerPerfEventProvider.cs
- DiscoveryOperationContextExtension.cs
- TimelineCollection.cs
- InvokeMethod.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- SmtpCommands.cs
- ToolboxComponentsCreatingEventArgs.cs
- RowParagraph.cs
- WebFormDesignerActionService.cs
- WindowsSecurityTokenAuthenticator.cs
- TrackBar.cs
- PointLightBase.cs
- JavaScriptObjectDeserializer.cs
- X509CertificateCollection.cs
- QuadraticBezierSegment.cs
- PathFigureCollection.cs
- ServerIdentity.cs
- CheckBoxStandardAdapter.cs
- CodeDesigner.cs