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
- DataViewManager.cs
- TextContainerHelper.cs
- Models.cs
- PropertyDescriptorGridEntry.cs
- XsltOutput.cs
- SiteMapProvider.cs
- SessionEndedEventArgs.cs
- IEnumerable.cs
- ParagraphVisual.cs
- ClassicBorderDecorator.cs
- RemoteWebConfigurationHost.cs
- CodeSubDirectoriesCollection.cs
- HitTestWithGeometryDrawingContextWalker.cs
- Calendar.cs
- GenerateScriptTypeAttribute.cs
- RunWorkerCompletedEventArgs.cs
- UrlMapping.cs
- EditorPartChrome.cs
- TextRangeEditLists.cs
- WithParamAction.cs
- BaseDataListComponentEditor.cs
- TaiwanLunisolarCalendar.cs
- BitmapData.cs
- HotSpotCollection.cs
- SecurityManager.cs
- NonClientArea.cs
- CodeExpressionStatement.cs
- StylusButtonCollection.cs
- RequestUriProcessor.cs
- XmlElement.cs
- TrustSection.cs
- SafeSecurityHelper.cs
- _SslState.cs
- SymbolPair.cs
- BaseTemplateBuildProvider.cs
- TrackingServices.cs
- TextElement.cs
- RootProfilePropertySettingsCollection.cs
- EditorZone.cs
- Image.cs
- ValidationErrorCollection.cs
- SmiSettersStream.cs
- QueryStringParameter.cs
- CollectionsUtil.cs
- DataControlFieldHeaderCell.cs
- ButtonBaseAutomationPeer.cs
- ToolStripOverflowButton.cs
- KeySplineConverter.cs
- FaultPropagationQuery.cs
- ScrollContentPresenter.cs
- WebBrowserNavigatingEventHandler.cs
- RepeaterItemEventArgs.cs
- PropertyContainer.cs
- PageCatalogPart.cs
- XmlDownloadManager.cs
- WSSecurityOneDotOneSendSecurityHeader.cs
- ClientSettingsSection.cs
- DrawingBrush.cs
- URLMembershipCondition.cs
- Dump.cs
- FileNotFoundException.cs
- TaskFormBase.cs
- StandardOleMarshalObject.cs
- PasswordRecoveryAutoFormat.cs
- SubMenuStyle.cs
- SymbolType.cs
- SerializerWriterEventHandlers.cs
- Brush.cs
- Point4D.cs
- ResourcePool.cs
- RectConverter.cs
- CodeDOMUtility.cs
- FieldNameLookup.cs
- StringArrayConverter.cs
- ObjectAnimationUsingKeyFrames.cs
- PropertyInformationCollection.cs
- TextLineResult.cs
- HtmlSelect.cs
- MultipleViewPatternIdentifiers.cs
- CodeSnippetCompileUnit.cs
- MetadataPropertyCollection.cs
- DataServiceBehavior.cs
- WebContext.cs
- AnimatedTypeHelpers.cs
- StylusSystemGestureEventArgs.cs
- StreamInfo.cs
- ShutDownListener.cs
- MenuItemBindingCollection.cs
- RepeaterCommandEventArgs.cs
- X509Certificate2Collection.cs
- KeyConstraint.cs
- mediapermission.cs
- TextRangeEdit.cs
- PointLightBase.cs
- IntSecurity.cs
- ExcCanonicalXml.cs
- CannotUnloadAppDomainException.cs
- OdbcConnectionOpen.cs
- ValidatorUtils.cs
- Number.cs