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
- EncoderNLS.cs
- DataGridTableCollection.cs
- MetadataItemSerializer.cs
- SQLDateTime.cs
- SQLDateTimeStorage.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- TableRow.cs
- SrgsSemanticInterpretationTag.cs
- RtfToken.cs
- LinqExpressionNormalizer.cs
- BufferManager.cs
- DesignerToolStripControlHost.cs
- FontStyle.cs
- HideDisabledControlAdapter.cs
- OutputScopeManager.cs
- RedirectionProxy.cs
- ReplyAdapterChannelListener.cs
- XmlWhitespace.cs
- CriticalFileToken.cs
- Bold.cs
- FieldBuilder.cs
- SoapSchemaMember.cs
- TokenBasedSetEnumerator.cs
- PageFunction.cs
- ThaiBuddhistCalendar.cs
- SqlConnectionString.cs
- Rfc4050KeyFormatter.cs
- TableLayoutSettings.cs
- embossbitmapeffect.cs
- WorkflowStateRollbackService.cs
- HtmlInputFile.cs
- Char.cs
- OverflowException.cs
- SmiRecordBuffer.cs
- FieldDescriptor.cs
- HeaderUtility.cs
- ToolStripTextBox.cs
- WebPartEditorCancelVerb.cs
- DataPointer.cs
- SqlResolver.cs
- ScriptControlManager.cs
- ButtonRenderer.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- WorkflowDesignerColors.cs
- UIPermission.cs
- ValuePattern.cs
- PeerNameRegistration.cs
- PolyQuadraticBezierSegment.cs
- Tokenizer.cs
- ToolStripManager.cs
- ProfileSettings.cs
- CompletedAsyncResult.cs
- ConsumerConnectionPointCollection.cs
- BindingCollection.cs
- HttpChannelListener.cs
- EventBindingService.cs
- FieldMetadata.cs
- StatusBarDrawItemEvent.cs
- DbProviderFactoriesConfigurationHandler.cs
- TemplateColumn.cs
- WindowsBrush.cs
- DateTimeFormat.cs
- FunctionDetailsReader.cs
- CatalogPartChrome.cs
- JavaScriptSerializer.cs
- WebPartManagerInternals.cs
- TextDecorations.cs
- Control.cs
- CollectionViewProxy.cs
- DataGridViewElement.cs
- OdbcRowUpdatingEvent.cs
- TextBoxBase.cs
- GuidelineSet.cs
- ClientRuntimeConfig.cs
- RankException.cs
- FtpCachePolicyElement.cs
- ObjectViewQueryResultData.cs
- StorageMappingItemCollection.cs
- ToolStripRenderer.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- SystemColorTracker.cs
- PathFigureCollectionConverter.cs
- TraceSection.cs
- InstancePersistenceContext.cs
- DataTrigger.cs
- TimeSpanMinutesConverter.cs
- Statements.cs
- Executor.cs
- CallContext.cs
- HtmlEmptyTagControlBuilder.cs
- Signature.cs
- WorkflowServiceHost.cs
- SchemaCompiler.cs
- ControlSerializer.cs
- Window.cs
- OleDbCommandBuilder.cs
- ExternalFile.cs
- NameValueSectionHandler.cs
- RuntimeConfig.cs
- CompareValidator.cs