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
- TemplateBindingExpression.cs
- ScriptReferenceBase.cs
- DataBoundControlHelper.cs
- SchemaImporterExtensionsSection.cs
- XpsFilter.cs
- Brush.cs
- EditorPartChrome.cs
- ToolStripPanelSelectionGlyph.cs
- SemaphoreSlim.cs
- Single.cs
- AmbiguousMatchException.cs
- WebBrowserProgressChangedEventHandler.cs
- SynchronizedReadOnlyCollection.cs
- CoTaskMemHandle.cs
- TracingConnectionListener.cs
- TableCellCollection.cs
- NativeMethods.cs
- ProfileBuildProvider.cs
- SQLDateTime.cs
- ProcessModelInfo.cs
- FocusManager.cs
- SecurityUtils.cs
- Padding.cs
- UIElement3D.cs
- BypassElementCollection.cs
- SqlRowUpdatingEvent.cs
- EventLogPermissionEntryCollection.cs
- ProcessModule.cs
- SafeNativeMethods.cs
- XNodeSchemaApplier.cs
- BrowserCapabilitiesCompiler.cs
- _AutoWebProxyScriptHelper.cs
- StylusPointProperties.cs
- OpacityConverter.cs
- CriticalExceptions.cs
- TextEffectCollection.cs
- XmlEnumAttribute.cs
- ReplyChannelAcceptor.cs
- OutputScope.cs
- X509CertificateCollection.cs
- ImpersonateTokenRef.cs
- NamespaceDecl.cs
- AutomationPropertyInfo.cs
- EventRecordWrittenEventArgs.cs
- XmlConvert.cs
- EventLogEntryCollection.cs
- FrugalList.cs
- mda.cs
- FieldBuilder.cs
- ExpressionPrefixAttribute.cs
- documentsequencetextview.cs
- QueryableDataSource.cs
- ICollection.cs
- DetailsViewCommandEventArgs.cs
- AccessViolationException.cs
- FrameworkTemplate.cs
- NativeRecognizer.cs
- RotateTransform.cs
- LinqDataSourceDisposeEventArgs.cs
- NTAccount.cs
- hwndwrapper.cs
- WebPartEditVerb.cs
- SqlConnectionFactory.cs
- SocketException.cs
- SearchForVirtualItemEventArgs.cs
- RegexCapture.cs
- ObjectNotFoundException.cs
- StateMachineWorkflowDesigner.cs
- GradientStopCollection.cs
- TextViewSelectionProcessor.cs
- DocumentOrderQuery.cs
- FaultReason.cs
- DataGridViewCellStyleChangedEventArgs.cs
- TextSimpleMarkerProperties.cs
- Knowncolors.cs
- DocumentViewerAutomationPeer.cs
- Repeater.cs
- Dispatcher.cs
- EntityDataSourceEntityTypeFilterItem.cs
- WebPartConnectionsCancelEventArgs.cs
- ContactManager.cs
- XamlNamespaceHelper.cs
- ToolStripRenderer.cs
- ResXResourceSet.cs
- RegexWriter.cs
- DiscoveryServerProtocol.cs
- TextParagraphProperties.cs
- ListItem.cs
- BaseDataBoundControlDesigner.cs
- WmpBitmapEncoder.cs
- ToolStripDropTargetManager.cs
- WebPartDescription.cs
- CqlLexer.cs
- TextEditorParagraphs.cs
- WindowsFormsHostAutomationPeer.cs
- TextBox.cs
- MarkupCompiler.cs
- CommonGetThemePartSize.cs
- Misc.cs
- ReplyChannel.cs