Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // // // 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
- ScriptReference.cs
- SoapUnknownHeader.cs
- MarshalDirectiveException.cs
- TreeViewImageKeyConverter.cs
- PeerCollaboration.cs
- UInt32Storage.cs
- Sequence.cs
- DropShadowBitmapEffect.cs
- EditModeSwitchButton.cs
- InstancePersistenceCommand.cs
- TextTreeUndo.cs
- Message.cs
- DependencyPropertyKind.cs
- BitmapMetadataBlob.cs
- DesignerSelectionListAdapter.cs
- ManagedIStream.cs
- HGlobalSafeHandle.cs
- ConnectionAcceptor.cs
- GenerateHelper.cs
- TreeView.cs
- XmlSchema.cs
- Debug.cs
- PageAdapter.cs
- AtlasWeb.Designer.cs
- KnownColorTable.cs
- Baml6Assembly.cs
- CommandHelpers.cs
- MouseActionConverter.cs
- QilInvoke.cs
- IisTraceWebEventProvider.cs
- IndicFontClient.cs
- RenderCapability.cs
- ContainerAction.cs
- ExpressionBinding.cs
- CatalogPartCollection.cs
- TextContainerHelper.cs
- ObjectDataSourceStatusEventArgs.cs
- XmlSerializerNamespaces.cs
- MenuBase.cs
- ContentPlaceHolder.cs
- _Win32.cs
- PathNode.cs
- FixUpCollection.cs
- RootBuilder.cs
- DbQueryCommandTree.cs
- Label.cs
- AutomationIdentifierGuids.cs
- SchemaMapping.cs
- NonParentingControl.cs
- MtomMessageEncodingElement.cs
- ConstraintCollection.cs
- XmlElementAttributes.cs
- UrlPath.cs
- Memoizer.cs
- DataError.cs
- StretchValidation.cs
- ActiveXContainer.cs
- Executor.cs
- MenuCommand.cs
- SQLBytesStorage.cs
- NamespaceInfo.cs
- SizeF.cs
- WebCategoryAttribute.cs
- ExternalDataExchangeClient.cs
- QueryOptionExpression.cs
- PasswordPropertyTextAttribute.cs
- RawUIStateInputReport.cs
- ThumbAutomationPeer.cs
- UnSafeCharBuffer.cs
- SessionIDManager.cs
- SimpleMailWebEventProvider.cs
- BStrWrapper.cs
- SqlAliaser.cs
- NameValueConfigurationCollection.cs
- DefinitionBase.cs
- ParameterRefs.cs
- CachedBitmap.cs
- ListBoxAutomationPeer.cs
- RequestReplyCorrelator.cs
- RotateTransform3D.cs
- TemplateControlParser.cs
- XmlReaderSettings.cs
- AnimationException.cs
- WebReferenceOptions.cs
- SafeArrayTypeMismatchException.cs
- OdbcUtils.cs
- TextChange.cs
- HtmlInputControl.cs
- XamlFigureLengthSerializer.cs
- Win32.cs
- SqlGenerator.cs
- WindowsGraphicsCacheManager.cs
- WorkflowMarkupSerializationManager.cs
- WindowsSolidBrush.cs
- LinkedResource.cs
- HyperLinkDesigner.cs
- EFAssociationProvider.cs
- ServiceProviders.cs
- RegistrationServices.cs
- SharedDp.cs