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
- HttpRequestCacheValidator.cs
- SqlClientWrapperSmiStreamChars.cs
- PinnedBufferMemoryStream.cs
- WorkflowServiceHostFactory.cs
- DataSourceDesigner.cs
- WebEventTraceProvider.cs
- PropertyDescriptors.cs
- AsyncDataRequest.cs
- TableLayoutStyle.cs
- Serializer.cs
- WrappingXamlSchemaContext.cs
- UnsafeNativeMethods.cs
- TracedNativeMethods.cs
- ThreadInterruptedException.cs
- CheckBox.cs
- Line.cs
- ListBase.cs
- Stroke.cs
- PersonalizablePropertyEntry.cs
- FontDriver.cs
- TypeReference.cs
- Group.cs
- FixedTextView.cs
- Int32KeyFrameCollection.cs
- EventLogTraceListener.cs
- ArraySegment.cs
- smtpconnection.cs
- XmlnsCache.cs
- PointCollection.cs
- HttpWebRequest.cs
- Rijndael.cs
- DBConcurrencyException.cs
- ConfigurationValue.cs
- DataGridViewComboBoxCell.cs
- BulletedList.cs
- RangeValuePattern.cs
- ClearTypeHintValidation.cs
- DependsOnAttribute.cs
- SafeUserTokenHandle.cs
- Sorting.cs
- GifBitmapEncoder.cs
- PictureBoxDesigner.cs
- HttpWriter.cs
- ExtensionDataReader.cs
- DataGrid.cs
- UnaryOperationBinder.cs
- CodeDomSerializationProvider.cs
- EntityDataSourceContainerNameItem.cs
- VisualStyleInformation.cs
- FormViewDeletedEventArgs.cs
- CheckBox.cs
- RenderContext.cs
- FilterQuery.cs
- AsyncResult.cs
- ExternalException.cs
- XmlSchemaSimpleTypeUnion.cs
- SqlCommandSet.cs
- InkPresenterAutomationPeer.cs
- LayoutTableCell.cs
- GeneralTransform3D.cs
- DependencyProperty.cs
- XmlCharCheckingReader.cs
- AccessibilityApplicationManager.cs
- SqlGenerator.cs
- XmlSchemaGroupRef.cs
- NullableDecimalSumAggregationOperator.cs
- ObjectParameterCollection.cs
- FixedDocumentPaginator.cs
- ComponentCache.cs
- ArgumentNullException.cs
- NativeMethods.cs
- MergeExecutor.cs
- VarRemapper.cs
- Viewport3DAutomationPeer.cs
- CommandCollectionEditor.cs
- XmlCDATASection.cs
- DateTimeOffsetAdapter.cs
- RequestQueue.cs
- ExpressionVisitor.cs
- InstanceOwnerQueryResult.cs
- CellCreator.cs
- SQLDecimalStorage.cs
- TextDecorationCollection.cs
- XmlCodeExporter.cs
- SerializerProvider.cs
- DbConnectionFactory.cs
- RangeValuePatternIdentifiers.cs
- InheritanceContextChangedEventManager.cs
- RotateTransform.cs
- SoapIgnoreAttribute.cs
- SubqueryTrackingVisitor.cs
- DataRowExtensions.cs
- DataViewSettingCollection.cs
- RegisteredScript.cs
- httpapplicationstate.cs
- Memoizer.cs
- DataFieldCollectionEditor.cs
- DataGridCell.cs
- SchemaDeclBase.cs
- SmiContextFactory.cs