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
- WebEventCodes.cs
- TableLayoutSettings.cs
- MouseEvent.cs
- BindingListCollectionView.cs
- Convert.cs
- QualifierSet.cs
- TableCell.cs
- CapabilitiesState.cs
- TextSelectionProcessor.cs
- NavigatorOutput.cs
- FilterQuery.cs
- AppDomainCompilerProxy.cs
- DataGridViewImageColumn.cs
- PrivateFontCollection.cs
- SQLGuid.cs
- LazyTextWriterCreator.cs
- ProxyRpc.cs
- CheckBox.cs
- MemoryStream.cs
- DataColumn.cs
- PagerSettings.cs
- ContentAlignmentEditor.cs
- RegisteredScript.cs
- DbConnectionOptions.cs
- DataGridViewCellStyle.cs
- ExtensionDataObject.cs
- MultiBinding.cs
- WindowsFont.cs
- EqualityComparer.cs
- StateManagedCollection.cs
- HtmlTextArea.cs
- AssemblyBuilder.cs
- AsymmetricAlgorithm.cs
- WpfXamlLoader.cs
- CookieParameter.cs
- SessionStateModule.cs
- SqlAliaser.cs
- CommandEventArgs.cs
- Bind.cs
- RequestUriProcessor.cs
- DataPagerFieldCommandEventArgs.cs
- ResourcesGenerator.cs
- CroppedBitmap.cs
- DataSourceIDConverter.cs
- UnauthorizedAccessException.cs
- XmlNavigatorFilter.cs
- PersonalizationDictionary.cs
- Menu.cs
- ExceptionHelpers.cs
- TagPrefixCollection.cs
- ConditionalBranch.cs
- LogStore.cs
- Literal.cs
- Assembly.cs
- Material.cs
- HttpCacheVary.cs
- LocalizableAttribute.cs
- EncoderReplacementFallback.cs
- TextEditorDragDrop.cs
- DataBoundControlAdapter.cs
- PinnedBufferMemoryStream.cs
- SmtpTransport.cs
- CodeNamespaceImport.cs
- Thumb.cs
- MembershipPasswordException.cs
- SecurityUtils.cs
- BitArray.cs
- WindowsRegion.cs
- FileUtil.cs
- GridErrorDlg.cs
- SliderAutomationPeer.cs
- Listbox.cs
- ConfigurationSectionGroupCollection.cs
- Compensate.cs
- ExternalCalls.cs
- MatrixAnimationUsingPath.cs
- ArrayList.cs
- RotateTransform.cs
- SqlCrossApplyToCrossJoin.cs
- XPathNode.cs
- RestHandlerFactory.cs
- SystemEvents.cs
- FieldReference.cs
- TransportSecurityProtocolFactory.cs
- FormViewDeletedEventArgs.cs
- AuthenticationModuleElement.cs
- LinqExpressionNormalizer.cs
- WpfSharedXamlSchemaContext.cs
- ThicknessConverter.cs
- DefaultDialogButtons.cs
- AutoCompleteStringCollection.cs
- UnsafeNativeMethodsMilCoreApi.cs
- XmlEntityReference.cs
- ResourcesBuildProvider.cs
- AssertFilter.cs
- Matrix3DConverter.cs
- CodeGroup.cs
- WindowsSlider.cs
- oledbmetadatacolumnnames.cs
- HwndMouseInputProvider.cs