Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IISMapPath.cs
- OdbcConnectionPoolProviderInfo.cs
- StoreItemCollection.cs
- _ConnectStream.cs
- ExpressionBinding.cs
- XPathNodeHelper.cs
- PathFigureCollectionConverter.cs
- FileSystemInfo.cs
- XamlRtfConverter.cs
- TextViewSelectionProcessor.cs
- EncodingNLS.cs
- AssemblyBuilder.cs
- EntityDataSourceDesigner.cs
- Walker.cs
- RawStylusSystemGestureInputReport.cs
- TaskHelper.cs
- DocumentSequence.cs
- ReadOnlyCollection.cs
- UnsafePeerToPeerMethods.cs
- KoreanCalendar.cs
- SinglePageViewer.cs
- ListViewItemSelectionChangedEvent.cs
- TypeReference.cs
- basevalidator.cs
- SoapInteropTypes.cs
- FormsAuthenticationEventArgs.cs
- InvokeBase.cs
- StyleHelper.cs
- GetPageCompletedEventArgs.cs
- NamespaceTable.cs
- UnsafeNativeMethods.cs
- MarkerProperties.cs
- Table.cs
- EntitySet.cs
- TableHeaderCell.cs
- MultiPageTextView.cs
- CodeMemberEvent.cs
- MetadataHelper.cs
- DataControlButton.cs
- SQLInt16.cs
- TableAdapterManagerNameHandler.cs
- GradientBrush.cs
- ArrayConverter.cs
- XDRSchema.cs
- PopupEventArgs.cs
- HttpContext.cs
- ConstNode.cs
- TextSchema.cs
- WebEventTraceProvider.cs
- DataServiceStreamProviderWrapper.cs
- XslAst.cs
- CmsInterop.cs
- Int32Storage.cs
- LexicalChunk.cs
- CodeTryCatchFinallyStatement.cs
- XmlQueryStaticData.cs
- CounterSample.cs
- BamlLocalizationDictionary.cs
- GeneralTransform3DGroup.cs
- CommunicationException.cs
- DbProviderFactory.cs
- X509ChainElement.cs
- MailSettingsSection.cs
- SqlDataSource.cs
- DataFormats.cs
- DriveNotFoundException.cs
- BaseComponentEditor.cs
- ListViewGroupCollectionEditor.cs
- SchemaImporterExtensionElement.cs
- RecognizedWordUnit.cs
- ThreadAttributes.cs
- ObjectItemConventionAssemblyLoader.cs
- LinkArea.cs
- BindingCompleteEventArgs.cs
- CurrentChangingEventManager.cs
- MsmqInputSessionChannel.cs
- CacheModeConverter.cs
- NonParentingControl.cs
- WebPartExportVerb.cs
- NamespaceCollection.cs
- FixedSOMImage.cs
- TypedReference.cs
- BindableTemplateBuilder.cs
- FigureHelper.cs
- ISFClipboardData.cs
- OperatingSystem.cs
- LinqDataSourceContextEventArgs.cs
- Environment.cs
- AssemblyBuilder.cs
- Funcletizer.cs
- ActiveXMessageFormatter.cs
- GcSettings.cs
- DocumentOrderComparer.cs
- XmlQueryRuntime.cs
- CredentialManagerDialog.cs
- TemplateInstanceAttribute.cs
- PointConverter.cs
- RuleSettings.cs
- HostingPreferredMapPath.cs
- WrappingXamlSchemaContext.cs