Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WorkflowEventArgs.cs
- Vector3DKeyFrameCollection.cs
- MDIClient.cs
- HttpPostedFileBase.cs
- ChangePasswordAutoFormat.cs
- StyleXamlParser.cs
- KnownColorTable.cs
- ServiceOperationListItem.cs
- TextTreeTextNode.cs
- Query.cs
- ListViewSelectEventArgs.cs
- SqlBinder.cs
- Facet.cs
- MediaContext.cs
- MobileControlBuilder.cs
- PerformanceCounterPermission.cs
- DataObjectMethodAttribute.cs
- AssemblyCollection.cs
- XmlSchemaObject.cs
- AsymmetricSecurityProtocol.cs
- TargetException.cs
- ParserExtension.cs
- ComNativeDescriptor.cs
- SamlAdvice.cs
- ContextTokenTypeConverter.cs
- ADConnectionHelper.cs
- PropertyGridCommands.cs
- Table.cs
- LogReserveAndAppendState.cs
- RelationshipNavigation.cs
- EventlogProvider.cs
- DispatcherTimer.cs
- cookieexception.cs
- CachingParameterInspector.cs
- CodeBlockBuilder.cs
- PrincipalPermission.cs
- SynchronizedPool.cs
- HotSpot.cs
- DefinitionBase.cs
- HttpListenerException.cs
- Token.cs
- CodeAttributeDeclaration.cs
- SizeLimitedCache.cs
- TextElementCollection.cs
- DecimalConverter.cs
- X509Extension.cs
- FocusTracker.cs
- PointLight.cs
- AlgoModule.cs
- RootAction.cs
- ComAwareEventInfo.cs
- Propagator.Evaluator.cs
- FileSystemWatcher.cs
- FixedSOMPageConstructor.cs
- ContractUtils.cs
- ConfigurationStrings.cs
- SequenceDesignerAccessibleObject.cs
- UnsafeNativeMethods.cs
- BinaryParser.cs
- DataGridViewCellFormattingEventArgs.cs
- IApplicationTrustManager.cs
- OleDbMetaDataFactory.cs
- XamlParser.cs
- PriorityItem.cs
- WriterOutput.cs
- XsdDateTime.cs
- KeyEvent.cs
- TextEffectResolver.cs
- ConfigurationSettings.cs
- DataGridViewImageCell.cs
- ValueTypePropertyReference.cs
- _ListenerAsyncResult.cs
- Wizard.cs
- RemoteWebConfigurationHostServer.cs
- TextTreePropertyUndoUnit.cs
- DataObjectCopyingEventArgs.cs
- PropVariant.cs
- TextServicesLoader.cs
- TableRow.cs
- SqlDataReaderSmi.cs
- RoleService.cs
- HttpConfigurationContext.cs
- StorageScalarPropertyMapping.cs
- KeyToListMap.cs
- WpfGeneratedKnownTypes.cs
- DocumentApplicationJournalEntry.cs
- DataGridColumnDropSeparator.cs
- PhysicalAddress.cs
- Normalization.cs
- DeclarativeExpressionConditionDeclaration.cs
- DataSpaceManager.cs
- XhtmlBasicFormAdapter.cs
- categoryentry.cs
- BackoffTimeoutHelper.cs
- Expressions.cs
- CodeDOMUtility.cs
- WebPartCatalogAddVerb.cs
- ProjectionPath.cs
- DoubleLinkList.cs
- DockingAttribute.cs