Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LambdaCompiler.Statements.cs
- TextTreeExtractElementUndoUnit.cs
- DeclarationUpdate.cs
- TransformerTypeCollection.cs
- EncoderParameters.cs
- TypeDescriptionProvider.cs
- Pointer.cs
- ServiceOperationDetailViewControl.cs
- ResourceDisplayNameAttribute.cs
- ToolStripTextBox.cs
- DataGridCellClipboardEventArgs.cs
- ValueProviderWrapper.cs
- Normalizer.cs
- NamespaceQuery.cs
- FigureHelper.cs
- IndexerNameAttribute.cs
- HtmlHead.cs
- ProxyHelper.cs
- MD5CryptoServiceProvider.cs
- DrawingContextWalker.cs
- Emitter.cs
- XomlSerializationHelpers.cs
- TableItemProviderWrapper.cs
- Literal.cs
- MimePart.cs
- ListSortDescription.cs
- SHA256Cng.cs
- UrlMappingCollection.cs
- BevelBitmapEffect.cs
- ControlHelper.cs
- Vector3DAnimation.cs
- RightsManagementPermission.cs
- VectorAnimationUsingKeyFrames.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- WindowsGraphicsCacheManager.cs
- ClientRequest.cs
- DesignerEditorPartChrome.cs
- DecoderFallback.cs
- StringUtil.cs
- CodeGeneratorAttribute.cs
- PolyQuadraticBezierSegment.cs
- HtmlObjectListAdapter.cs
- OracleDataReader.cs
- _NegoStream.cs
- CompilerGeneratedAttribute.cs
- CountAggregationOperator.cs
- TraceUtils.cs
- SqlConnectionStringBuilder.cs
- Listbox.cs
- EntitySqlException.cs
- SEHException.cs
- Lasso.cs
- ListParagraph.cs
- WindowsListView.cs
- Baml2006ReaderFrame.cs
- GenericTypeParameterBuilder.cs
- UInt32Converter.cs
- SmtpClient.cs
- EntityDataSourceValidationException.cs
- SchemaReference.cs
- ReadOnlyMetadataCollection.cs
- HttpHandlersSection.cs
- Border.cs
- SqlColumnizer.cs
- DataObjectCopyingEventArgs.cs
- TextEffectCollection.cs
- TagPrefixAttribute.cs
- GridViewRowCollection.cs
- CapabilitiesAssignment.cs
- PerspectiveCamera.cs
- ComponentManagerBroker.cs
- TextSearch.cs
- SqlDataSourceFilteringEventArgs.cs
- DispatcherTimer.cs
- InnerItemCollectionView.cs
- ViewStateModeByIdAttribute.cs
- PropertyDescriptorComparer.cs
- DocumentSequenceHighlightLayer.cs
- PrePostDescendentsWalker.cs
- KeyedHashAlgorithm.cs
- AutoResetEvent.cs
- XmlImplementation.cs
- OleDbMetaDataFactory.cs
- MemberBinding.cs
- MiniMapControl.xaml.cs
- InvalidCardException.cs
- ChameleonKey.cs
- HttpCookiesSection.cs
- TableLayoutPanelCellPosition.cs
- PartitionResolver.cs
- MonitoringDescriptionAttribute.cs
- DataGridPageChangedEventArgs.cs
- PolyLineSegment.cs
- NamedPermissionSet.cs
- AnnotationResourceCollection.cs
- Activation.cs
- ADMembershipUser.cs
- XmlIterators.cs
- HandledEventArgs.cs
- DataSourceControl.cs