Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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.
///
///
/// 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).
///
public class DataTransferEventArgs : RoutedEventArgs
{
//-----------------------------------------------------
//
// Constructors
//
//-----------------------------------------------------
internal DataTransferEventArgs(DependencyObject targetObject, DependencyProperty dp) : base()
{
_targetObject = targetObject;
_dp = dp;
}
//------------------------------------------------------
//
// Public Properties
//
//-----------------------------------------------------
///
/// 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)
{
EventHandler handler = (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.
///
///
/// 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).
///
public class DataTransferEventArgs : RoutedEventArgs
{
//-----------------------------------------------------
//
// Constructors
//
//-----------------------------------------------------
internal DataTransferEventArgs(DependencyObject targetObject, DependencyProperty dp) : base()
{
_targetObject = targetObject;
_dp = dp;
}
//------------------------------------------------------
//
// Public Properties
//
//-----------------------------------------------------
///
/// 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)
{
EventHandler handler = (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
- DataGridDetailsPresenterAutomationPeer.cs
- TextSelectionProcessor.cs
- UnsafeNativeMethodsMilCoreApi.cs
- OperationContextScope.cs
- ExpandableObjectConverter.cs
- MembershipSection.cs
- GreenMethods.cs
- ObjectDataSourceStatusEventArgs.cs
- RepeaterItemEventArgs.cs
- GPStream.cs
- ProbeMatchesCD1.cs
- Predicate.cs
- VarInfo.cs
- StickyNoteHelper.cs
- ContextProperty.cs
- QueryCreatedEventArgs.cs
- Separator.cs
- DebuggerAttributes.cs
- ClientRolePrincipal.cs
- DesignBindingPicker.cs
- MultiByteCodec.cs
- Label.cs
- XmlSchemas.cs
- JsonDeserializer.cs
- TextParagraphProperties.cs
- Condition.cs
- FontDriver.cs
- AuthorizationRuleCollection.cs
- ObjectMemberMapping.cs
- FreezableDefaultValueFactory.cs
- TextTrailingWordEllipsis.cs
- TextElement.cs
- WebEventTraceProvider.cs
- AttributeEmitter.cs
- OleDbParameter.cs
- DataListAutoFormat.cs
- FontNamesConverter.cs
- RemotingServices.cs
- GridViewEditEventArgs.cs
- NoClickablePointException.cs
- ConnectionOrientedTransportChannelFactory.cs
- ImagingCache.cs
- PartBasedPackageProperties.cs
- oledbmetadatacolumnnames.cs
- StringArrayConverter.cs
- RelatedPropertyManager.cs
- DBCommand.cs
- LeaseManager.cs
- WindowsAuthenticationModule.cs
- ServiceDescriptionSerializer.cs
- DataServiceProviderWrapper.cs
- PathNode.cs
- ModelUIElement3D.cs
- ConfigurationStrings.cs
- PersistencePipeline.cs
- CornerRadiusConverter.cs
- InputScopeNameConverter.cs
- Matrix3DStack.cs
- SuppressMergeCheckAttribute.cs
- ContextItem.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- SafeRightsManagementPubHandle.cs
- Image.cs
- SpotLight.cs
- SecurityUtils.cs
- XmlElementElement.cs
- MarkupExtensionReturnTypeAttribute.cs
- SqlClientWrapperSmiStreamChars.cs
- FileUtil.cs
- ModifierKeysConverter.cs
- WebServiceClientProxyGenerator.cs
- ErrorStyle.cs
- XPathDocumentNavigator.cs
- ModuleBuilderData.cs
- DataExpression.cs
- ProcessModelInfo.cs
- EllipseGeometry.cs
- SetState.cs
- BasicHttpMessageSecurityElement.cs
- SendActivityDesigner.cs
- AnyAllSearchOperator.cs
- XomlCompiler.cs
- ExpressionConverter.cs
- Util.cs
- AccessedThroughPropertyAttribute.cs
- XmlUtil.cs
- PrivilegedConfigurationManager.cs
- MessageParameterAttribute.cs
- DropShadowBitmapEffect.cs
- SqlNotificationEventArgs.cs
- TaskScheduler.cs
- DataServiceRequestException.cs
- Viewport3DAutomationPeer.cs
- EncodingDataItem.cs
- SecurityTokenInclusionMode.cs
- xmlglyphRunInfo.cs
- Vector3DKeyFrameCollection.cs
- XPathAncestorQuery.cs
- PenLineCapValidation.cs
- WindowsFormsSynchronizationContext.cs