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
- HttpResponseWrapper.cs
- DataColumn.cs
- ClientTarget.cs
- TypeElement.cs
- TextTrailingWordEllipsis.cs
- SelectionProcessor.cs
- DelegatingConfigHost.cs
- WmlPhoneCallAdapter.cs
- processwaithandle.cs
- BinHexDecoder.cs
- DateTimeSerializationSection.cs
- TransformCollection.cs
- SiteMapNode.cs
- PersistenceProviderBehavior.cs
- BindingElementExtensionElement.cs
- BitStream.cs
- DataGridViewCellEventArgs.cs
- SwitchAttribute.cs
- AutomationFocusChangedEventArgs.cs
- WindowShowOrOpenTracker.cs
- _ConnectOverlappedAsyncResult.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- PerfCounterSection.cs
- XmlSchemaExternal.cs
- HostedElements.cs
- TraceHandler.cs
- WindowsScroll.cs
- BamlRecordWriter.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- ComplexTypeEmitter.cs
- XamlPoint3DCollectionSerializer.cs
- Lazy.cs
- StylusButton.cs
- ChannelDispatcherBase.cs
- XPathNavigatorReader.cs
- UnescapedXmlDiagnosticData.cs
- UserThread.cs
- elementinformation.cs
- TextModifier.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- UnsafeNativeMethods.cs
- Label.cs
- DatasetMethodGenerator.cs
- DialogResultConverter.cs
- PrintingPermissionAttribute.cs
- CannotUnloadAppDomainException.cs
- CaseInsensitiveHashCodeProvider.cs
- CommentAction.cs
- CounterCreationDataCollection.cs
- storepermissionattribute.cs
- InstanceView.cs
- NameGenerator.cs
- VariableQuery.cs
- EntityClientCacheEntry.cs
- Expressions.cs
- HtmlShim.cs
- GenericWebPart.cs
- XpsTokenContext.cs
- DbUpdateCommandTree.cs
- TextBox.cs
- WorkflowWebService.cs
- MouseButtonEventArgs.cs
- TextSegment.cs
- TextSchema.cs
- DocComment.cs
- TextLineResult.cs
- ImportStoreException.cs
- AppDomain.cs
- SerializationAttributes.cs
- ConditionalAttribute.cs
- FrugalMap.cs
- QuarticEase.cs
- CardSpaceSelector.cs
- SectionInput.cs
- SqlClientMetaDataCollectionNames.cs
- VirtualPathUtility.cs
- Point3D.cs
- XmlStringTable.cs
- IApplicationTrustManager.cs
- GlyphCollection.cs
- CompilationSection.cs
- ConfigurationElement.cs
- CodeArgumentReferenceExpression.cs
- ReplacementText.cs
- entityreference_tresulttype.cs
- ProviderSettings.cs
- ColorInterpolationModeValidation.cs
- EventProperty.cs
- WindowShowOrOpenTracker.cs
- Base64Encoding.cs
- XmlWrappingReader.cs
- DataKeyArray.cs
- ProfileGroupSettings.cs
- VectorAnimation.cs
- MarkupObject.cs
- Formatter.cs
- Matrix3DValueSerializer.cs
- Slider.cs
- DateTimeParse.cs
- ExtenderProvidedPropertyAttribute.cs