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
- BindingGroup.cs
- DataGridViewRowPostPaintEventArgs.cs
- ListParagraph.cs
- DataGridViewSelectedCellCollection.cs
- Transform.cs
- PolyQuadraticBezierSegment.cs
- BinaryConverter.cs
- Rotation3DAnimation.cs
- XsltArgumentList.cs
- ScopelessEnumAttribute.cs
- SR.cs
- XmlReader.cs
- SignatureHelper.cs
- DispatcherBuilder.cs
- __TransparentProxy.cs
- DynamicMetaObject.cs
- HTMLTextWriter.cs
- SchemaTableOptionalColumn.cs
- CodeDomExtensionMethods.cs
- DBPropSet.cs
- TypedReference.cs
- CodeBlockBuilder.cs
- MetaModel.cs
- SystemTcpStatistics.cs
- HotCommands.cs
- DataGrid.cs
- Fault.cs
- CurrencyManager.cs
- CaseStatementProjectedSlot.cs
- ScaleTransform3D.cs
- TokenBasedSetEnumerator.cs
- StringPropertyBuilder.cs
- RoutedEvent.cs
- CheckBox.cs
- ClientFactory.cs
- RowType.cs
- ToolStripGrip.cs
- FixedSOMTable.cs
- CollectionType.cs
- NonSerializedAttribute.cs
- ClickablePoint.cs
- EventProvider.cs
- ScriptIgnoreAttribute.cs
- CapabilitiesAssignment.cs
- FontUnit.cs
- NavigatorOutput.cs
- RegexInterpreter.cs
- FactoryRecord.cs
- KoreanLunisolarCalendar.cs
- Multiply.cs
- BaseAddressPrefixFilterElementCollection.cs
- SqlUtil.cs
- SetStoryboardSpeedRatio.cs
- TraceHandler.cs
- Condition.cs
- ByteConverter.cs
- BlobPersonalizationState.cs
- SimpleHandlerBuildProvider.cs
- ConnectionsZone.cs
- TimeSpanFormat.cs
- SHA256Managed.cs
- AnnotationDocumentPaginator.cs
- infer.cs
- CopyAttributesAction.cs
- DaylightTime.cs
- CheckBoxFlatAdapter.cs
- ErasingStroke.cs
- InternalBase.cs
- ListBase.cs
- AppDomainManager.cs
- UnmanagedBitmapWrapper.cs
- Query.cs
- TypeListConverter.cs
- TypeUtils.cs
- ReachDocumentReferenceSerializerAsync.cs
- SqlRetyper.cs
- GraphicsState.cs
- DataTemplateSelector.cs
- ComboBoxRenderer.cs
- PerfCounters.cs
- CqlIdentifiers.cs
- LinkButton.cs
- WindowsHyperlink.cs
- JsonServiceDocumentSerializer.cs
- LocalizedNameDescriptionPair.cs
- DataColumn.cs
- GenericWebPart.cs
- DefaultObjectMappingItemCollection.cs
- PermissionSet.cs
- GatewayDefinition.cs
- _HeaderInfo.cs
- MemberPath.cs
- XmlAttributeProperties.cs
- SingleConverter.cs
- EntityDataSourceWrapperCollection.cs
- UIElementIsland.cs
- BaseTemplateParser.cs
- TaskFactory.cs
- RuntimeEnvironment.cs
- ContextBase.cs