Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DataColumnPropertyDescriptor.cs
- Token.cs
- HtmlWindowCollection.cs
- HtmlTable.cs
- ValueExpressions.cs
- DataObject.cs
- HMACSHA384.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- PtsContext.cs
- SQLString.cs
- HuffModule.cs
- AppDomainProtocolHandler.cs
- DataGridViewTopRowAccessibleObject.cs
- ToolStripSplitButton.cs
- BinaryObjectWriter.cs
- AnyReturnReader.cs
- RC2CryptoServiceProvider.cs
- TableLayoutSettingsTypeConverter.cs
- RelationshipWrapper.cs
- BitmapPalettes.cs
- CounterNameConverter.cs
- ListView.cs
- ButtonColumn.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- NextPreviousPagerField.cs
- ParenthesizePropertyNameAttribute.cs
- UnsafeNativeMethods.cs
- RegionInfo.cs
- MulticastNotSupportedException.cs
- PolicyReader.cs
- ScrollChrome.cs
- ApplicationDirectory.cs
- QueryExpression.cs
- base64Transforms.cs
- EmbeddedMailObjectsCollection.cs
- InvalidWMPVersionException.cs
- GZipStream.cs
- FormViewInsertEventArgs.cs
- XmlHierarchyData.cs
- XmlSchemaException.cs
- CodeGenHelper.cs
- SchemaLookupTable.cs
- PackWebRequestFactory.cs
- DetailsViewPagerRow.cs
- TimeSpan.cs
- Token.cs
- InternalControlCollection.cs
- ReferenceTypeElement.cs
- dataSvcMapFileLoader.cs
- WebPartDisplayModeCollection.cs
- RelationshipDetailsRow.cs
- ZoneLinkButton.cs
- Vector3DKeyFrameCollection.cs
- NegatedCellConstant.cs
- Listener.cs
- SwitchAttribute.cs
- SHA512.cs
- Visitors.cs
- NotificationContext.cs
- BadImageFormatException.cs
- MethodImplAttribute.cs
- DataGridTextBox.cs
- DashStyle.cs
- RectConverter.cs
- WebPartExportVerb.cs
- LicenseManager.cs
- BooleanToVisibilityConverter.cs
- DeferredTextReference.cs
- TypeSystem.cs
- ListParagraph.cs
- CustomCredentialPolicy.cs
- TableRow.cs
- DataGridViewCellStateChangedEventArgs.cs
- DesignerActionUIService.cs
- ToolboxComponentsCreatedEventArgs.cs
- PackageProperties.cs
- DoubleAnimationUsingPath.cs
- TreeNodeBinding.cs
- DataSourceXmlAttributeAttribute.cs
- WebPartZoneCollection.cs
- DbConnectionPoolGroupProviderInfo.cs
- XamlWrappingReader.cs
- CreateUserWizardStep.cs
- ResourceSet.cs
- HttpRequest.cs
- CredentialCache.cs
- WindowsSolidBrush.cs
- ColumnMap.cs
- TrackingRecordPreFilter.cs
- PersonalizationStateQuery.cs
- DoubleLinkListEnumerator.cs
- SchemaObjectWriter.cs
- BitmapCache.cs
- VisualStyleRenderer.cs
- _ConnectOverlappedAsyncResult.cs
- ObjectListComponentEditor.cs
- ProfileGroupSettingsCollection.cs
- CopyAction.cs
- EtwTrace.cs
- LineGeometry.cs