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
- shaperfactoryquerycacheentry.cs
- ComplusTypeValidator.cs
- WebSysDescriptionAttribute.cs
- MetadataPropertyAttribute.cs
- EventMappingSettings.cs
- IERequestCache.cs
- DataControlHelper.cs
- CheckBox.cs
- MissingMethodException.cs
- MenuEventArgs.cs
- AttachedAnnotationChangedEventArgs.cs
- StringUtil.cs
- XmlUnspecifiedAttribute.cs
- cookieexception.cs
- XPathChildIterator.cs
- EventProxy.cs
- InvokePattern.cs
- PropertyGeneratedEventArgs.cs
- EditorBrowsableAttribute.cs
- LeaseManager.cs
- SrgsItemList.cs
- ValidatedControlConverter.cs
- ButtonBaseAdapter.cs
- PropertiesTab.cs
- GroupQuery.cs
- selecteditemcollection.cs
- InvokePattern.cs
- IFlowDocumentViewer.cs
- DataRowView.cs
- ScrollItemPattern.cs
- M3DUtil.cs
- FreezableCollection.cs
- TextSelectionHelper.cs
- WeakKeyDictionary.cs
- PropertyChangingEventArgs.cs
- DbDataRecord.cs
- SoapMessage.cs
- WebEvents.cs
- ZoneIdentityPermission.cs
- FileChangesMonitor.cs
- ClientTargetSection.cs
- SocketException.cs
- RowBinding.cs
- IriParsingElement.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- TextProviderWrapper.cs
- GenerateTemporaryTargetAssembly.cs
- ExtensionSurface.cs
- DoubleLink.cs
- SourceInterpreter.cs
- RedirectionProxy.cs
- GlyphInfoList.cs
- IgnoreFlushAndCloseStream.cs
- HttpProxyTransportBindingElement.cs
- SystemNetHelpers.cs
- RemoteCryptoTokenProvider.cs
- COM2ComponentEditor.cs
- HttpCachePolicy.cs
- NativeBuffer.cs
- XmlConvert.cs
- TreeViewEvent.cs
- DataTableNewRowEvent.cs
- CodeTypeReferenceCollection.cs
- CodeGenerationManager.cs
- ImmutableAssemblyCacheEntry.cs
- AnnotationObservableCollection.cs
- HandlerBase.cs
- LinqDataSourceValidationException.cs
- PopupRoot.cs
- SafeNativeMethodsCLR.cs
- CaseStatement.cs
- ColumnWidthChangedEvent.cs
- AnyReturnReader.cs
- SqlClientMetaDataCollectionNames.cs
- ColorTransform.cs
- ConstraintConverter.cs
- SafeEventLogWriteHandle.cs
- KeyManager.cs
- ActivationArguments.cs
- DataGridViewEditingControlShowingEventArgs.cs
- RadialGradientBrush.cs
- SplashScreen.cs
- XmlnsCompatibleWithAttribute.cs
- SpecialFolderEnumConverter.cs
- SparseMemoryStream.cs
- SafeNativeMethodsMilCoreApi.cs
- DesignerObjectListAdapter.cs
- PointCollection.cs
- indexingfiltermarshaler.cs
- UTF7Encoding.cs
- XmlSchemaAnyAttribute.cs
- PageCatalogPartDesigner.cs
- RectAnimation.cs
- DbConnectionOptions.cs
- ChildrenQuery.cs
- DefaultValueTypeConverter.cs
- SelectionProcessor.cs
- KeyTimeConverter.cs
- ProvideValueServiceProvider.cs
- CompilerError.cs