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
- Underline.cs
- ListViewSortEventArgs.cs
- Transform3D.cs
- TargetParameterCountException.cs
- BitmapCodecInfoInternal.cs
- DropDownHolder.cs
- ConfigurationProperty.cs
- FunctionParameter.cs
- ManagementOptions.cs
- Light.cs
- XmlDeclaration.cs
- Evidence.cs
- XmlSchemaGroup.cs
- TrackingServices.cs
- DoubleConverter.cs
- DbDataAdapter.cs
- WebPartConnectionsConnectVerb.cs
- LiteralTextParser.cs
- PermissionToken.cs
- CheckBoxList.cs
- WindowsListViewScroll.cs
- GatewayIPAddressInformationCollection.cs
- MappingException.cs
- PrintPageEvent.cs
- SystemUdpStatistics.cs
- SignatureToken.cs
- DoubleAnimation.cs
- EntityAdapter.cs
- _LocalDataStoreMgr.cs
- UnauthorizedAccessException.cs
- DataGridLength.cs
- UIElement3D.cs
- SyndicationCategory.cs
- EventProxy.cs
- CallbackTimeoutsBehavior.cs
- messageonlyhwndwrapper.cs
- CollectionViewSource.cs
- ToolboxComponentsCreatingEventArgs.cs
- While.cs
- SHA384Managed.cs
- DictionaryGlobals.cs
- CallContext.cs
- XmlUtil.cs
- DataServiceKeyAttribute.cs
- SerTrace.cs
- ValidationEventArgs.cs
- SqlXml.cs
- SpecialNameAttribute.cs
- DBDataPermission.cs
- Util.cs
- MergeFailedEvent.cs
- WebBaseEventKeyComparer.cs
- ActivityCodeDomReferenceService.cs
- ModifierKeysValueSerializer.cs
- TypeEnumerableViewSchema.cs
- ModuleElement.cs
- KeyMatchBuilder.cs
- CursorConverter.cs
- AtlasWeb.Designer.cs
- WizardStepCollectionEditor.cs
- TableLayoutStyle.cs
- WeakReferenceEnumerator.cs
- CompilerGlobalScopeAttribute.cs
- HttpResponse.cs
- RowCache.cs
- CompositeFontInfo.cs
- DES.cs
- SimpleTableProvider.cs
- SecurityUniqueId.cs
- X509ScopedServiceCertificateElement.cs
- PolyLineSegment.cs
- UIPermission.cs
- StorageEntityTypeMapping.cs
- SpellerError.cs
- DbConnectionClosed.cs
- GridViewSortEventArgs.cs
- TraceSection.cs
- HttpModule.cs
- XNodeNavigator.cs
- ConditionCollection.cs
- TrustManager.cs
- WinInetCache.cs
- TextServicesManager.cs
- CommentAction.cs
- serverconfig.cs
- SecurityKeyUsage.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- PolygonHotSpot.cs
- IDispatchConstantAttribute.cs
- ExtensibleClassFactory.cs
- StoreContentChangedEventArgs.cs
- ValidationHelper.cs
- CompatibleComparer.cs
- CustomErrorsSection.cs
- ValidatorUtils.cs
- DllNotFoundException.cs
- MimeTypeAttribute.cs
- ClientUrlResolverWrapper.cs
- ProtocolsConfiguration.cs
- MSHTMLHostUtil.cs