Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SafeTokenHandle.cs
- TypefaceMap.cs
- TrackingProfileManager.cs
- MarkupObject.cs
- Sql8ExpressionRewriter.cs
- Command.cs
- AuthorizationSection.cs
- ObjectQuery_EntitySqlExtensions.cs
- ProjectionRewriter.cs
- FreezableDefaultValueFactory.cs
- GuidelineCollection.cs
- DatatypeImplementation.cs
- WinFormsSpinner.cs
- GlobalProxySelection.cs
- FamilyTypeface.cs
- ThousandthOfEmRealDoubles.cs
- TimestampInformation.cs
- XmlSchemaDatatype.cs
- ShadowGlyph.cs
- EditingScopeUndoUnit.cs
- RequestDescription.cs
- EntitySetDataBindingList.cs
- StringOutput.cs
- MULTI_QI.cs
- PageThemeBuildProvider.cs
- ToolStripArrowRenderEventArgs.cs
- OperandQuery.cs
- XmlNullResolver.cs
- IdentityValidationException.cs
- EventMappingSettings.cs
- AsymmetricKeyExchangeFormatter.cs
- InstalledFontCollection.cs
- ClientScriptItem.cs
- SyndicationDeserializer.cs
- ParserExtension.cs
- ShutDownListener.cs
- QuaternionAnimationUsingKeyFrames.cs
- XmlAttributeOverrides.cs
- WinInetCache.cs
- ReflectTypeDescriptionProvider.cs
- IList.cs
- SpecialNameAttribute.cs
- SiteMapSection.cs
- _SslSessionsCache.cs
- StopRoutingHandler.cs
- HtmlTable.cs
- EnumMemberAttribute.cs
- RootBuilder.cs
- BrowsableAttribute.cs
- MdiWindowListItemConverter.cs
- ElementNotAvailableException.cs
- EventArgs.cs
- RenameRuleObjectDialog.Designer.cs
- SchemaImporterExtensionElement.cs
- DataMemberConverter.cs
- PriorityBindingExpression.cs
- Int32EqualityComparer.cs
- ManipulationDeltaEventArgs.cs
- DataGridToolTip.cs
- TypeNameConverter.cs
- AlignmentXValidation.cs
- MostlySingletonList.cs
- WebPartPersonalization.cs
- shaperfactoryquerycachekey.cs
- ComplexTypeEmitter.cs
- GatewayIPAddressInformationCollection.cs
- loginstatus.cs
- StructuredTypeEmitter.cs
- CheckBoxRenderer.cs
- FilterQueryOptionExpression.cs
- SqlDataSource.cs
- NameNode.cs
- RbTree.cs
- TypeGeneratedEventArgs.cs
- PropertyTab.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- ArraySubsetEnumerator.cs
- CmsInterop.cs
- SqlDelegatedTransaction.cs
- SerTrace.cs
- AutomationEventArgs.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- BinaryNode.cs
- PageCache.cs
- DbDeleteCommandTree.cs
- TableItemPattern.cs
- FontCacheUtil.cs
- CultureMapper.cs
- VirtualDirectoryMappingCollection.cs
- EditingCommands.cs
- HashHelper.cs
- TreeBuilderXamlTranslator.cs
- BamlVersionHeader.cs
- LinqDataSourceUpdateEventArgs.cs
- ApplicationDirectoryMembershipCondition.cs
- ValidationHelpers.cs
- TextParentUndoUnit.cs
- FixedDocumentPaginator.cs
- FontNameEditor.cs
- ScrollBarAutomationPeer.cs