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
- LookupNode.cs
- OutputCacheProfile.cs
- ManualWorkflowSchedulerService.cs
- DesignTimeSiteMapProvider.cs
- SafeMILHandle.cs
- MediaEntryAttribute.cs
- ListViewUpdateEventArgs.cs
- SByte.cs
- RegexCaptureCollection.cs
- UTF8Encoding.cs
- ButtonPopupAdapter.cs
- ContextConfiguration.cs
- Rect3DConverter.cs
- CodeExporter.cs
- DefaultEventAttribute.cs
- SamlEvidence.cs
- XmlSchemaObject.cs
- NonBatchDirectoryCompiler.cs
- DataGrid.cs
- SortExpressionBuilder.cs
- HitTestParameters3D.cs
- Misc.cs
- RewritingPass.cs
- ConfigXmlComment.cs
- TypeBuilder.cs
- StringResourceManager.cs
- XmlValidatingReaderImpl.cs
- VideoDrawing.cs
- ImageMap.cs
- Console.cs
- FromRequest.cs
- WriteableBitmap.cs
- SettingsBindableAttribute.cs
- ParseNumbers.cs
- WebConfigurationManager.cs
- DataGridViewCellStyleConverter.cs
- SimpleApplicationHost.cs
- SoundPlayer.cs
- StorageEntitySetMapping.cs
- HandlerWithFactory.cs
- ListViewDeletedEventArgs.cs
- WindowsEditBoxRange.cs
- ToolbarAUtomationPeer.cs
- DataGridViewTextBoxCell.cs
- Filter.cs
- XpsResource.cs
- X509RawDataKeyIdentifierClause.cs
- StrongNameHelpers.cs
- EnumBuilder.cs
- XmlMapping.cs
- ResolveNameEventArgs.cs
- HierarchicalDataBoundControlAdapter.cs
- ObjectDataSourceView.cs
- ServiceDeploymentInfo.cs
- DbDataRecord.cs
- IndicShape.cs
- Guid.cs
- ArgumentOutOfRangeException.cs
- EmissiveMaterial.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- DelegateTypeInfo.cs
- UInt32Converter.cs
- DesignerProperties.cs
- Funcletizer.cs
- ConfigurationSchemaErrors.cs
- DataGridClipboardCellContent.cs
- X509CertificateCollection.cs
- CompModSwitches.cs
- ComponentChangingEvent.cs
- FuncTypeConverter.cs
- COM2PropertyDescriptor.cs
- CodeAccessSecurityEngine.cs
- DbMetaDataColumnNames.cs
- HttpCookie.cs
- XmlILTrace.cs
- HtmlInputText.cs
- GridViewDeleteEventArgs.cs
- HierarchicalDataTemplate.cs
- XmlChoiceIdentifierAttribute.cs
- _CacheStreams.cs
- LoadMessageLogger.cs
- Splitter.cs
- FormsAuthenticationUserCollection.cs
- XmlNodeList.cs
- EventItfInfo.cs
- PenThread.cs
- PropertyNames.cs
- PermissionToken.cs
- TextTreeFixupNode.cs
- DatePicker.cs
- ExtendedProperty.cs
- RectangleHotSpot.cs
- _Events.cs
- CodeMemberProperty.cs
- TextRunTypographyProperties.cs
- WebPartEditVerb.cs
- AbstractDataSvcMapFileLoader.cs
- ListChunk.cs
- BindingListCollectionView.cs