Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGrid.cs
- PeerToPeerException.cs
- EntityDataSourceStatementEditor.cs
- ToolboxItemCollection.cs
- LinkButton.cs
- PathFigureCollection.cs
- IISUnsafeMethods.cs
- BindableAttribute.cs
- RefExpr.cs
- PackageRelationshipCollection.cs
- DataGridItemAutomationPeer.cs
- ResourceWriter.cs
- GregorianCalendar.cs
- UserPreferenceChangedEventArgs.cs
- XmlLoader.cs
- PageThemeBuildProvider.cs
- NumberFormatInfo.cs
- Int64Animation.cs
- SocketPermission.cs
- FixedHyperLink.cs
- MemberPathMap.cs
- WorkflowRuntimeSection.cs
- InvalidOperationException.cs
- StringHandle.cs
- ObjectQuery.cs
- ProviderException.cs
- GroupBox.cs
- SystemWebExtensionsSectionGroup.cs
- MarkupWriter.cs
- FaultHandlingFilter.cs
- DataGridRelationshipRow.cs
- EntityModelSchemaGenerator.cs
- BinaryObjectReader.cs
- RemotingException.cs
- TemplateInstanceAttribute.cs
- TransformPatternIdentifiers.cs
- LocatorManager.cs
- WebPartMenuStyle.cs
- IEnumerable.cs
- ToolTip.cs
- RegexMatch.cs
- GeneralTransformGroup.cs
- OciEnlistContext.cs
- ContextDataSourceView.cs
- CodeMethodReturnStatement.cs
- SystemWebExtensionsSectionGroup.cs
- CommandHelpers.cs
- CultureData.cs
- TagPrefixInfo.cs
- InputLanguageProfileNotifySink.cs
- ViewBase.cs
- ConsoleEntryPoint.cs
- MessageBox.cs
- SimpleType.cs
- HtmlLiteralTextAdapter.cs
- SaveFileDialog.cs
- DynamicPropertyReader.cs
- MemoryFailPoint.cs
- OpacityConverter.cs
- RegexGroupCollection.cs
- TrackingServices.cs
- DataGridViewRowsRemovedEventArgs.cs
- CodeMemberEvent.cs
- CryptoHelper.cs
- X509CertificateChain.cs
- xsdvalidator.cs
- Tokenizer.cs
- ListSourceHelper.cs
- WindowsListViewGroupSubsetLink.cs
- TypefaceCollection.cs
- CommentAction.cs
- HelpKeywordAttribute.cs
- DiscoveryClientReferences.cs
- PropertyTabChangedEvent.cs
- XmlSchemaRedefine.cs
- TableLayout.cs
- RowTypeElement.cs
- BufferModeSettings.cs
- ViewgenGatekeeper.cs
- ParseChildrenAsPropertiesAttribute.cs
- StartFileNameEditor.cs
- Matrix3D.cs
- UserControlParser.cs
- CustomAttributeFormatException.cs
- SharedStream.cs
- CallSiteOps.cs
- FormsAuthenticationTicket.cs
- TextBoxView.cs
- CssTextWriter.cs
- MSAAWinEventWrap.cs
- CqlIdentifiers.cs
- WebRequest.cs
- ArrayElementGridEntry.cs
- BoundConstants.cs
- Track.cs
- XmlNamespaceManager.cs
- controlskin.cs
- ProcessHostServerConfig.cs
- ResourceAssociationSet.cs
- PathNode.cs