Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Data / DataTransferEventArgs.cs / 1305600 / 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
- SQLBinary.cs
- DataGridViewCellFormattingEventArgs.cs
- QilXmlReader.cs
- SerializableAttribute.cs
- MobileListItemCollection.cs
- ResourceProviderFactory.cs
- XmlSequenceWriter.cs
- SymbolMethod.cs
- mda.cs
- AttachedAnnotationChangedEventArgs.cs
- XmlValidatingReader.cs
- HtmlContainerControl.cs
- Typography.cs
- DeleteWorkflowOwnerCommand.cs
- TextBox.cs
- ListSortDescriptionCollection.cs
- __ComObject.cs
- DataConnectionHelper.cs
- CompilerParameters.cs
- HyperLink.cs
- CategoryGridEntry.cs
- RefreshEventArgs.cs
- MimeBasePart.cs
- GenericFlowSwitchHelper.cs
- DataDocumentXPathNavigator.cs
- TaskCanceledException.cs
- UIPermission.cs
- PowerStatus.cs
- SoapObjectWriter.cs
- HtmlHead.cs
- MD5.cs
- DeferredReference.cs
- OutputCache.cs
- ResXResourceReader.cs
- VideoDrawing.cs
- RelatedCurrencyManager.cs
- WebConfigManager.cs
- CodeStatementCollection.cs
- SimplePropertyEntry.cs
- ThousandthOfEmRealDoubles.cs
- LoginView.cs
- TextParagraphView.cs
- ControlBuilder.cs
- TabletDeviceInfo.cs
- AsymmetricAlgorithm.cs
- ArrayElementGridEntry.cs
- UnsafeNativeMethods.cs
- VisualBasicSettings.cs
- RelatedView.cs
- MetaTableHelper.cs
- ProviderConnectionPoint.cs
- MemoryMappedFile.cs
- WebPartTransformerCollection.cs
- TableDetailsRow.cs
- WpfPayload.cs
- DetailsViewRowCollection.cs
- iisPickupDirectory.cs
- ServiceOperationWrapper.cs
- KeyMatchBuilder.cs
- XmlBaseWriter.cs
- AccessibleObject.cs
- OptimizerPatterns.cs
- PersistChildrenAttribute.cs
- XmlValueConverter.cs
- FullTrustAssembly.cs
- TextClipboardData.cs
- InkCanvas.cs
- SelectiveScrollingGrid.cs
- SignatureToken.cs
- WorkflowIdleBehavior.cs
- HtmlCommandAdapter.cs
- RepeaterItem.cs
- FactoryGenerator.cs
- odbcmetadatafactory.cs
- AssemblyAssociatedContentFileAttribute.cs
- TypeListConverter.cs
- LazyTextWriterCreator.cs
- GroupItemAutomationPeer.cs
- ControlParameter.cs
- HostingPreferredMapPath.cs
- TextRunCache.cs
- XmlNullResolver.cs
- SqlAliasesReferenced.cs
- VisualStyleTypesAndProperties.cs
- CompareValidator.cs
- XmlSchemaValidationException.cs
- HttpCachePolicyWrapper.cs
- NCryptSafeHandles.cs
- PageFunction.cs
- VisualBasicExpressionConverter.cs
- GeneralTransform3DCollection.cs
- ColorConvertedBitmapExtension.cs
- _SpnDictionary.cs
- SQLInt32Storage.cs
- ItemContainerGenerator.cs
- TcpTransportSecurityElement.cs
- Highlights.cs
- UnmanagedBitmapWrapper.cs
- XPathNavigatorException.cs
- ScriptManager.cs