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
- ListViewGroupCollectionEditor.cs
- ObjectListDesigner.cs
- TraceListeners.cs
- XmlDocument.cs
- NativeMethodsCLR.cs
- XmlUtf8RawTextWriter.cs
- PenThreadWorker.cs
- RepeatBehaviorConverter.cs
- Claim.cs
- PrincipalPermission.cs
- Trigger.cs
- CompositeTypefaceMetrics.cs
- EUCJPEncoding.cs
- SpecialNameAttribute.cs
- SafeWaitHandle.cs
- ELinqQueryState.cs
- ReachPrintTicketSerializerAsync.cs
- XmlSchemaGroup.cs
- Collection.cs
- SqlRowUpdatingEvent.cs
- TrackBarDesigner.cs
- ColorComboBox.cs
- SqlGenericUtil.cs
- ObjectMemberMapping.cs
- GeneratedContractType.cs
- DispatcherOperation.cs
- ServiceDescription.cs
- DrawListViewColumnHeaderEventArgs.cs
- PixelFormatConverter.cs
- XmlSchemaSimpleTypeRestriction.cs
- HandoffBehavior.cs
- RSAOAEPKeyExchangeFormatter.cs
- SafeBitVector32.cs
- TabletDeviceInfo.cs
- SecurityAlgorithmSuiteConverter.cs
- ForwardPositionQuery.cs
- DataSetMappper.cs
- GridItemPatternIdentifiers.cs
- AnimationClock.cs
- Math.cs
- FormViewUpdatedEventArgs.cs
- InputMethodStateTypeInfo.cs
- StylusSystemGestureEventArgs.cs
- ProgressBarHighlightConverter.cs
- LabelAutomationPeer.cs
- ThemeDirectoryCompiler.cs
- UpdateTracker.cs
- QueryResponse.cs
- UITypeEditor.cs
- WebHttpBinding.cs
- TdsParserStateObject.cs
- ImageDrawing.cs
- LocalizedNameDescriptionPair.cs
- LinqDataSourceStatusEventArgs.cs
- HyperlinkAutomationPeer.cs
- DeleteStoreRequest.cs
- FormsIdentity.cs
- RoleService.cs
- StylusPointProperties.cs
- ActivityTypeResolver.xaml.cs
- NamedPipeChannelFactory.cs
- DbMetaDataCollectionNames.cs
- ISCIIEncoding.cs
- OuterGlowBitmapEffect.cs
- ResolveMatchesMessage11.cs
- QualifierSet.cs
- CodeTypeOfExpression.cs
- InternalException.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- SeverityFilter.cs
- MimeTypeMapper.cs
- IOThreadScheduler.cs
- AnalyzedTree.cs
- SharedStatics.cs
- ViewEventArgs.cs
- CodeParameterDeclarationExpression.cs
- XmlDocumentFragment.cs
- ServiceModelSecurityTokenTypes.cs
- DbParameterCollection.cs
- ColumnMap.cs
- MaterialGroup.cs
- ButtonColumn.cs
- PropertyManager.cs
- SolidColorBrush.cs
- PopupRoot.cs
- TraceContext.cs
- OrderedHashRepartitionEnumerator.cs
- AutomationElementIdentifiers.cs
- AppSettingsExpressionBuilder.cs
- PeerChannelListener.cs
- Substitution.cs
- MetadataCache.cs
- ToolStripItem.cs
- NameObjectCollectionBase.cs
- JsonByteArrayDataContract.cs
- AutoScrollHelper.cs
- KeyboardEventArgs.cs
- DateTimeConstantAttribute.cs
- MailAddressCollection.cs
- IsolatedStorage.cs