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
- MaskedTextProvider.cs
- CounterSample.cs
- CTreeGenerator.cs
- NavigationProperty.cs
- ToolStripRendererSwitcher.cs
- OLEDB_Enum.cs
- WizardStepBase.cs
- FormParameter.cs
- SamlEvidence.cs
- ConnectionPointConverter.cs
- ConfigurationProperty.cs
- CompilationUnit.cs
- CatalogZoneBase.cs
- EFColumnProvider.cs
- WebPart.cs
- filewebresponse.cs
- UnitControl.cs
- TransformDescriptor.cs
- CheckBox.cs
- SQLDateTime.cs
- SQLSingleStorage.cs
- Pipe.cs
- AuthenticatedStream.cs
- BinHexEncoder.cs
- FormatSettings.cs
- PrinterResolution.cs
- RuleRefElement.cs
- LocalIdKeyIdentifierClause.cs
- precedingsibling.cs
- ClientBuildManager.cs
- SortedSetDebugView.cs
- ServiceContractListItem.cs
- TimeIntervalCollection.cs
- NumericExpr.cs
- DataKeyCollection.cs
- QuerySetOp.cs
- FixedDocumentPaginator.cs
- GeneralTransform3DGroup.cs
- ListBoxAutomationPeer.cs
- IriParsingElement.cs
- XmlSchemaValidationException.cs
- Schema.cs
- PassportIdentity.cs
- URLMembershipCondition.cs
- BatchParser.cs
- MSAAEventDispatcher.cs
- ToolStripDropTargetManager.cs
- IconConverter.cs
- DrawingDrawingContext.cs
- FlowDocumentPage.cs
- GatewayDefinition.cs
- VBIdentifierDesigner.xaml.cs
- OutArgumentConverter.cs
- CqlLexer.cs
- EncodingNLS.cs
- FontTypeConverter.cs
- GPRECTF.cs
- PointCollectionConverter.cs
- Substitution.cs
- InvalidOleVariantTypeException.cs
- SByteStorage.cs
- Soap12ProtocolReflector.cs
- ActivityInterfaces.cs
- EndpointDiscoveryMetadata11.cs
- QueryCreatedEventArgs.cs
- InteropExecutor.cs
- ExpressionQuoter.cs
- AsymmetricSignatureDeformatter.cs
- BuildProviderCollection.cs
- HtmlDocument.cs
- DbDataAdapter.cs
- ConnectionPoolManager.cs
- SerializerWriterEventHandlers.cs
- CmsInterop.cs
- DomainUpDown.cs
- SafeBitVector32.cs
- SignedPkcs7.cs
- ContentOperations.cs
- Internal.cs
- XmlSortKeyAccumulator.cs
- SqlWebEventProvider.cs
- NamedPipeAppDomainProtocolHandler.cs
- DescendantBaseQuery.cs
- WinInetCache.cs
- CounterSampleCalculator.cs
- ModelMemberCollection.cs
- DropDownList.cs
- AssociationSet.cs
- _SSPIWrapper.cs
- PageOrientation.cs
- FieldNameLookup.cs
- LocalValueEnumerator.cs
- PlatformCulture.cs
- CacheSection.cs
- ExtractedStateEntry.cs
- EdmEntityTypeAttribute.cs
- StorageTypeMapping.cs
- OrderedDictionaryStateHelper.cs
- StatusBar.cs
- HttpCapabilitiesEvaluator.cs