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
- SiteMapDataSource.cs
- NamespaceInfo.cs
- SQLInt32.cs
- ProviderSettingsCollection.cs
- ClrProviderManifest.cs
- HttpFileCollectionWrapper.cs
- File.cs
- DataRowCollection.cs
- HtmlInputCheckBox.cs
- Translator.cs
- SqlNode.cs
- GregorianCalendar.cs
- LinqExpressionNormalizer.cs
- SplashScreenNativeMethods.cs
- DataListAutoFormat.cs
- MenuItemStyleCollection.cs
- SiteMembershipCondition.cs
- BitmapMetadata.cs
- ButtonChrome.cs
- EntityProviderFactory.cs
- SpinWait.cs
- CollectionBuilder.cs
- ComPlusDiagnosticTraceSchemas.cs
- OperationInfoBase.cs
- StandardTransformFactory.cs
- RSAPKCS1SignatureFormatter.cs
- HttpRuntime.cs
- BuildManagerHost.cs
- HashCryptoHandle.cs
- ObjectStorage.cs
- QueryProcessor.cs
- PerfService.cs
- ThrowHelper.cs
- ConfigurationErrorsException.cs
- CompilerWrapper.cs
- MaterialGroup.cs
- RelationalExpressions.cs
- ContentFileHelper.cs
- TraceHandlerErrorFormatter.cs
- StateWorkerRequest.cs
- GraphicsContainer.cs
- CryptoProvider.cs
- RadioButton.cs
- FontEmbeddingManager.cs
- BmpBitmapDecoder.cs
- AnonymousIdentificationModule.cs
- View.cs
- DateBoldEvent.cs
- AutomationElementCollection.cs
- DummyDataSource.cs
- ModelServiceImpl.cs
- InsufficientMemoryException.cs
- RoleGroupCollection.cs
- LocalTransaction.cs
- TextMetrics.cs
- SqlCommandBuilder.cs
- DataGridViewIntLinkedList.cs
- prompt.cs
- Int16Converter.cs
- StateMachineHistory.cs
- FormView.cs
- ISSmlParser.cs
- ExtensionSimplifierMarkupObject.cs
- SafeNativeMethodsMilCoreApi.cs
- AuthorizationSection.cs
- StackSpiller.Generated.cs
- UnsettableComboBox.cs
- ApplicationId.cs
- WebEventCodes.cs
- TimeoutValidationAttribute.cs
- ConfigurationElementCollection.cs
- CustomTypeDescriptor.cs
- LabelExpression.cs
- ObjectListDesigner.cs
- Crypto.cs
- KeyEvent.cs
- CodeDOMProvider.cs
- FlowDocumentView.cs
- FlowDocumentPage.cs
- MsmqHostedTransportManager.cs
- XmlDocumentType.cs
- FontStyle.cs
- Rect3D.cs
- ListViewInsertedEventArgs.cs
- Floater.cs
- BaseContextMenu.cs
- RemoveStoryboard.cs
- ColorTransform.cs
- FormatConvertedBitmap.cs
- TextParaClient.cs
- ISCIIEncoding.cs
- PeerNearMe.cs
- ModelItemDictionary.cs
- ButtonFlatAdapter.cs
- ObjectDataSourceView.cs
- NativeRecognizer.cs
- DataGridViewButtonCell.cs
- XMLSyntaxException.cs
- FixedFlowMap.cs
- CodeTypeReference.cs