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
- LabelLiteral.cs
- WebPartUserCapability.cs
- EntityViewGenerator.cs
- FormatException.cs
- DefaultPropertiesToSend.cs
- UrlUtility.cs
- SqlDataReaderSmi.cs
- __ComObject.cs
- WebFormDesignerActionService.cs
- WebPartDeleteVerb.cs
- Span.cs
- ColumnBinding.cs
- QilPatternFactory.cs
- Slider.cs
- FileDialog.cs
- Compress.cs
- HostExecutionContextManager.cs
- WorkflowOwnershipException.cs
- BackStopAuthenticationModule.cs
- BamlRecords.cs
- ValidationEventArgs.cs
- KnownBoxes.cs
- ProviderCollection.cs
- DataException.cs
- AutoResizedEvent.cs
- HtmlElementCollection.cs
- DownloadProgressEventArgs.cs
- AmbientLight.cs
- ComplusEndpointConfigContainer.cs
- ByteStack.cs
- SmtpFailedRecipientsException.cs
- FixedPageStructure.cs
- SQLInt16.cs
- CSharpCodeProvider.cs
- DiscoveryClientProtocol.cs
- IdentityValidationException.cs
- ZipIOCentralDirectoryFileHeader.cs
- DateTimeConverter.cs
- PropVariant.cs
- ListView.cs
- BitSet.cs
- Scene3D.cs
- ReachPrintTicketSerializerAsync.cs
- SourceFileInfo.cs
- RMPublishingDialog.cs
- XmlWrappingWriter.cs
- SmiMetaData.cs
- SingleAnimationUsingKeyFrames.cs
- PageSetupDialog.cs
- ProxyFragment.cs
- BitmapCodecInfoInternal.cs
- DocumentViewerConstants.cs
- CredentialCache.cs
- BitmapEffectCollection.cs
- NavigationCommands.cs
- BrowserDefinition.cs
- SecurityException.cs
- TemplateAction.cs
- SerializerDescriptor.cs
- BooleanKeyFrameCollection.cs
- TypeInformation.cs
- FlowNode.cs
- GeneralTransform3DTo2DTo3D.cs
- DocumentPage.cs
- CodeTypeParameter.cs
- RemotingConfiguration.cs
- ListControl.cs
- CollectionChange.cs
- TableRowGroup.cs
- ImageDrawing.cs
- MenuScrollingVisibilityConverter.cs
- ColorContextHelper.cs
- ClientData.cs
- SchemaCreator.cs
- UnsafeNativeMethods.cs
- ProfilePropertySettings.cs
- IApplicationTrustManager.cs
- TextRange.cs
- EntityProviderFactory.cs
- TypeForwardedToAttribute.cs
- ByteAnimation.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- LifetimeServices.cs
- RequestCachePolicyConverter.cs
- UnsafeNativeMethods.cs
- HostSecurityManager.cs
- RoutedUICommand.cs
- Deflater.cs
- PathFigure.cs
- XmlSchemaAttributeGroup.cs
- DispatchChannelSink.cs
- NumericUpDownAccelerationCollection.cs
- TokenBasedSet.cs
- TextContainerHelper.cs
- EdgeModeValidation.cs
- DataGridViewDataConnection.cs
- ExpressionBuilder.cs
- HttpResponse.cs
- TextWriterTraceListener.cs
- BaseTemplateCodeDomTreeGenerator.cs