Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Data / DataTransferEventArgs.cs / 1305600 / 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
- BaseTreeIterator.cs
- SoapElementAttribute.cs
- Mutex.cs
- IpcPort.cs
- WebPartDescription.cs
- SmiRequestExecutor.cs
- StoryFragments.cs
- BaseCodePageEncoding.cs
- ArrayEditor.cs
- TypeTypeConverter.cs
- DataColumnCollection.cs
- AutomationPropertyInfo.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- FieldValue.cs
- SmtpAuthenticationManager.cs
- DbConnectionFactory.cs
- FilterableAttribute.cs
- ScriptingSectionGroup.cs
- SmiGettersStream.cs
- TypeUtils.cs
- TextComposition.cs
- XmlSchemaAttributeGroupRef.cs
- ImageMapEventArgs.cs
- XslTransform.cs
- OperationParameterInfo.cs
- HierarchicalDataSourceControl.cs
- TextSchema.cs
- SmiMetaDataProperty.cs
- String.cs
- BoundField.cs
- BooleanAnimationBase.cs
- input.cs
- XmlILOptimizerVisitor.cs
- TypeInfo.cs
- UnlockCardRequest.cs
- PagesSection.cs
- XamlToRtfWriter.cs
- SchemaEntity.cs
- WorkflowRuntimeServiceElementCollection.cs
- SubMenuStyleCollection.cs
- PropertyDescriptorGridEntry.cs
- DefaultValidator.cs
- ListParagraph.cs
- Calendar.cs
- CodeAttributeArgument.cs
- EdmItemCollection.cs
- ComponentSerializationService.cs
- DeviceFilterDictionary.cs
- FaultDescription.cs
- AttributeCollection.cs
- _FtpControlStream.cs
- WebPartUtil.cs
- BoundsDrawingContextWalker.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- FileDialog_Vista.cs
- LightweightEntityWrapper.cs
- Utils.cs
- NativeMethods.cs
- ExportOptions.cs
- DocumentPage.cs
- PointAnimation.cs
- HttpCookieCollection.cs
- JsonClassDataContract.cs
- BooleanConverter.cs
- Triplet.cs
- CodeTypeConstructor.cs
- DataContractSerializerSection.cs
- NamespaceInfo.cs
- BitStream.cs
- DomNameTable.cs
- ResolveMatchesApril2005.cs
- Package.cs
- DefaultExpressionVisitor.cs
- XsdCachingReader.cs
- ThicknessAnimation.cs
- Converter.cs
- CodeTypeMember.cs
- CodeParameterDeclarationExpression.cs
- SupportingTokenDuplexChannel.cs
- Overlapped.cs
- EventProviderWriter.cs
- PageHandlerFactory.cs
- AsyncSerializedWorker.cs
- ProjectedSlot.cs
- InfoCardTraceRecord.cs
- ErrorFormatter.cs
- MessagePartProtectionMode.cs
- NextPreviousPagerField.cs
- DynamicContractTypeBuilder.cs
- NameTable.cs
- DataObjectSettingDataEventArgs.cs
- TextWriterTraceListener.cs
- StrongNameMembershipCondition.cs
- ExtendedPropertyDescriptor.cs
- InkSerializer.cs
- LicenseContext.cs
- ContextInformation.cs
- ActionFrame.cs
- GridLength.cs
- UnsafeNativeMethods.cs