Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / MouseWheelEventArgs.cs / 1305600 / 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
- CacheRequest.cs
- ColorConvertedBitmapExtension.cs
- PolygonHotSpot.cs
- RecognizedAudio.cs
- ExtendedPropertyCollection.cs
- RowSpanVector.cs
- SqlServer2KCompatibilityAnnotation.cs
- DataServiceContext.cs
- TemplateControlParser.cs
- TransformedBitmap.cs
- EventLog.cs
- FrameworkElementFactory.cs
- ControlAdapter.cs
- HwndMouseInputProvider.cs
- VisualBrush.cs
- SHA384Cng.cs
- RegularExpressionValidator.cs
- TemplateField.cs
- ThreadLocal.cs
- MissingFieldException.cs
- ClientTargetCollection.cs
- SqlCommandBuilder.cs
- DataGridItem.cs
- WindowsListViewGroup.cs
- XmlElementCollection.cs
- UseManagedPresentationBindingElement.cs
- FixUpCollection.cs
- TextTreeInsertElementUndoUnit.cs
- SecurityChannelListener.cs
- XmlSchemaExternal.cs
- SignatureHelper.cs
- TraceData.cs
- ServiceProviders.cs
- SmiXetterAccessMap.cs
- ResourceReader.cs
- SmiSettersStream.cs
- SubclassTypeValidatorAttribute.cs
- Typography.cs
- GroupStyle.cs
- StructuralCache.cs
- XmlDataProvider.cs
- WebPartsPersonalization.cs
- SynchronizationContext.cs
- CustomErrorsSection.cs
- RoleGroupCollectionEditor.cs
- ServiceModelConfigurationSection.cs
- ProfileParameter.cs
- Win32KeyboardDevice.cs
- Pen.cs
- DataDocumentXPathNavigator.cs
- ComponentEvent.cs
- TypeDelegator.cs
- TaskDesigner.cs
- XmlSchemaSet.cs
- AudioDeviceOut.cs
- QueryCursorEventArgs.cs
- ChildrenQuery.cs
- ProfileSettings.cs
- DbException.cs
- StoreItemCollection.Loader.cs
- MetadataArtifactLoaderComposite.cs
- HttpCookieCollection.cs
- ReachDocumentSequenceSerializer.cs
- PeerService.cs
- SemaphoreSecurity.cs
- RedirectionProxy.cs
- EastAsianLunisolarCalendar.cs
- RequestDescription.cs
- RegexCapture.cs
- IdentityManager.cs
- SqlPersonalizationProvider.cs
- NotSupportedException.cs
- WebControlsSection.cs
- NavigationProperty.cs
- CannotUnloadAppDomainException.cs
- BaseCAMarshaler.cs
- Converter.cs
- TransactionException.cs
- ItemCheckedEvent.cs
- ControlPropertyNameConverter.cs
- WSDualHttpBindingCollectionElement.cs
- SmtpFailedRecipientException.cs
- FileChangesMonitor.cs
- AccessibleObject.cs
- QueryHandler.cs
- CodeDirectoryCompiler.cs
- DefaultAutoFieldGenerator.cs
- SqlNamer.cs
- SectionUpdates.cs
- LineServices.cs
- ControlBuilder.cs
- AvTrace.cs
- ConditionalBranch.cs
- SQLResource.cs
- XmlMembersMapping.cs
- UnsafeNativeMethods.cs
- ResetableIterator.cs
- WebPartMenuStyle.cs
- TransformedBitmap.cs
- MDIClient.cs