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
![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
- DesignerAutoFormatStyle.cs
- BypassElementCollection.cs
- DeviceSpecificChoice.cs
- DataTableReaderListener.cs
- ConfigurationManagerInternal.cs
- Literal.cs
- GridViewPageEventArgs.cs
- SessionStateItemCollection.cs
- ACL.cs
- TransactionState.cs
- UniqueEventHelper.cs
- BypassElementCollection.cs
- Utils.cs
- QilStrConcatenator.cs
- SQLDoubleStorage.cs
- Update.cs
- ObjectSelectorEditor.cs
- PermissionListSet.cs
- StringExpressionSet.cs
- EntityTransaction.cs
- RedirectionProxy.cs
- RotateTransform.cs
- EntityDataSourceChangedEventArgs.cs
- ChannelFactory.cs
- TransformerInfoCollection.cs
- ListControl.cs
- AppSettingsExpressionEditor.cs
- TagMapInfo.cs
- PageResolution.cs
- ToolStripItemCollection.cs
- ValidateNames.cs
- autovalidator.cs
- QueryResponse.cs
- DependentList.cs
- DesignerDataParameter.cs
- ResourceReferenceExpressionConverter.cs
- StylusShape.cs
- ListViewCommandEventArgs.cs
- EdmFunctionAttribute.cs
- TextRangeEdit.cs
- InstanceCompleteException.cs
- X509SecurityTokenProvider.cs
- MessagingDescriptionAttribute.cs
- WorkflowServiceHostFactory.cs
- CallInfo.cs
- TextTreePropertyUndoUnit.cs
- LayoutUtils.cs
- PeerCollaboration.cs
- StdValidatorsAndConverters.cs
- Icon.cs
- PackWebRequest.cs
- HotSpotCollectionEditor.cs
- ThemeDictionaryExtension.cs
- OledbConnectionStringbuilder.cs
- AsymmetricSignatureDeformatter.cs
- StorageScalarPropertyMapping.cs
- PenThreadWorker.cs
- OptimisticConcurrencyException.cs
- ParseElementCollection.cs
- GrammarBuilderDictation.cs
- DataGridAddNewRow.cs
- Rules.cs
- AuthenticateEventArgs.cs
- PropertyValueEditor.cs
- ExecutionContext.cs
- DbDataReader.cs
- XamlStyleSerializer.cs
- SqlDeflator.cs
- TableLayoutStyle.cs
- SynchronizationContextHelper.cs
- _WebProxyDataBuilder.cs
- PageCatalogPart.cs
- WebControlsSection.cs
- Vector3DKeyFrameCollection.cs
- MappedMetaModel.cs
- Object.cs
- CompositionCommandSet.cs
- ColumnReorderedEventArgs.cs
- ObjectToken.cs
- DrawingContextDrawingContextWalker.cs
- X509InitiatorCertificateClientElement.cs
- TranslateTransform3D.cs
- UIElementIsland.cs
- ProjectionPruner.cs
- WarningException.cs
- CompilerResults.cs
- JoinGraph.cs
- StyleXamlParser.cs
- XmlnsDefinitionAttribute.cs
- Rotation3DAnimation.cs
- ToolStripItemImageRenderEventArgs.cs
- ComboBox.cs
- EnvelopedPkcs7.cs
- DataGridViewRowPostPaintEventArgs.cs
- CharConverter.cs
- InkPresenter.cs
- UIElement3D.cs
- NullableIntMinMaxAggregationOperator.cs
- ImageSource.cs
- ValueType.cs