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
- BaseDataList.cs
- TextSelectionProcessor.cs
- Number.cs
- StringFunctions.cs
- WmlValidatorAdapter.cs
- XsltArgumentList.cs
- ButtonBaseAutomationPeer.cs
- DataPagerCommandEventArgs.cs
- BitmapFrame.cs
- SQlBooleanStorage.cs
- ChangesetResponse.cs
- PatternMatcher.cs
- SecurityException.cs
- RectangleGeometry.cs
- EncryptedType.cs
- TableLayoutPanelCellPosition.cs
- EventDescriptorCollection.cs
- ContextMenu.cs
- JournalEntry.cs
- ChannelBuilder.cs
- Signature.cs
- DependencyPropertyHelper.cs
- ClientScriptManager.cs
- VBCodeProvider.cs
- BitmapEffectGroup.cs
- Typography.cs
- WindowsSpinner.cs
- FormViewInsertEventArgs.cs
- TimeoutConverter.cs
- RelationshipType.cs
- NativeMethods.cs
- _ConnectionGroup.cs
- DoubleAnimationUsingKeyFrames.cs
- DiscoveryClientDocuments.cs
- FrameSecurityDescriptor.cs
- RTLAwareMessageBox.cs
- basecomparevalidator.cs
- Pen.cs
- PermissionSetTriple.cs
- XPathScanner.cs
- SafeHandle.cs
- DispatchWrapper.cs
- XmlElementAttribute.cs
- _LazyAsyncResult.cs
- HtmlInputControl.cs
- SafeThemeHandle.cs
- ConnectionString.cs
- QilLoop.cs
- PatternMatcher.cs
- StaticContext.cs
- FolderNameEditor.cs
- SqlCacheDependencyDatabaseCollection.cs
- ProxyManager.cs
- DelayedRegex.cs
- Int64.cs
- future.cs
- MappableObjectManager.cs
- ResXDataNode.cs
- Metadata.cs
- InstanceDataCollectionCollection.cs
- RuntimeHelpers.cs
- CommandLibraryHelper.cs
- Positioning.cs
- PenThreadWorker.cs
- CompilerInfo.cs
- DefaultDiscoveryServiceExtension.cs
- URIFormatException.cs
- Region.cs
- DataGridViewCellFormattingEventArgs.cs
- UnmanagedMemoryAccessor.cs
- XPathParser.cs
- EpmAttributeNameBuilder.cs
- AnimatedTypeHelpers.cs
- PropertyPushdownHelper.cs
- PropertyTabAttribute.cs
- ObfuscateAssemblyAttribute.cs
- KnownColorTable.cs
- WorkflowFileItem.cs
- OrderedEnumerableRowCollection.cs
- AuthStoreRoleProvider.cs
- __Error.cs
- ResXResourceSet.cs
- SiteMapNodeCollection.cs
- ToolStripTemplateNode.cs
- AttachInfo.cs
- DataGridHelper.cs
- OleDbReferenceCollection.cs
- TextSpanModifier.cs
- IImplicitResourceProvider.cs
- RoleService.cs
- HtmlHistory.cs
- NativeMethods.cs
- ConsumerConnectionPoint.cs
- FolderLevelBuildProvider.cs
- PersistenceTypeAttribute.cs
- SessionState.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- PropertyDescriptor.cs
- Rect3DConverter.cs
- RemotingConfiguration.cs