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
- Error.cs
- URLIdentityPermission.cs
- ConfigurationValidatorBase.cs
- ConnectionsZone.cs
- HtmlLink.cs
- DataGridViewTextBoxColumn.cs
- ObjectSet.cs
- SocketManager.cs
- SpeakInfo.cs
- ExpressionPrefixAttribute.cs
- VariableModifiersHelper.cs
- XmlSchema.cs
- DbConnectionPoolIdentity.cs
- ClientSideQueueItem.cs
- XsltContext.cs
- DataGridViewEditingControlShowingEventArgs.cs
- DeclaredTypeElement.cs
- ProgramPublisher.cs
- GradientStop.cs
- PointHitTestParameters.cs
- WebServiceTypeData.cs
- HideDisabledControlAdapter.cs
- ToolStripGrip.cs
- EnumerableValidator.cs
- ListManagerBindingsCollection.cs
- ISCIIEncoding.cs
- StylusPlugin.cs
- Currency.cs
- WebPartMinimizeVerb.cs
- DoubleLink.cs
- IdentifierService.cs
- PartialCachingAttribute.cs
- Glyph.cs
- MemoryPressure.cs
- SafeProcessHandle.cs
- HtmlInputButton.cs
- LOSFormatter.cs
- AppDomain.cs
- TextDecorationUnitValidation.cs
- UnsafeNativeMethodsTablet.cs
- CompositeControl.cs
- CmsUtils.cs
- ObjectQuery_EntitySqlExtensions.cs
- SQLDateTime.cs
- VirtualPathProvider.cs
- SignedPkcs7.cs
- TypeConverter.cs
- ProviderIncompatibleException.cs
- _NTAuthentication.cs
- AttributeQuery.cs
- UpdateTranslator.cs
- ContainsRowNumberChecker.cs
- ComponentResourceKey.cs
- SqlReferenceCollection.cs
- ConnectionInterfaceCollection.cs
- BindingGraph.cs
- ProcessHostMapPath.cs
- ScrollEvent.cs
- CodeDelegateCreateExpression.cs
- StylusPointPropertyUnit.cs
- TableRowCollection.cs
- XmlSequenceWriter.cs
- nulltextcontainer.cs
- EmptyCollection.cs
- MeasurementDCInfo.cs
- RangeValueProviderWrapper.cs
- ValueConversionAttribute.cs
- TargetFrameworkAttribute.cs
- TabletDeviceInfo.cs
- Size.cs
- HtmlInputSubmit.cs
- DoubleStorage.cs
- DynamicResourceExtensionConverter.cs
- TrustLevel.cs
- TraceLog.cs
- Parallel.cs
- DateTimeConstantAttribute.cs
- BitmapMetadataBlob.cs
- PersonalizationStateInfoCollection.cs
- MethodCallConverter.cs
- PageAsyncTask.cs
- WeakEventTable.cs
- CodeChecksumPragma.cs
- OdbcReferenceCollection.cs
- CommandBindingCollection.cs
- Empty.cs
- WebSysDefaultValueAttribute.cs
- PaperSize.cs
- CompoundFileStorageReference.cs
- SoapException.cs
- BrowserPolicyValidator.cs
- ProfilePropertyMetadata.cs
- PropertyMetadata.cs
- SymbolPair.cs
- ObjectPersistData.cs
- EDesignUtil.cs
- ElementFactory.cs
- RequestStatusBarUpdateEventArgs.cs
- StyleSelector.cs
- StrokeCollectionConverter.cs