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
- ReflectionTypeLoadException.cs
- SqlRowUpdatingEvent.cs
- EntityDescriptor.cs
- SoapRpcServiceAttribute.cs
- PrintPreviewControl.cs
- XPathExpr.cs
- ListBindingHelper.cs
- RefreshPropertiesAttribute.cs
- TemplateInstanceAttribute.cs
- ControlHelper.cs
- UnsafeNativeMethods.cs
- SettingsPropertyNotFoundException.cs
- ResXBuildProvider.cs
- TableParagraph.cs
- XmlEnumAttribute.cs
- InkCanvasSelectionAdorner.cs
- BasicExpandProvider.cs
- WindowsFormsSynchronizationContext.cs
- ApplicationFileParser.cs
- ObservableCollection.cs
- PersonalizableTypeEntry.cs
- Pen.cs
- WebPartCatalogCloseVerb.cs
- UInt32.cs
- CodeSnippetCompileUnit.cs
- NameService.cs
- ProgressPage.cs
- MatrixUtil.cs
- FollowerQueueCreator.cs
- IItemContainerGenerator.cs
- InkCollectionBehavior.cs
- EmptyReadOnlyDictionaryInternal.cs
- SmtpException.cs
- GB18030Encoding.cs
- SelectionWordBreaker.cs
- ImpersonationContext.cs
- ResourceExpressionBuilder.cs
- TypeInformation.cs
- WebPartCloseVerb.cs
- Transform.cs
- ResourceProperty.cs
- SchemaTypeEmitter.cs
- XmlSubtreeReader.cs
- BitmapEffectDrawingContextState.cs
- SafePEFileHandle.cs
- Pen.cs
- RegisteredArrayDeclaration.cs
- ServiceDescriptionImporter.cs
- wmiprovider.cs
- ClientTargetCollection.cs
- UnmanagedHandle.cs
- FaultDescription.cs
- QuaternionAnimation.cs
- MetabaseReader.cs
- XmlUrlResolver.cs
- PropertyMapper.cs
- OutputCacheProfile.cs
- EnumValidator.cs
- PropertyTabChangedEvent.cs
- TextMetrics.cs
- PathGradientBrush.cs
- NameValueSectionHandler.cs
- HtmlWindow.cs
- MailAddressCollection.cs
- AssociatedControlConverter.cs
- _LocalDataStoreMgr.cs
- MetadataArtifactLoaderCompositeResource.cs
- HashRepartitionStream.cs
- _SSPIWrapper.cs
- ConfigurationStrings.cs
- DeclaredTypeElement.cs
- SupportsPreviewControlAttribute.cs
- ConfigPathUtility.cs
- SqlLiftWhereClauses.cs
- StateRuntime.cs
- DataTableClearEvent.cs
- SqlHelper.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- DataContractSerializerSection.cs
- SamlAttribute.cs
- XPathBuilder.cs
- SettingsBase.cs
- HostExecutionContextManager.cs
- DefaultParameterValueAttribute.cs
- X509Utils.cs
- FileFormatException.cs
- ConfigurationSectionCollection.cs
- Message.cs
- SafeHandles.cs
- Delegate.cs
- Int32EqualityComparer.cs
- OleDbParameterCollection.cs
- ParseHttpDate.cs
- EncodingTable.cs
- AspCompat.cs
- GridItem.cs
- DoubleLinkListEnumerator.cs
- DateTime.cs
- Bits.cs
- OdbcParameterCollection.cs