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
- TabControl.cs
- ResourceDefaultValueAttribute.cs
- EastAsianLunisolarCalendar.cs
- Track.cs
- PersonalizationProvider.cs
- DescriptionAttribute.cs
- SystemPens.cs
- PositiveTimeSpanValidator.cs
- CodeDomSerializerBase.cs
- MailAddressCollection.cs
- BackgroundWorker.cs
- StrokeFIndices.cs
- SemanticAnalyzer.cs
- Label.cs
- System.Data.OracleClient_BID.cs
- LiteralControl.cs
- HtmlContainerControl.cs
- PaperSource.cs
- UpdateTracker.cs
- ApplicationHost.cs
- DesignerForm.cs
- QuadraticBezierSegment.cs
- WebHttpBehavior.cs
- GridViewColumnHeader.cs
- SqlFunctionAttribute.cs
- OleDbCommandBuilder.cs
- FontFamilyValueSerializer.cs
- AuthenticationModuleElement.cs
- ObjectListField.cs
- FigureParaClient.cs
- StorageFunctionMapping.cs
- Misc.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- EndpointIdentityExtension.cs
- TemplateControlCodeDomTreeGenerator.cs
- WindowsStatusBar.cs
- grammarelement.cs
- Knowncolors.cs
- Metadata.cs
- NoClickablePointException.cs
- TextEditorMouse.cs
- PropertyDescriptorComparer.cs
- SessionStateSection.cs
- RelationshipNavigation.cs
- Reference.cs
- Currency.cs
- WebPartAddingEventArgs.cs
- UInt64.cs
- ComponentDispatcherThread.cs
- ProviderConnectionPoint.cs
- XmlSchemaChoice.cs
- SeekableReadStream.cs
- ExpressionEditorAttribute.cs
- Camera.cs
- DocumentViewerBaseAutomationPeer.cs
- IdentityNotMappedException.cs
- Operand.cs
- PageThemeParser.cs
- Types.cs
- CaseInsensitiveOrdinalStringComparer.cs
- CheckableControlBaseAdapter.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- DataGridViewTextBoxCell.cs
- ControlPersister.cs
- printdlgexmarshaler.cs
- XmlSchemas.cs
- HtmlInputImage.cs
- SchemeSettingElementCollection.cs
- SimpleWorkerRequest.cs
- WebServiceParameterData.cs
- OutOfProcStateClientManager.cs
- EntityDataSourceQueryBuilder.cs
- Ipv6Element.cs
- Environment.cs
- AuthenticateEventArgs.cs
- StyleCollection.cs
- Span.cs
- BamlMapTable.cs
- RNGCryptoServiceProvider.cs
- DragDrop.cs
- SqlInternalConnectionTds.cs
- ExceptQueryOperator.cs
- FilterEventArgs.cs
- Queue.cs
- WindowsListViewGroupHelper.cs
- EdmScalarPropertyAttribute.cs
- MetadataItemEmitter.cs
- TextSimpleMarkerProperties.cs
- CustomPeerResolverService.cs
- ElementAtQueryOperator.cs
- SEHException.cs
- EntityDataSourceUtil.cs
- BlobPersonalizationState.cs
- ModuleBuilder.cs
- WindowsAuthenticationModule.cs
- FilterableAttribute.cs
- Regex.cs
- messageonlyhwndwrapper.cs
- Quaternion.cs
- XsdDateTime.cs