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
- CopyOfAction.cs
- CapabilitiesState.cs
- InternalSafeNativeMethods.cs
- Crypto.cs
- XPathMultyIterator.cs
- DebugView.cs
- TokenizerHelper.cs
- XmlTextReader.cs
- FormsAuthenticationCredentials.cs
- ImageBrush.cs
- DataGridHeaderBorder.cs
- Accessible.cs
- XsltConvert.cs
- MailDefinition.cs
- TraceListener.cs
- BufferedGraphics.cs
- StateElement.cs
- XamlInt32CollectionSerializer.cs
- UIPropertyMetadata.cs
- counter.cs
- HandlerBase.cs
- RegexMatchCollection.cs
- RetrieveVirtualItemEventArgs.cs
- WebPartAddingEventArgs.cs
- SpecialTypeDataContract.cs
- IsolatedStorageException.cs
- WindowsClientCredential.cs
- FileDialogCustomPlacesCollection.cs
- BitmapImage.cs
- SQLDoubleStorage.cs
- CryptoProvider.cs
- CompModSwitches.cs
- DoubleKeyFrameCollection.cs
- XPathNavigator.cs
- IsolationInterop.cs
- ScriptReferenceBase.cs
- HttpWebRequest.cs
- Italic.cs
- FunctionImportElement.cs
- ToolBarTray.cs
- FrameworkContextData.cs
- SQLBytesStorage.cs
- ConfigXmlElement.cs
- clipboard.cs
- ConfigurationValue.cs
- DesignerActionUI.cs
- SystemColorTracker.cs
- DefinitionBase.cs
- SafeSerializationManager.cs
- ExpressionVisitor.cs
- AssemblyContextControlItem.cs
- ScrollBar.cs
- RangeValidator.cs
- StringTraceRecord.cs
- DataGridViewButtonColumn.cs
- ImageListImageEditor.cs
- MatrixStack.cs
- EndpointDispatcher.cs
- WebPartEditorCancelVerb.cs
- Validator.cs
- DynamicActivityProperty.cs
- WindowsAuthenticationModule.cs
- BamlMapTable.cs
- AsyncWaitHandle.cs
- MsmqBindingMonitor.cs
- RelatedPropertyManager.cs
- SecureConversationServiceCredential.cs
- TextTreeObjectNode.cs
- Listbox.cs
- DockAndAnchorLayout.cs
- Compiler.cs
- RenderTargetBitmap.cs
- glyphs.cs
- HostingEnvironment.cs
- CreateInstanceBinder.cs
- WrapPanel.cs
- FixedNode.cs
- TableAdapterManagerHelper.cs
- FlowDocumentScrollViewer.cs
- TextUtf8RawTextWriter.cs
- KeyGestureValueSerializer.cs
- AuthenticationModuleElementCollection.cs
- PathFigure.cs
- EditingCoordinator.cs
- Frame.cs
- DataKeyArray.cs
- BufferedGraphics.cs
- SapiRecoContext.cs
- ChannelFactoryRefCache.cs
- ColumnResizeAdorner.cs
- Script.cs
- BinaryConverter.cs
- OptimizedTemplateContentHelper.cs
- SortedList.cs
- WebSysDescriptionAttribute.cs
- StreamWithDictionary.cs
- InstanceDescriptor.cs
- NotImplementedException.cs
- ReflectionServiceProvider.cs
- TokenBasedSetEnumerator.cs