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
- FilterFactory.cs
- EnumDataContract.cs
- OdbcConnectionHandle.cs
- EditBehavior.cs
- LingerOption.cs
- CopyOfAction.cs
- HttpCapabilitiesBase.cs
- ButtonDesigner.cs
- TreeView.cs
- KeyValuePair.cs
- TypeExtensions.cs
- ExceptionUtil.cs
- ConfigurationPropertyAttribute.cs
- HttpApplication.cs
- DataGridRelationshipRow.cs
- TransactionProxy.cs
- XmlSchemaSimpleContent.cs
- TimerExtension.cs
- Window.cs
- SqlInternalConnection.cs
- MembershipValidatePasswordEventArgs.cs
- ContractInstanceProvider.cs
- ReadContentAsBinaryHelper.cs
- StackSpiller.Temps.cs
- TileBrush.cs
- LogEntrySerializer.cs
- TextElementEnumerator.cs
- TiffBitmapEncoder.cs
- AnimationClock.cs
- GenericAuthenticationEventArgs.cs
- CollectionChangeEventArgs.cs
- Filter.cs
- DbProviderConfigurationHandler.cs
- WinFormsSpinner.cs
- DateTimeFormat.cs
- CharacterBufferReference.cs
- TreeNode.cs
- DataGridTextBoxColumn.cs
- ReadOnlyDataSourceView.cs
- LinearGradientBrush.cs
- SqlUserDefinedAggregateAttribute.cs
- BindingUtils.cs
- List.cs
- Rotation3D.cs
- GifBitmapDecoder.cs
- DataGridViewRowCancelEventArgs.cs
- DbProviderFactories.cs
- EffectiveValueEntry.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ChannelEndpointElement.cs
- XmlHierarchicalDataSourceView.cs
- CalendarTable.cs
- AlphabeticalEnumConverter.cs
- Tile.cs
- DragEvent.cs
- TextBoxAutoCompleteSourceConverter.cs
- QueryStringParameter.cs
- SqlCacheDependencyDatabaseCollection.cs
- securitycriticaldataformultiplegetandset.cs
- MethodToken.cs
- Registry.cs
- CollectionBuilder.cs
- DataGridViewTopRowAccessibleObject.cs
- filewebresponse.cs
- XmlDocumentSerializer.cs
- SignedXml.cs
- PathBox.cs
- SeverityFilter.cs
- QueryContinueDragEvent.cs
- Section.cs
- NumberSubstitution.cs
- PlanCompilerUtil.cs
- RepeatButton.cs
- NamespaceCollection.cs
- TogglePatternIdentifiers.cs
- PnrpPermission.cs
- PropertyChangingEventArgs.cs
- StrongNameKeyPair.cs
- StylusPointPropertyId.cs
- CompModSwitches.cs
- BrowserCapabilitiesFactory.cs
- LicFileLicenseProvider.cs
- WebPartConnectionsCancelVerb.cs
- BaseDataList.cs
- BindingExpression.cs
- WebPartPersonalization.cs
- DynamicValidator.cs
- PropertyIDSet.cs
- Pick.cs
- ChildChangedEventArgs.cs
- XmlSchemaSubstitutionGroup.cs
- Span.cs
- Transactions.cs
- TrueReadOnlyCollection.cs
- AttachedProperty.cs
- CannotUnloadAppDomainException.cs
- xmlglyphRunInfo.cs
- _NTAuthentication.cs
- unsafenativemethodstextservices.cs
- ConstraintEnumerator.cs