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
- DataBinding.cs
- EntityDataSourceState.cs
- XmlNamespaceMapping.cs
- CompressStream.cs
- ArgIterator.cs
- StreamedFramingRequestChannel.cs
- PathGradientBrush.cs
- NullableLongAverageAggregationOperator.cs
- ServerTooBusyException.cs
- GlobalDataBindingHandler.cs
- SqlServer2KCompatibilityCheck.cs
- PreProcessor.cs
- AstTree.cs
- ObjectStateFormatter.cs
- PropertyCondition.cs
- SafeUserTokenHandle.cs
- EastAsianLunisolarCalendar.cs
- HGlobalSafeHandle.cs
- WebBrowserProgressChangedEventHandler.cs
- SqlMethodAttribute.cs
- FileDialogCustomPlacesCollection.cs
- EncodingNLS.cs
- RequestQueryProcessor.cs
- UriWriter.cs
- MethodCallExpression.cs
- XmlSchemaValidationException.cs
- DataGridHelper.cs
- regiisutil.cs
- PanelDesigner.cs
- SendOperation.cs
- DbProviderFactory.cs
- ComponentCommands.cs
- CodeParameterDeclarationExpression.cs
- EmbeddedMailObjectsCollection.cs
- SchemaAttDef.cs
- SpecularMaterial.cs
- PrintPreviewGraphics.cs
- Directory.cs
- StreamWriter.cs
- ListViewTableCell.cs
- ScaleTransform3D.cs
- TagPrefixAttribute.cs
- SafeFindHandle.cs
- ScriptResourceDefinition.cs
- AmbientEnvironment.cs
- ToolBarTray.cs
- ITextView.cs
- XhtmlBasicValidationSummaryAdapter.cs
- BaseInfoTable.cs
- CompiledAction.cs
- TrackBarRenderer.cs
- DetailsViewCommandEventArgs.cs
- DuplicateWaitObjectException.cs
- FamilyMapCollection.cs
- MobileControl.cs
- _RequestLifetimeSetter.cs
- WebResourceUtil.cs
- UnmanagedMemoryStreamWrapper.cs
- SmiEventSink_Default.cs
- AppSettingsReader.cs
- ColumnHeader.cs
- TemplateBuilder.cs
- LinkedResourceCollection.cs
- HttpCookie.cs
- ValuePattern.cs
- ProtocolsConfiguration.cs
- SignedInfo.cs
- HtmlTableCellCollection.cs
- SettingsPropertyCollection.cs
- WindowsFormsLinkLabel.cs
- ExpanderAutomationPeer.cs
- ToolStripRenderer.cs
- JournalNavigationScope.cs
- QueryContinueDragEventArgs.cs
- DesignBindingConverter.cs
- SchemaCollectionPreprocessor.cs
- DiagnosticSection.cs
- ReachDocumentReferenceSerializerAsync.cs
- WebServiceReceive.cs
- CheckoutException.cs
- SelectionEditingBehavior.cs
- HttpListenerRequestUriBuilder.cs
- AspNetSynchronizationContext.cs
- ResourcesChangeInfo.cs
- ContentControl.cs
- StackBuilderSink.cs
- SoundPlayer.cs
- MetabaseSettings.cs
- EDesignUtil.cs
- WebResourceUtil.cs
- ImageSourceValueSerializer.cs
- Base64Encoding.cs
- DataTemplateKey.cs
- ArgumentNullException.cs
- TextShapeableCharacters.cs
- ColorConvertedBitmapExtension.cs
- TextPattern.cs
- RepeaterItem.cs
- EnvironmentPermission.cs
- MLangCodePageEncoding.cs