Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / System / Windows / Input / MouseWheelEventArgs.cs / 1 / 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
- Activity.cs
- ServiceDiscoveryElement.cs
- TextCharacters.cs
- VBIdentifierName.cs
- _SecureChannel.cs
- OleDbConnection.cs
- XmlAnyElementAttribute.cs
- TextDpi.cs
- OrderedHashRepartitionStream.cs
- Executor.cs
- AttachInfo.cs
- SkinBuilder.cs
- StringUtil.cs
- SoapDocumentServiceAttribute.cs
- CalendarData.cs
- ObjectListComponentEditor.cs
- SecurityTraceRecordHelper.cs
- DbRetry.cs
- InternalConfirm.cs
- CLSCompliantAttribute.cs
- GridView.cs
- Stroke2.cs
- HierarchicalDataBoundControlAdapter.cs
- CacheVirtualItemsEvent.cs
- ObjectListDesigner.cs
- BamlResourceSerializer.cs
- FunctionQuery.cs
- CodeTypeOfExpression.cs
- ExpressionSelection.cs
- TcpWorkerProcess.cs
- CaretElement.cs
- WinInet.cs
- XomlCompilerResults.cs
- Underline.cs
- MarshalByRefObject.cs
- SimpleHandlerFactory.cs
- NotifyParentPropertyAttribute.cs
- FontStyle.cs
- ToolStripItemEventArgs.cs
- FillBehavior.cs
- Int32AnimationBase.cs
- CacheMemory.cs
- GridView.cs
- MasterPageBuildProvider.cs
- WebPartConnectionsCloseVerb.cs
- ExpressionConverter.cs
- GeneralTransformGroup.cs
- CompilationPass2TaskInternal.cs
- Bits.cs
- FileUpload.cs
- CounterSample.cs
- GridViewPageEventArgs.cs
- DataGridViewColumnCollection.cs
- SecurityPolicySection.cs
- PageWrapper.cs
- Underline.cs
- FileSecurity.cs
- TrackPoint.cs
- SecurityCriticalDataForSet.cs
- EntityViewGenerationConstants.cs
- EventHandlers.cs
- PersonalizablePropertyEntry.cs
- InternalControlCollection.cs
- BindValidationContext.cs
- HandlerBase.cs
- XmlSchemaElement.cs
- FixedFindEngine.cs
- DbReferenceCollection.cs
- PriorityQueue.cs
- KerberosSecurityTokenAuthenticator.cs
- DialogWindow.cs
- RepeatButton.cs
- Run.cs
- DrawToolTipEventArgs.cs
- SQLDecimalStorage.cs
- TriggerBase.cs
- XmlILTrace.cs
- _Semaphore.cs
- Camera.cs
- WindowsListViewItemCheckBox.cs
- ReadOnlyDictionary.cs
- DataListItemEventArgs.cs
- StickyNote.cs
- NumberEdit.cs
- XmlChildNodes.cs
- AdRotator.cs
- OracleParameterBinding.cs
- RijndaelManaged.cs
- WinCategoryAttribute.cs
- CachedRequestParams.cs
- CompModSwitches.cs
- Wizard.cs
- SaveFileDialogDesigner.cs
- storepermissionattribute.cs
- AdornerHitTestResult.cs
- UnderstoodHeaders.cs
- StateManagedCollection.cs
- NullPackagingPolicy.cs
- MethodCallTranslator.cs
- WorkflowServiceNamespace.cs