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
- ReferentialConstraintRoleElement.cs
- XmlSecureResolver.cs
- LifetimeServices.cs
- DataGridCellsPanel.cs
- LocalTransaction.cs
- EntityCollection.cs
- ProgressChangedEventArgs.cs
- GroupByExpressionRewriter.cs
- COM2PictureConverter.cs
- RenderDataDrawingContext.cs
- BindingGroup.cs
- UrlMappingsSection.cs
- OdbcTransaction.cs
- ObjectDataSourceFilteringEventArgs.cs
- PointCollectionValueSerializer.cs
- Avt.cs
- ErrorItem.cs
- GestureRecognizer.cs
- RichTextBoxAutomationPeer.cs
- CachedBitmap.cs
- HandlerFactoryWrapper.cs
- WeakReferenceEnumerator.cs
- SchemaMapping.cs
- WebPartMinimizeVerb.cs
- SqlFacetAttribute.cs
- XmlMemberMapping.cs
- AdPostCacheSubstitution.cs
- Debugger.cs
- WebPartConnectionsDisconnectVerb.cs
- DataGridViewCellStyle.cs
- ConfigUtil.cs
- Blend.cs
- XPathConvert.cs
- BaseConfigurationRecord.cs
- QuaternionRotation3D.cs
- NullRuntimeConfig.cs
- ManagedFilter.cs
- CompilationLock.cs
- SudsWriter.cs
- XhtmlMobileTextWriter.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- SqlInternalConnection.cs
- IntSecurity.cs
- QuadraticBezierSegment.cs
- TemplateApplicationHelper.cs
- sqlser.cs
- Stacktrace.cs
- BindingSource.cs
- RuleSettingsCollection.cs
- XmlTextEncoder.cs
- DataColumnMapping.cs
- SQLInt16.cs
- TextViewSelectionProcessor.cs
- XmlSerializerSection.cs
- _NetworkingPerfCounters.cs
- _FtpDataStream.cs
- ColorConvertedBitmap.cs
- CombinedGeometry.cs
- XmlWhitespace.cs
- CollectionConverter.cs
- SqlMethods.cs
- ClientFormsAuthenticationCredentials.cs
- ConfigurationValues.cs
- __TransparentProxy.cs
- GlyphingCache.cs
- DataGridTable.cs
- MaskedTextBox.cs
- NavigationWindow.cs
- DocumentOrderQuery.cs
- PlacementWorkspace.cs
- NavigationCommands.cs
- XmlFormatExtensionPrefixAttribute.cs
- OracleInfoMessageEventArgs.cs
- MemoryMappedView.cs
- Speller.cs
- DesignerToolboxInfo.cs
- GACMembershipCondition.cs
- _StreamFramer.cs
- WorkflowRuntimeService.cs
- XmlSchemaFacet.cs
- DataBindingHandlerAttribute.cs
- Bitmap.cs
- StyleSelector.cs
- StatusBarItemAutomationPeer.cs
- HuffModule.cs
- BinaryConverter.cs
- OdbcConnectionString.cs
- TraceHandlerErrorFormatter.cs
- ObjectDataSourceDesigner.cs
- MailWriter.cs
- latinshape.cs
- TextWriterTraceListener.cs
- XmlAttributeAttribute.cs
- LowerCaseStringConverter.cs
- SelectionItemProviderWrapper.cs
- ProcessModule.cs
- CollectionChangeEventArgs.cs
- DynamicEntity.cs
- CodeExporter.cs
- ScrollBarRenderer.cs