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
- ObjectDisposedException.cs
- StorageBasedPackageProperties.cs
- HandleExceptionArgs.cs
- ObjectDataSourceDisposingEventArgs.cs
- WsdlInspector.cs
- WebPartCloseVerb.cs
- AttributeCollection.cs
- VariableQuery.cs
- SqlConnectionPoolProviderInfo.cs
- AbandonedMutexException.cs
- FilteredXmlReader.cs
- ZoneButton.cs
- TreeNodeCollectionEditor.cs
- XmlSchemaSimpleContentRestriction.cs
- FormsAuthenticationConfiguration.cs
- XmlLanguage.cs
- OpCopier.cs
- DataSourceExpressionCollection.cs
- ThreadStartException.cs
- XmlAttributeCollection.cs
- ScriptingAuthenticationServiceSection.cs
- EventProviderWriter.cs
- TransformerInfoCollection.cs
- DecimalStorage.cs
- UpdateManifestForBrowserApplication.cs
- HelloOperation11AsyncResult.cs
- SmtpAuthenticationManager.cs
- GatewayIPAddressInformationCollection.cs
- DbParameterCollection.cs
- RulePatternOps.cs
- HttpBufferlessInputStream.cs
- SchemaMapping.cs
- ExceptionWrapper.cs
- LogExtent.cs
- OutputBuffer.cs
- elementinformation.cs
- HtmlToClrEventProxy.cs
- BasicCommandTreeVisitor.cs
- MultipleViewPatternIdentifiers.cs
- KnownTypesHelper.cs
- NameValueConfigurationCollection.cs
- DataBoundControlActionList.cs
- AnimationLayer.cs
- EntityClientCacheKey.cs
- InkPresenterAutomationPeer.cs
- FixedSOMTextRun.cs
- DataGridViewCellValidatingEventArgs.cs
- Vector3dCollection.cs
- HebrewNumber.cs
- PasswordBox.cs
- PKCS1MaskGenerationMethod.cs
- NegotiationTokenProvider.cs
- MultiTrigger.cs
- ObjectDataSourceView.cs
- CallbackHandler.cs
- DataGridItemCollection.cs
- XmlWrappingReader.cs
- LinkTarget.cs
- ZoneIdentityPermission.cs
- Highlights.cs
- CorrelationTokenInvalidatedHandler.cs
- TextDecoration.cs
- PeerCustomResolverSettings.cs
- HighlightOverlayGlyph.cs
- Int32RectConverter.cs
- AuthenticationException.cs
- SqlCommandSet.cs
- SerializationInfo.cs
- RowVisual.cs
- Int32Collection.cs
- RbTree.cs
- CodeExporter.cs
- AnnotationElement.cs
- Latin1Encoding.cs
- MapPathBasedVirtualPathProvider.cs
- NativeWindow.cs
- ReadOnlyDictionary.cs
- MembershipUser.cs
- TransformDescriptor.cs
- SelectedGridItemChangedEvent.cs
- ViewRendering.cs
- StringBlob.cs
- DictionaryItemsCollection.cs
- AttachedPropertyMethodSelector.cs
- SoapIncludeAttribute.cs
- BindingContext.cs
- EntityContainerEmitter.cs
- M3DUtil.cs
- RemotingSurrogateSelector.cs
- X509Utils.cs
- DictionaryContent.cs
- WebPartZoneCollection.cs
- UrlAuthFailedErrorFormatter.cs
- LicFileLicenseProvider.cs
- HttpException.cs
- LZCodec.cs
- MemberAccessException.cs
- UnsafeNativeMethods.cs
- Int64Animation.cs
- WindowsListView.cs