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
- bindurihelper.cs
- CodeIdentifiers.cs
- Serializer.cs
- X509ChainPolicy.cs
- SystemFonts.cs
- ResizingMessageFilter.cs
- XmlSchemaComplexType.cs
- GroupQuery.cs
- DispatchWrapper.cs
- PageRouteHandler.cs
- HtmlMeta.cs
- OrCondition.cs
- ContextDataSource.cs
- HideDisabledControlAdapter.cs
- TextElementCollectionHelper.cs
- Expressions.cs
- CheckedPointers.cs
- XhtmlBasicFormAdapter.cs
- SqlCacheDependencyDatabaseCollection.cs
- BinaryKeyIdentifierClause.cs
- DeclaredTypeElementCollection.cs
- MetadataItem_Static.cs
- FixedSOMSemanticBox.cs
- ISAPIApplicationHost.cs
- RadioButton.cs
- SubpageParaClient.cs
- UnsafeNativeMethods.cs
- BatchParser.cs
- CodeDomConfigurationHandler.cs
- WebPartConnectionsEventArgs.cs
- CatalogPartCollection.cs
- PriorityItem.cs
- LOSFormatter.cs
- RangeBaseAutomationPeer.cs
- CFStream.cs
- RadioButtonBaseAdapter.cs
- ListViewAutomationPeer.cs
- XpsPartBase.cs
- FileDialogCustomPlace.cs
- WebServicesSection.cs
- ActionMessageFilter.cs
- ConstantProjectedSlot.cs
- EdmError.cs
- TreeNodeBindingCollection.cs
- IItemProperties.cs
- Zone.cs
- _NegoStream.cs
- VectorCollection.cs
- StateBag.cs
- LogEntrySerializationException.cs
- PointLight.cs
- StrokeCollection2.cs
- InternalConfigRoot.cs
- SettingsPropertyValueCollection.cs
- CaseStatementSlot.cs
- NativeMethods.cs
- TextBoxBase.cs
- figurelength.cs
- LinkedResource.cs
- RedistVersionInfo.cs
- MyContact.cs
- CodeDefaultValueExpression.cs
- SqlProviderUtilities.cs
- TreeNodeMouseHoverEvent.cs
- Int64Storage.cs
- ImageList.cs
- FormClosedEvent.cs
- LineServices.cs
- InplaceBitmapMetadataWriter.cs
- GridView.cs
- DataGridViewRowCollection.cs
- CheckBoxField.cs
- ReflectionUtil.cs
- SqlCacheDependencyDatabaseCollection.cs
- ComContractElement.cs
- IncrementalReadDecoders.cs
- SingleObjectCollection.cs
- HttpResponse.cs
- CodeNamespaceCollection.cs
- UpDownEvent.cs
- ComponentConverter.cs
- PermissionAttributes.cs
- TaskResultSetter.cs
- InkCanvasSelectionAdorner.cs
- IpcServerChannel.cs
- DataGridViewCellStateChangedEventArgs.cs
- SHA1CryptoServiceProvider.cs
- ClassValidator.cs
- MulticastOption.cs
- PixelShader.cs
- httpapplicationstate.cs
- XmlAttributeAttribute.cs
- StandardCommands.cs
- KnownTypes.cs
- SubMenuStyle.cs
- BaseTemplateParser.cs
- ProtocolsConfigurationHandler.cs
- NominalTypeEliminator.cs
- ThrowOnMultipleAssignment.cs
- FacetChecker.cs