Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / MouseWheelEventArgs.cs / 1305600 / MouseWheelEventArgs.cs
using System; namespace System.Windows.Input { ////// The MouseWheelEventArgs describes the state of a Mouse wheel. /// public class MouseWheelEventArgs : MouseEventArgs { ////// Initializes a new instance of the MouseWheelEventArgs class. /// /// /// The Mouse device associated with this event. /// /// /// The time when the input occured. /// /// /// How much the mouse wheel turned. /// public MouseWheelEventArgs(MouseDevice mouse, int timestamp, int delta) : base(mouse, timestamp) { _delta = delta; } ////// Read-only access to the amount the mouse wheel turned. /// public int Delta { get {return _delta;} } ////// 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) { MouseWheelEventHandler handler = (MouseWheelEventHandler) genericHandler; handler(genericTarget, this); } private static int _delta; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; namespace System.Windows.Input { ////// The MouseWheelEventArgs describes the state of a Mouse wheel. /// public class MouseWheelEventArgs : MouseEventArgs { ////// Initializes a new instance of the MouseWheelEventArgs class. /// /// /// The Mouse device associated with this event. /// /// /// The time when the input occured. /// /// /// How much the mouse wheel turned. /// public MouseWheelEventArgs(MouseDevice mouse, int timestamp, int delta) : base(mouse, timestamp) { _delta = delta; } ////// Read-only access to the amount the mouse wheel turned. /// public int Delta { get {return _delta;} } ////// 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) { MouseWheelEventHandler handler = (MouseWheelEventHandler) genericHandler; handler(genericTarget, this); } private static int _delta; } } // 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
- RecordConverter.cs
- IChannel.cs
- MD5CryptoServiceProvider.cs
- SqlAggregateChecker.cs
- FamilyMapCollection.cs
- BrowsableAttribute.cs
- DataTransferEventArgs.cs
- TokenizerHelper.cs
- FileDialog.cs
- DPAPIProtectedConfigurationProvider.cs
- GlyphTypeface.cs
- ApplicationServiceHelper.cs
- Mouse.cs
- SafeRightsManagementPubHandle.cs
- ObjectTag.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ErrorProvider.cs
- UIElement.cs
- CustomAttributeSerializer.cs
- FontStyle.cs
- AlgoModule.cs
- HttpTransportElement.cs
- HMACRIPEMD160.cs
- HttpCachePolicyElement.cs
- Set.cs
- ColorConverter.cs
- AuthenticationException.cs
- TableCellAutomationPeer.cs
- OdbcConnectionHandle.cs
- FixedSOMTable.cs
- InitializingNewItemEventArgs.cs
- NullReferenceException.cs
- UInt32Storage.cs
- JsonByteArrayDataContract.cs
- SoapSchemaImporter.cs
- CodeConditionStatement.cs
- SafeCryptoHandles.cs
- ProgressBarBrushConverter.cs
- HtmlInputSubmit.cs
- PropertyChange.cs
- InvalidComObjectException.cs
- MembershipUser.cs
- CodePageUtils.cs
- Win32Native.cs
- PageAdapter.cs
- PrintDocument.cs
- InputLanguage.cs
- WsatTransactionHeader.cs
- ActivationServices.cs
- FileReservationCollection.cs
- LineGeometry.cs
- RawAppCommandInputReport.cs
- HybridDictionary.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- KeyboardNavigation.cs
- ReflectTypeDescriptionProvider.cs
- EventLog.cs
- PenContexts.cs
- HwndAppCommandInputProvider.cs
- FlowPosition.cs
- Vector3DCollectionConverter.cs
- MetafileHeaderEmf.cs
- NoneExcludedImageIndexConverter.cs
- BasicViewGenerator.cs
- WizardPanel.cs
- OleDbCommand.cs
- BackgroundFormatInfo.cs
- ManipulationInertiaStartingEventArgs.cs
- TypeGeneratedEventArgs.cs
- StretchValidation.cs
- HttpResponseBase.cs
- EndpointDesigner.cs
- DataGridViewComboBoxColumnDesigner.cs
- Padding.cs
- CheckBoxList.cs
- DataServiceRequestException.cs
- ExpressionPrefixAttribute.cs
- DocobjHost.cs
- DataGridAddNewRow.cs
- ComponentSerializationService.cs
- XmlUTF8TextReader.cs
- CfgParser.cs
- HtmlLabelAdapter.cs
- VisualTreeHelper.cs
- CollectionViewGroup.cs
- Int32CollectionConverter.cs
- MissingMethodException.cs
- shaperfactoryquerycachekey.cs
- XPathDocumentNavigator.cs
- EventSinkHelperWriter.cs
- CharAnimationUsingKeyFrames.cs
- OpenFileDialog.cs
- GridErrorDlg.cs
- TextTreeExtractElementUndoUnit.cs
- DesignerAttributeInfo.cs
- XmlArrayItemAttributes.cs
- ScriptingSectionGroup.cs
- SerializationException.cs
- MultipartIdentifier.cs
- StartFileNameEditor.cs