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
- AttributeTableBuilder.cs
- ProvidersHelper.cs
- SupportingTokenChannel.cs
- SafeSecurityHandles.cs
- SecureUICommand.cs
- ImmComposition.cs
- RuleInfoComparer.cs
- RequestQueryProcessor.cs
- TextTreeExtractElementUndoUnit.cs
- SEHException.cs
- ToolStripLocationCancelEventArgs.cs
- FontNameEditor.cs
- FormatConvertedBitmap.cs
- ContentElementCollection.cs
- DataControlLinkButton.cs
- XmlElementAttributes.cs
- WinEventHandler.cs
- JoinGraph.cs
- DependencyPropertyKind.cs
- MbpInfo.cs
- DefaultTypeArgumentAttribute.cs
- HostSecurityManager.cs
- CSharpCodeProvider.cs
- DES.cs
- EntitySqlQueryCacheEntry.cs
- IntranetCredentialPolicy.cs
- DefaultProxySection.cs
- ProviderBase.cs
- ReturnEventArgs.cs
- VirtualPath.cs
- XamlNamespaceHelper.cs
- PaintEvent.cs
- PrtCap_Reader.cs
- DBSqlParserTable.cs
- AxImporter.cs
- BooleanAnimationBase.cs
- ImageFormatConverter.cs
- ControlBindingsCollection.cs
- DocumentSchemaValidator.cs
- ThicknessAnimationBase.cs
- DocumentViewerBase.cs
- WindowHideOrCloseTracker.cs
- RecordManager.cs
- GridSplitter.cs
- TextEditorLists.cs
- DataGridRowHeaderAutomationPeer.cs
- ChannelAcceptor.cs
- PointLight.cs
- TextParaLineResult.cs
- TransportSecurityHelpers.cs
- ListMarkerLine.cs
- ProviderIncompatibleException.cs
- DeferredReference.cs
- XmlException.cs
- CompositeKey.cs
- ParserStreamGeometryContext.cs
- ChildTable.cs
- ManagedIStream.cs
- SamlSubject.cs
- ExpressionEvaluator.cs
- PropertyGeneratedEventArgs.cs
- RenderDataDrawingContext.cs
- DataTransferEventArgs.cs
- TextAction.cs
- WebPartVerbCollection.cs
- EntityType.cs
- EpmSourcePathSegment.cs
- BamlLocalizabilityResolver.cs
- TriState.cs
- BamlTreeUpdater.cs
- EntitySqlQueryCacheKey.cs
- SortedSetDebugView.cs
- SupportingTokenListenerFactory.cs
- DiscoveryClientElement.cs
- HijriCalendar.cs
- ExpandableObjectConverter.cs
- SoapFaultCodes.cs
- CodeGen.cs
- DashStyle.cs
- AuthorizationRule.cs
- MarshalByValueComponent.cs
- ComNativeDescriptor.cs
- UserNamePasswordValidator.cs
- AxisAngleRotation3D.cs
- MethodBuilderInstantiation.cs
- DataRelationCollection.cs
- CookieParameter.cs
- XMLSyntaxException.cs
- XmlSchemaNotation.cs
- ThreadExceptionEvent.cs
- precedingquery.cs
- DataColumnCollection.cs
- RoutedCommand.cs
- BaseCollection.cs
- RegexBoyerMoore.cs
- SmiGettersStream.cs
- NumberSubstitution.cs
- BitVector32.cs
- ShaperBuffers.cs
- HttpInputStream.cs