Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FileUtil.cs
- NullableFloatSumAggregationOperator.cs
- XmlSchemaAttributeGroup.cs
- ListViewSelectEventArgs.cs
- WorkflowRuntimeServiceElement.cs
- ModelFunction.cs
- SwitchElementsCollection.cs
- RawKeyboardInputReport.cs
- InfoCardTraceRecord.cs
- Figure.cs
- PrefixHandle.cs
- _DigestClient.cs
- CalendarDay.cs
- TextTreeTextNode.cs
- PresentationSource.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ClientProtocol.cs
- FacetValueContainer.cs
- RolePrincipal.cs
- ProfilePropertyMetadata.cs
- PageAdapter.cs
- activationcontext.cs
- PasswordTextNavigator.cs
- ItemsControl.cs
- RecognizerBase.cs
- OutputCacheModule.cs
- ProtocolsConfiguration.cs
- ParagraphVisual.cs
- EncodingStreamWrapper.cs
- Timeline.cs
- DataGridTextBoxColumn.cs
- LinkUtilities.cs
- PropertyInformationCollection.cs
- UnsafeNativeMethods.cs
- Array.cs
- XmlNamespaceMappingCollection.cs
- WebPartZone.cs
- CircleHotSpot.cs
- CFStream.cs
- CurrencyManager.cs
- DataSourceControl.cs
- DropShadowBitmapEffect.cs
- GenericEnumerator.cs
- _MultipleConnectAsync.cs
- JumpList.cs
- ValidatedControlConverter.cs
- HttpResponse.cs
- ToolStripSplitStackLayout.cs
- XmlSchemaComplexContentExtension.cs
- AnnotationDocumentPaginator.cs
- FileStream.cs
- LocatorPartList.cs
- UIElementParagraph.cs
- PointCollection.cs
- RootBrowserWindowProxy.cs
- XmlSchemaAttributeGroup.cs
- ListViewEditEventArgs.cs
- ListViewEditEventArgs.cs
- SmiSettersStream.cs
- XmlDesignerDataSourceView.cs
- ContainsRowNumberChecker.cs
- AtlasWeb.Designer.cs
- HttpEncoder.cs
- BoundsDrawingContextWalker.cs
- Interlocked.cs
- PrimitiveCodeDomSerializer.cs
- OdbcEnvironment.cs
- XPathMultyIterator.cs
- ConfigurationManagerInternal.cs
- TypeElementCollection.cs
- ElementsClipboardData.cs
- NavigationWindow.cs
- SystemWebCachingSectionGroup.cs
- SecurityProtocol.cs
- XhtmlTextWriter.cs
- GridItemCollection.cs
- ProcessExitedException.cs
- RectConverter.cs
- DataGridViewAdvancedBorderStyle.cs
- EntityContainerAssociationSet.cs
- Automation.cs
- TextParentUndoUnit.cs
- RTTrackingProfile.cs
- CqlBlock.cs
- SrgsSemanticInterpretationTag.cs
- ApplicationDirectory.cs
- DesignUtil.cs
- KeyBinding.cs
- TabItemWrapperAutomationPeer.cs
- ConfigXmlComment.cs
- RectAnimationClockResource.cs
- EntityDataSource.cs
- PointCollectionValueSerializer.cs
- XhtmlBasicListAdapter.cs
- MessageSecurityOverTcpElement.cs
- Polygon.cs
- FixedSOMContainer.cs
- CrossContextChannel.cs
- RawStylusInputCustomDataList.cs
- EditorPartDesigner.cs