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
- PngBitmapEncoder.cs
- WriteTimeStream.cs
- ScrollBar.cs
- BinaryObjectReader.cs
- ProtocolElementCollection.cs
- DelayDesigner.cs
- ObjectContext.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ReadonlyMessageFilter.cs
- References.cs
- OLEDB_Util.cs
- ModelServiceImpl.cs
- SqlClientWrapperSmiStream.cs
- PartialArray.cs
- RealizationContext.cs
- X509ChainPolicy.cs
- ICspAsymmetricAlgorithm.cs
- StylusLogic.cs
- XmlSchemaSubstitutionGroup.cs
- ListSortDescriptionCollection.cs
- XmlSchemaImporter.cs
- HttpException.cs
- ClientUtils.cs
- DictionaryEntry.cs
- UpdateInfo.cs
- UiaCoreApi.cs
- AssemblyCache.cs
- PolicyLevel.cs
- UpdateException.cs
- DecoderFallback.cs
- AssociatedControlConverter.cs
- Annotation.cs
- FocusWithinProperty.cs
- DbBuffer.cs
- StylusEventArgs.cs
- PrintPageEvent.cs
- DbUpdateCommandTree.cs
- KnownTypeAttribute.cs
- PersonalizationProviderHelper.cs
- EndpointAddress10.cs
- StrokeNodeData.cs
- Tuple.cs
- HttpRawResponse.cs
- TemplatePartAttribute.cs
- ELinqQueryState.cs
- ElementAction.cs
- CacheOutputQuery.cs
- WindowsPen.cs
- TriState.cs
- DataGridViewCellValueEventArgs.cs
- ContentOperations.cs
- LinqDataSourceValidationException.cs
- AssemblyEvidenceFactory.cs
- UnionCqlBlock.cs
- DispatcherEventArgs.cs
- Clipboard.cs
- CqlLexer.cs
- WindowsStatic.cs
- Resources.Designer.cs
- SerializationHelper.cs
- ListDictionaryInternal.cs
- ListControlDesigner.cs
- ConfigXmlReader.cs
- ViewStateException.cs
- BindingMemberInfo.cs
- ThrowOnMultipleAssignment.cs
- XsltContext.cs
- SchemaMapping.cs
- EventProxy.cs
- DBBindings.cs
- PickDesigner.xaml.cs
- ProcessStartInfo.cs
- ToolStripSystemRenderer.cs
- ValidatorUtils.cs
- EncodingDataItem.cs
- DataBinder.cs
- TableParagraph.cs
- RenderData.cs
- DbConnectionPoolOptions.cs
- SmiConnection.cs
- CompilerWrapper.cs
- RadioButtonAutomationPeer.cs
- DataRecordInternal.cs
- PopOutPanel.cs
- HtmlHead.cs
- BitmapMetadataBlob.cs
- Cursor.cs
- CollectionTraceRecord.cs
- DSASignatureFormatter.cs
- EntityCommandExecutionException.cs
- XpsS0ValidatingLoader.cs
- ObjectConverter.cs
- DeclaredTypeElement.cs
- FixUp.cs
- XmlElementCollection.cs
- ItemList.cs
- SliderAutomationPeer.cs
- Shape.cs
- ProgressChangedEventArgs.cs
- Debugger.cs