Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ManagementException.cs
- ToolStripDropDownButton.cs
- ProfileSection.cs
- SchemaComplexType.cs
- HybridDictionary.cs
- MaskDesignerDialog.cs
- AssemblyInfo.cs
- DateTimeEditor.cs
- XmlKeywords.cs
- PrintingPermissionAttribute.cs
- VectorValueSerializer.cs
- GridPatternIdentifiers.cs
- CellParagraph.cs
- SolidBrush.cs
- SchemaNamespaceManager.cs
- PasswordTextContainer.cs
- RowType.cs
- SecurityKeyIdentifierClause.cs
- ContextStack.cs
- InputLanguageSource.cs
- ResourceSet.cs
- EncryptedReference.cs
- Translator.cs
- TextOutput.cs
- RowUpdatedEventArgs.cs
- Grid.cs
- SqlInternalConnection.cs
- AutoGeneratedField.cs
- ListItemCollection.cs
- RemoteDebugger.cs
- XmlNavigatorFilter.cs
- OdbcConnectionFactory.cs
- _Events.cs
- ThemeableAttribute.cs
- CustomCategoryAttribute.cs
- StateRuntime.cs
- Size3D.cs
- OpenTypeCommon.cs
- TextElementAutomationPeer.cs
- CapabilitiesSection.cs
- SrgsDocumentParser.cs
- HtmlEmptyTagControlBuilder.cs
- DataTemplate.cs
- DisplayInformation.cs
- SingleResultAttribute.cs
- InvokeWebServiceDesigner.cs
- XmlCharCheckingWriter.cs
- TrackingProfileSerializer.cs
- ItemList.cs
- XmlSchemaSimpleTypeRestriction.cs
- CfgRule.cs
- StylusCaptureWithinProperty.cs
- BitmapMetadataEnumerator.cs
- EndpointConfigContainer.cs
- DataGridViewColumnCollection.cs
- AssemblyEvidenceFactory.cs
- ValueConversionAttribute.cs
- DataGridRowHeader.cs
- PropertyEmitter.cs
- SessionPageStatePersister.cs
- XmlStringTable.cs
- PartialCachingControl.cs
- XmlIlGenerator.cs
- FastPropertyAccessor.cs
- Int16.cs
- RuleCache.cs
- HttpBrowserCapabilitiesBase.cs
- AssemblyName.cs
- NotConverter.cs
- XmlComplianceUtil.cs
- TextTreeExtractElementUndoUnit.cs
- SortAction.cs
- XPathNode.cs
- PenCursorManager.cs
- RIPEMD160Managed.cs
- Lasso.cs
- MissingMethodException.cs
- ColumnCollection.cs
- ModelPropertyDescriptor.cs
- TextFormatterContext.cs
- EncodingNLS.cs
- ShaderEffect.cs
- CalendarButton.cs
- FieldAccessException.cs
- TextEditorLists.cs
- CharKeyFrameCollection.cs
- SchemaImporterExtensionsSection.cs
- ExpressionList.cs
- RowCache.cs
- CommandSet.cs
- ScriptResourceMapping.cs
- DataSourceControl.cs
- DataGridViewRowsAddedEventArgs.cs
- ActivityXRefConverter.cs
- BufferedGraphicsContext.cs
- FacetDescription.cs
- ReadContentAsBinaryHelper.cs
- InertiaExpansionBehavior.cs
- IsolatedStorageSecurityState.cs
- MsmqIntegrationOutputChannel.cs