Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Data / DataTransferEventArgs.cs / 1 / 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
- TransferRequestHandler.cs
- ExpressionHelper.cs
- CodePropertyReferenceExpression.cs
- AutomationTextAttribute.cs
- CustomSignedXml.cs
- CompositeDataBoundControl.cs
- XmlSchemaObjectCollection.cs
- HttpsTransportElement.cs
- XmlStreamStore.cs
- RouteItem.cs
- XPathDocument.cs
- TextServicesContext.cs
- DefaultConfirmation.cs
- PropertyGeneratedEventArgs.cs
- Panel.cs
- _ProxyRegBlob.cs
- PropertyGeneratedEventArgs.cs
- WorkflowInvoker.cs
- TemplateAction.cs
- DetailsView.cs
- PropertyPath.cs
- ElementInit.cs
- WebBrowser.cs
- SessionStateItemCollection.cs
- PackUriHelper.cs
- XmlElementCollection.cs
- AnnotationComponentChooser.cs
- DelayedRegex.cs
- RequestQueryParser.cs
- SystemResources.cs
- ToolStripItemCollection.cs
- TrackPoint.cs
- CorrelationManager.cs
- SharedStatics.cs
- SymbolMethod.cs
- HotSpot.cs
- SortedSetDebugView.cs
- SourceFileBuildProvider.cs
- HttpEncoderUtility.cs
- Ops.cs
- IndexOutOfRangeException.cs
- TypeConverterHelper.cs
- RangeValueProviderWrapper.cs
- smtppermission.cs
- GatewayDefinition.cs
- CodeEventReferenceExpression.cs
- XhtmlStyleClass.cs
- Debugger.cs
- SolidBrush.cs
- EventOpcode.cs
- NativeMethods.cs
- DataComponentNameHandler.cs
- ClientBuildManager.cs
- CheckBoxStandardAdapter.cs
- XmlSchemaSequence.cs
- SystemNetHelpers.cs
- IOThreadTimer.cs
- Stack.cs
- ObfuscationAttribute.cs
- ErrorHandler.cs
- ColumnClickEvent.cs
- MenuItemAutomationPeer.cs
- WhitespaceRuleReader.cs
- WmlMobileTextWriter.cs
- DataFieldEditor.cs
- PenThreadPool.cs
- WebBrowserUriTypeConverter.cs
- DataRowCollection.cs
- CollectionViewProxy.cs
- SecurityDescriptor.cs
- DispatcherSynchronizationContext.cs
- LayoutInformation.cs
- WindowManager.cs
- TableItemPatternIdentifiers.cs
- IconEditor.cs
- recordstatescratchpad.cs
- XmlNavigatorStack.cs
- comcontractssection.cs
- CodeTypeDeclarationCollection.cs
- ColumnCollection.cs
- ListenerElementsCollection.cs
- XmlReader.cs
- RemotingConfigParser.cs
- WorkflowRuntimeBehavior.cs
- HtmlImage.cs
- CompositeFontFamily.cs
- BitmapData.cs
- BreakSafeBase.cs
- ReceiveReply.cs
- OleDbSchemaGuid.cs
- PersonalizationState.cs
- DesignTimeParseData.cs
- BindingExpressionBase.cs
- FunctionCommandText.cs
- MultiPageTextView.cs
- EncoderReplacementFallback.cs
- XmlChildEnumerator.cs
- XmlFileEditor.cs
- EntityCollection.cs
- SchemaMapping.cs