Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DependentList.cs
- DataViewSetting.cs
- SettingsProviderCollection.cs
- DrawListViewSubItemEventArgs.cs
- GZipDecoder.cs
- ping.cs
- WindowsAuthenticationEventArgs.cs
- DataRowComparer.cs
- KeysConverter.cs
- _IPv4Address.cs
- TextBox.cs
- IdentityVerifier.cs
- AssemblyHash.cs
- Point3DConverter.cs
- OwnerDrawPropertyBag.cs
- DataServiceProviderMethods.cs
- ClientScriptManager.cs
- DecimalAnimation.cs
- SqlStream.cs
- PrintPreviewControl.cs
- ProcessThreadCollection.cs
- EraserBehavior.cs
- Point3DKeyFrameCollection.cs
- ImageMap.cs
- AttributeAction.cs
- ActivationArguments.cs
- DispatchOperationRuntime.cs
- DiscriminatorMap.cs
- PrimitiveSchema.cs
- XmlElementCollection.cs
- RoleExceptions.cs
- EntityDesignerUtils.cs
- VirtualizingStackPanel.cs
- BufferAllocator.cs
- TPLETWProvider.cs
- RectAnimationBase.cs
- LocalizationParserHooks.cs
- InvalidCommandTreeException.cs
- AttributeSetAction.cs
- SafeSecurityHandles.cs
- Html32TextWriter.cs
- TimeSpan.cs
- TypeSystem.cs
- ListControlBoundActionList.cs
- XpsException.cs
- PrintPreviewControl.cs
- XPathNavigatorKeyComparer.cs
- ItemAutomationPeer.cs
- XPathSelectionIterator.cs
- ContainerFilterService.cs
- ComplexType.cs
- Schema.cs
- ResolveNameEventArgs.cs
- CommonObjectSecurity.cs
- HtmlInputCheckBox.cs
- DispatcherTimer.cs
- SoapExtensionStream.cs
- _Connection.cs
- ApplicationServiceManager.cs
- TcpStreams.cs
- CodeGenerator.cs
- HttpCookiesSection.cs
- ClosureBinding.cs
- WindowsSlider.cs
- BindingListCollectionView.cs
- VisualTreeUtils.cs
- VisualCollection.cs
- Scalars.cs
- MethodBuilder.cs
- IRCollection.cs
- TraceInternal.cs
- URIFormatException.cs
- Enlistment.cs
- CodeIterationStatement.cs
- BuildProvider.cs
- HttpInputStream.cs
- MeasureData.cs
- DaylightTime.cs
- XPathBinder.cs
- FileDialogCustomPlaces.cs
- ComboBoxAutomationPeer.cs
- RadialGradientBrush.cs
- MiniParameterInfo.cs
- FastEncoderWindow.cs
- EntityClassGenerator.cs
- StylusSystemGestureEventArgs.cs
- Latin1Encoding.cs
- DataTemplateSelector.cs
- ToolboxComponentsCreatingEventArgs.cs
- ToolStripItemTextRenderEventArgs.cs
- Point4D.cs
- BitConverter.cs
- SettingsBindableAttribute.cs
- CodeTypeParameter.cs
- SystemIPv4InterfaceProperties.cs
- IisTraceListener.cs
- MemoryStream.cs
- DataGridViewRow.cs
- InvokePatternIdentifiers.cs
- LinkClickEvent.cs