Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- XmlnsDictionary.cs
- WorkflowServiceBuildProvider.cs
- TaiwanLunisolarCalendar.cs
- WebPartManagerInternals.cs
- AuthenticationManager.cs
- Variant.cs
- XmlSchemaCollection.cs
- DataGridViewRowConverter.cs
- InputMethod.cs
- EntityClassGenerator.cs
- ButtonBaseAutomationPeer.cs
- QilFactory.cs
- XmlSchemaSimpleContent.cs
- XPathNode.cs
- HtmlButton.cs
- XamlPoint3DCollectionSerializer.cs
- SqlBinder.cs
- QueryCacheEntry.cs
- PerformanceCountersElement.cs
- OleDbMetaDataFactory.cs
- OLEDB_Util.cs
- XmlSyndicationContent.cs
- GenerateScriptTypeAttribute.cs
- PropertyChangedEventArgs.cs
- XmlSchemaObjectTable.cs
- SineEase.cs
- TypedTableHandler.cs
- FixedSOMElement.cs
- MaxMessageSizeStream.cs
- LinkTarget.cs
- ComponentEditorPage.cs
- EntityProviderFactory.cs
- ColorInterpolationModeValidation.cs
- MergePropertyDescriptor.cs
- UnsafeNativeMethods.cs
- RefreshEventArgs.cs
- QueryCacheEntry.cs
- ObjectDataSourceFilteringEventArgs.cs
- Utils.cs
- Matrix3D.cs
- IdnMapping.cs
- UserCancellationException.cs
- ExpressionCopier.cs
- WebBrowserDocumentCompletedEventHandler.cs
- indexingfiltermarshaler.cs
- CompModHelpers.cs
- ParentUndoUnit.cs
- Statements.cs
- CodePrimitiveExpression.cs
- MatchingStyle.cs
- SerTrace.cs
- AppDomainFactory.cs
- Root.cs
- Int64KeyFrameCollection.cs
- PermissionListSet.cs
- FrameworkContextData.cs
- ValidatorCollection.cs
- QilList.cs
- DateTimeConverter2.cs
- StreamGeometry.cs
- Classification.cs
- SecurityElement.cs
- XmlUrlEditor.cs
- Error.cs
- MobileCapabilities.cs
- NavigationProperty.cs
- PlanCompiler.cs
- UnaryNode.cs
- NavigatorInvalidBodyAccessException.cs
- TextRange.cs
- CompositeDesignerAccessibleObject.cs
- DataFieldEditor.cs
- XmlCountingReader.cs
- ImageSource.cs
- XmlUtil.cs
- HttpsHostedTransportConfiguration.cs
- MatrixUtil.cs
- InternalConfigSettingsFactory.cs
- WebBrowsableAttribute.cs
- ToolTip.cs
- WebColorConverter.cs
- KnownTypes.cs
- BitStack.cs
- SEHException.cs
- newinstructionaction.cs
- SchemaImporterExtensionsSection.cs
- FigureParaClient.cs
- PartialTrustVisibleAssembly.cs
- MsdtcWrapper.cs
- CopyAttributesAction.cs
- XmlLoader.cs
- SecureEnvironment.cs
- ToolStripItemTextRenderEventArgs.cs
- Int64Storage.cs
- Int64Converter.cs
- Vector3DAnimation.cs
- ProgressChangedEventArgs.cs
- BufferedGraphicsContext.cs
- PageClientProxyGenerator.cs
- EmbeddedMailObject.cs