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
- SmtpTransport.cs
- PixelFormat.cs
- TimelineCollection.cs
- __Filters.cs
- PngBitmapEncoder.cs
- LinqDataSourceDeleteEventArgs.cs
- Buffer.cs
- WorkflowViewManager.cs
- ConfigurationManagerHelper.cs
- RelationshipDetailsRow.cs
- DataContractJsonSerializerOperationFormatter.cs
- FontStyleConverter.cs
- FormatConvertedBitmap.cs
- SystemIcmpV4Statistics.cs
- RelationshipWrapper.cs
- MaskedTextBoxDesigner.cs
- QueryReaderSettings.cs
- LinearGradientBrush.cs
- RelationshipNavigation.cs
- FixedSOMLineRanges.cs
- OrderedDictionary.cs
- SafeCryptoHandles.cs
- linebase.cs
- EntityStoreSchemaFilterEntry.cs
- TreeNodeCollection.cs
- TextProperties.cs
- BindingBase.cs
- AppDomainProtocolHandler.cs
- CatalogZoneBase.cs
- TreeViewImageKeyConverter.cs
- ServiceModelSecurityTokenRequirement.cs
- TcpServerChannel.cs
- exports.cs
- WindowsUpDown.cs
- WindowsSecurityTokenAuthenticator.cs
- EnumerableCollectionView.cs
- ButtonColumn.cs
- HijriCalendar.cs
- UIElementParaClient.cs
- StrokeCollection.cs
- ParamArrayAttribute.cs
- DispatcherOperation.cs
- QueryCacheManager.cs
- IndexOutOfRangeException.cs
- ConfigurationException.cs
- DataGridViewCellStyleChangedEventArgs.cs
- Variant.cs
- Cursor.cs
- Keywords.cs
- FixedSOMGroup.cs
- EventMetadata.cs
- AssemblySettingAttributes.cs
- DateTimeOffsetConverter.cs
- IncrementalReadDecoders.cs
- DesignerCategoryAttribute.cs
- MatrixValueSerializer.cs
- BreakRecordTable.cs
- NativeMethods.cs
- CodeParameterDeclarationExpressionCollection.cs
- InputProviderSite.cs
- MorphHelper.cs
- XmlSerializationGeneratedCode.cs
- IncrementalHitTester.cs
- IDReferencePropertyAttribute.cs
- CodeArrayCreateExpression.cs
- DateTimeFormatInfo.cs
- IUnknownConstantAttribute.cs
- XmlSchemaInferenceException.cs
- ScriptingScriptResourceHandlerSection.cs
- FixedDocumentPaginator.cs
- StringDictionaryEditor.cs
- DoubleUtil.cs
- PreProcessInputEventArgs.cs
- MatrixKeyFrameCollection.cs
- WebEventTraceProvider.cs
- HtmlEncodedRawTextWriter.cs
- WinFormsSecurity.cs
- XmlQueryTypeFactory.cs
- SqlConnectionPoolGroupProviderInfo.cs
- OutputScopeManager.cs
- DesignerUtils.cs
- SendActivity.cs
- NotifyIcon.cs
- BrowserCapabilitiesCodeGenerator.cs
- GlyphingCache.cs
- ResourcePart.cs
- ScrollData.cs
- OleStrCAMarshaler.cs
- CacheDependency.cs
- SymbolMethod.cs
- FontUnitConverter.cs
- DefaultTraceListener.cs
- DescendantQuery.cs
- AccessDataSourceView.cs
- VisualStyleRenderer.cs
- SQLInt16.cs
- ProcessModuleCollection.cs
- ParameterReplacerVisitor.cs
- Double.cs
- OutputCacheSettingsSection.cs