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. /// ////// 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
- DbProviderServices.cs
- DifferencingCollection.cs
- CharacterShapingProperties.cs
- XhtmlBasicControlAdapter.cs
- TypographyProperties.cs
- _Win32.cs
- CrossContextChannel.cs
- EntitySqlQueryCacheEntry.cs
- WebBrowsableAttribute.cs
- UInt64.cs
- ImpersonateTokenRef.cs
- DataBinding.cs
- InfoCardProofToken.cs
- DotExpr.cs
- LinqDataSourceContextEventArgs.cs
- DateRangeEvent.cs
- RIPEMD160Managed.cs
- TextWriter.cs
- BufferedGraphics.cs
- SID.cs
- ClickablePoint.cs
- SqlDataRecord.cs
- AmbientLight.cs
- TimeSpanConverter.cs
- InputLanguageProfileNotifySink.cs
- EntityDataSourceValidationException.cs
- VirtualPath.cs
- ColumnMapProcessor.cs
- PathSegment.cs
- RegexInterpreter.cs
- BinaryObjectInfo.cs
- SiteMapNode.cs
- CompositeTypefaceMetrics.cs
- ItemContainerGenerator.cs
- UnsafeNativeMethods.cs
- DbConnectionPoolGroup.cs
- TextBox.cs
- UInt32Storage.cs
- Thread.cs
- FacetValues.cs
- XmlSortKey.cs
- LogExtent.cs
- ZipPackagePart.cs
- CollectionChangeEventArgs.cs
- XmlSignatureProperties.cs
- DataBinder.cs
- UInt32Converter.cs
- VirtualDirectoryMappingCollection.cs
- WebPartCloseVerb.cs
- RightNameExpirationInfoPair.cs
- FixedPosition.cs
- EndEvent.cs
- DataGridViewControlCollection.cs
- RequestQueue.cs
- ExceptionList.cs
- AnchoredBlock.cs
- SignedInfo.cs
- FrameworkPropertyMetadata.cs
- RuntimeHelpers.cs
- Closure.cs
- ContractTypeNameElement.cs
- TrackingSection.cs
- RepeatInfo.cs
- TrustSection.cs
- TemplatedAdorner.cs
- HttpModuleAction.cs
- TypefaceMetricsCache.cs
- BeginStoryboard.cs
- Condition.cs
- CellParaClient.cs
- SqlAliasesReferenced.cs
- CollectionMarkupSerializer.cs
- DataGridPagerStyle.cs
- XLinq.cs
- WSTrust.cs
- DataGridPagingPage.cs
- HttpListenerException.cs
- FontInfo.cs
- SerializationInfo.cs
- StreamGeometryContext.cs
- RefType.cs
- securestring.cs
- ConfigXmlSignificantWhitespace.cs
- CompatibleIComparer.cs
- DataGridColumnCollection.cs
- AspNetCacheProfileAttribute.cs
- CompilerErrorCollection.cs
- MonitoringDescriptionAttribute.cs
- CollectionViewGroupRoot.cs
- AnnotationMap.cs
- ControlValuePropertyAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- DefaultValueAttribute.cs
- InstanceDataCollection.cs
- ToolStripDesignerUtils.cs
- ServiceProviders.cs
- SecurityUtils.cs
- HtmlTitle.cs
- DesignerVerbToolStripMenuItem.cs
- SByte.cs