Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- NoneExcludedImageIndexConverter.cs
- QueryParameter.cs
- BookmarkResumptionRecord.cs
- SafeArchiveContext.cs
- PolygonHotSpot.cs
- GeneralTransform3DGroup.cs
- QueryReaderSettings.cs
- Quaternion.cs
- UnauthorizedWebPart.cs
- ExpressionNode.cs
- SessionIDManager.cs
- X509ClientCertificateAuthentication.cs
- CellNormalizer.cs
- TypeLibConverter.cs
- StreamSecurityUpgradeInitiatorBase.cs
- SourceChangedEventArgs.cs
- TextRangeEditLists.cs
- VisualTarget.cs
- StylusEditingBehavior.cs
- Substitution.cs
- SchemaTableOptionalColumn.cs
- SmiEventSink_Default.cs
- EventEntry.cs
- MenuBindingsEditorForm.cs
- ClientOptions.cs
- ShellProvider.cs
- WebPartsPersonalizationAuthorization.cs
- AuthStoreRoleProvider.cs
- WebPartsPersonalizationAuthorization.cs
- isolationinterop.cs
- ErrorWebPart.cs
- _SSPIWrapper.cs
- SystemNetworkInterface.cs
- AmbientLight.cs
- PropertyManager.cs
- HttpProcessUtility.cs
- ParamArrayAttribute.cs
- WindowsGraphicsCacheManager.cs
- StrokeNodeOperations2.cs
- MimeWriter.cs
- SettingsProperty.cs
- InheritanceRules.cs
- ColumnTypeConverter.cs
- XmlIlTypeHelper.cs
- LayoutTableCell.cs
- XmlSchemaChoice.cs
- XPathMultyIterator.cs
- RawTextInputReport.cs
- ValidationSummary.cs
- ScriptControl.cs
- Menu.cs
- ReadOnlyPropertyMetadata.cs
- DesignSurfaceCollection.cs
- DecimalKeyFrameCollection.cs
- XmlDocumentSurrogate.cs
- HwndSubclass.cs
- PanelStyle.cs
- SocketAddress.cs
- BindingManagerDataErrorEventArgs.cs
- LayoutManager.cs
- CompletionProxy.cs
- RootBuilder.cs
- FixedTextView.cs
- Int64KeyFrameCollection.cs
- PeerToPeerException.cs
- ControlValuePropertyAttribute.cs
- HebrewNumber.cs
- IHttpResponseInternal.cs
- SafeProcessHandle.cs
- XmlSerializationWriter.cs
- CodeGroup.cs
- SystemUnicastIPAddressInformation.cs
- ConnectionOrientedTransportBindingElement.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- StateBag.cs
- WaitForChangedResult.cs
- UserControlParser.cs
- RotationValidation.cs
- WorkflowViewManager.cs
- _FtpControlStream.cs
- SequenceDesigner.cs
- XmlBinaryReader.cs
- CompositeTypefaceMetrics.cs
- XmlWriterSettings.cs
- CryptoStream.cs
- TdsParserStaticMethods.cs
- PreservationFileWriter.cs
- GeneratedContractType.cs
- ScrollBar.cs
- LoadItemsEventArgs.cs
- TagPrefixCollection.cs
- ToolBarButtonDesigner.cs
- RuntimeHelpers.cs
- CacheEntry.cs
- AnalyzedTree.cs
- ToolStripPanelRenderEventArgs.cs
- Cell.cs
- ViewManager.cs
- CompleteWizardStep.cs
- DataGridViewSelectedCellCollection.cs