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
- FormViewPageEventArgs.cs
- OutputCacheProfileCollection.cs
- BamlBinaryWriter.cs
- PictureBox.cs
- LinkArea.cs
- CollaborationHelperFunctions.cs
- EncodingInfo.cs
- BufferedGraphics.cs
- ProtectedConfigurationSection.cs
- Triplet.cs
- EditorPartCollection.cs
- WCFModelStrings.Designer.cs
- Classification.cs
- WebServicesDescriptionAttribute.cs
- ToolStrip.cs
- EntityKeyElement.cs
- Latin1Encoding.cs
- BidPrivateBase.cs
- XmlSignificantWhitespace.cs
- documentsequencetextcontainer.cs
- DataRecordInternal.cs
- TypedReference.cs
- OdbcConnectionFactory.cs
- LinqToSqlWrapper.cs
- TraceHandlerErrorFormatter.cs
- StructuralComparisons.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- HGlobalSafeHandle.cs
- SQLDecimalStorage.cs
- LinearGradientBrush.cs
- ErrorEventArgs.cs
- GlyphInfoList.cs
- SqlOuterApplyReducer.cs
- MenuAdapter.cs
- OpenTypeCommon.cs
- QilPatternVisitor.cs
- XPathNodeIterator.cs
- HttpTransportSecurity.cs
- Viewport2DVisual3D.cs
- RequestCache.cs
- DecimalFormatter.cs
- UnsafeNativeMethods.cs
- WebServiceClientProxyGenerator.cs
- ShaderEffect.cs
- PropertyFilterAttribute.cs
- HttpStreamMessageEncoderFactory.cs
- XmlNamespaceDeclarationsAttribute.cs
- BitmapFrameDecode.cs
- ConfigXmlComment.cs
- GridViewSortEventArgs.cs
- Validator.cs
- GridViewEditEventArgs.cs
- BindingSourceDesigner.cs
- XmlAnyElementAttributes.cs
- FileCodeGroup.cs
- BitmapMetadataEnumerator.cs
- DBConnectionString.cs
- InputProcessorProfilesLoader.cs
- TemplateBaseAction.cs
- CodeGenerator.cs
- ReadOnlyHierarchicalDataSource.cs
- RuntimeWrappedException.cs
- SiteMapNodeCollection.cs
- WebBrowserHelper.cs
- ValidatingCollection.cs
- UnionCqlBlock.cs
- DesignConnection.cs
- webeventbuffer.cs
- dbdatarecord.cs
- ApplicationBuildProvider.cs
- DataGridItemCollection.cs
- RsaSecurityTokenAuthenticator.cs
- ProviderBase.cs
- FieldToken.cs
- EventArgs.cs
- AssociatedControlConverter.cs
- DeviceFilterDictionary.cs
- RecognizedWordUnit.cs
- PropertiesTab.cs
- TrustLevel.cs
- EventLogEntry.cs
- UniqueIdentifierService.cs
- TextBox.cs
- OracleNumber.cs
- FlowLayout.cs
- ObjectStateEntryDbDataRecord.cs
- DebugController.cs
- NamedElement.cs
- CodeTypeReferenceCollection.cs
- Pair.cs
- Rect3D.cs
- SqlCrossApplyToCrossJoin.cs
- SyndicationDeserializer.cs
- ObjectListCommandCollection.cs
- LayoutTable.cs
- ImageFormat.cs
- Privilege.cs
- Vector3D.cs
- Assert.cs
- TcpChannelListener.cs