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
- Label.cs
- PageEventArgs.cs
- GlyphingCache.cs
- PrintDialogException.cs
- CacheEntry.cs
- XamlSerializer.cs
- XmlSchemaExporter.cs
- BamlBinaryReader.cs
- XmlIlVisitor.cs
- RegexBoyerMoore.cs
- FormsAuthenticationModule.cs
- GlobalizationSection.cs
- DefaultEvaluationContext.cs
- CompareValidator.cs
- TextRangeEditLists.cs
- BeginStoryboard.cs
- DesignerSerializerAttribute.cs
- VirtualPath.cs
- ScopelessEnumAttribute.cs
- PresentationAppDomainManager.cs
- DynamicObjectAccessor.cs
- DataGridItemAttachedStorage.cs
- XmlSerializer.cs
- AspNetRouteServiceHttpHandler.cs
- DataBoundLiteralControl.cs
- ClientScriptItemCollection.cs
- WebUtil.cs
- ComponentResourceKeyConverter.cs
- ExpressionBuilderContext.cs
- TrackBarRenderer.cs
- RightsManagementInformation.cs
- EncodingDataItem.cs
- ClaimComparer.cs
- XomlCompilerError.cs
- BindingContext.cs
- AuthorizationRule.cs
- InheritanceRules.cs
- ListComponentEditorPage.cs
- TextSpan.cs
- LinearKeyFrames.cs
- RangeBaseAutomationPeer.cs
- SessionEndingCancelEventArgs.cs
- EntityCommandDefinition.cs
- DataGridViewCellStyleConverter.cs
- StreamAsIStream.cs
- JsonEnumDataContract.cs
- HashCodeCombiner.cs
- HwndSourceKeyboardInputSite.cs
- MenuItemAutomationPeer.cs
- XmlSerializableWriter.cs
- TimelineClockCollection.cs
- CodeParameterDeclarationExpression.cs
- ToolStripSeparator.cs
- ResXBuildProvider.cs
- InvariantComparer.cs
- DbConnectionOptions.cs
- DataGridViewColumnDesigner.cs
- MemoryFailPoint.cs
- ButtonChrome.cs
- SecurityContextTokenValidationException.cs
- ResourceManager.cs
- TableLayoutSettings.cs
- HotSpotCollection.cs
- XmlMessageFormatter.cs
- CompositeTypefaceMetrics.cs
- AppSettingsExpressionBuilder.cs
- Stylesheet.cs
- ProgressChangedEventArgs.cs
- HttpListenerRequestUriBuilder.cs
- StackOverflowException.cs
- SqlServer2KCompatibilityAnnotation.cs
- RegexCompilationInfo.cs
- GeneralTransform3DTo2DTo3D.cs
- CompilationPass2Task.cs
- SizeAnimationUsingKeyFrames.cs
- Bits.cs
- ReadContentAsBinaryHelper.cs
- Hashtable.cs
- ObjectDataSourceMethodEventArgs.cs
- CodeVariableReferenceExpression.cs
- LinearGradientBrush.cs
- ErrorLog.cs
- FixedStringLookup.cs
- QueryOperationResponseOfT.cs
- DataSysAttribute.cs
- ApplicationDirectory.cs
- LoginUtil.cs
- LinqDataSource.cs
- XamlBrushSerializer.cs
- GroupItem.cs
- CultureInfoConverter.cs
- SafeEventLogWriteHandle.cs
- TextRunTypographyProperties.cs
- HTMLTagNameToTypeMapper.cs
- ExceptQueryOperator.cs
- ReferenceAssemblyAttribute.cs
- Label.cs
- ConnectionStringSettings.cs
- BaseParser.cs
- AccessDataSource.cs