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
- MiniConstructorInfo.cs
- PointLightBase.cs
- InteropBitmapSource.cs
- HtmlLink.cs
- COMException.cs
- FacetDescriptionElement.cs
- EnumBuilder.cs
- HttpCookie.cs
- XmlTypeMapping.cs
- MenuItem.cs
- DataPagerFieldItem.cs
- DesignerLoader.cs
- _TLSstream.cs
- SafeNativeMethods.cs
- ISFTagAndGuidCache.cs
- NamespaceListProperty.cs
- ResponseBodyWriter.cs
- DelegateSerializationHolder.cs
- HandlerWithFactory.cs
- EncodingInfo.cs
- SourceFilter.cs
- SecurityRuntime.cs
- RemoteDebugger.cs
- HwndStylusInputProvider.cs
- OleDbInfoMessageEvent.cs
- DeviceSpecific.cs
- EnumBuilder.cs
- InheritablePropertyChangeInfo.cs
- _SingleItemRequestCache.cs
- DbParameterCollection.cs
- PrimitiveType.cs
- ACL.cs
- CodeExporter.cs
- CustomWebEventKey.cs
- MasterPageBuildProvider.cs
- ListControl.cs
- StrokeNodeData.cs
- ImageCodecInfo.cs
- SystemUnicastIPAddressInformation.cs
- Camera.cs
- EntityDataSourceSelectingEventArgs.cs
- AccessibilityApplicationManager.cs
- DataGridToolTip.cs
- BamlMapTable.cs
- NumericUpDown.cs
- SemaphoreFullException.cs
- StructuredProperty.cs
- DataSourceCache.cs
- FileLogRecordEnumerator.cs
- AliasedSlot.cs
- SortKey.cs
- Constraint.cs
- DragEventArgs.cs
- ArithmeticException.cs
- ToolStripPanel.cs
- Transform.cs
- _LoggingObject.cs
- InfoCardUIAgent.cs
- GridViewSortEventArgs.cs
- HandleExceptionArgs.cs
- TraceXPathNavigator.cs
- ExpressionServices.cs
- BindingMemberInfo.cs
- ConstrainedGroup.cs
- SelectorAutomationPeer.cs
- ReachPageContentCollectionSerializerAsync.cs
- GuidelineSet.cs
- InputReferenceExpression.cs
- DataSourceNameHandler.cs
- XslCompiledTransform.cs
- WorkflowMarkupSerializationException.cs
- WindowsImpersonationContext.cs
- odbcmetadatafactory.cs
- SettingsPropertyCollection.cs
- AbsoluteQuery.cs
- SafeTimerHandle.cs
- ColumnWidthChangedEvent.cs
- InputScopeAttribute.cs
- ExpressionBuilder.cs
- SoapUnknownHeader.cs
- DesignColumnCollection.cs
- SecurityTokenInclusionMode.cs
- WebConfigurationHostFileChange.cs
- DetailsViewCommandEventArgs.cs
- IgnoreFileBuildProvider.cs
- DataProtection.cs
- HostedHttpContext.cs
- XmlSchemaSet.cs
- SaveFileDialog.cs
- XPathAncestorQuery.cs
- ExpandedWrapper.cs
- ParseHttpDate.cs
- WebPartConnectionsDisconnectVerb.cs
- EditingCommands.cs
- ObjectCacheHost.cs
- NavigationProgressEventArgs.cs
- PlainXmlDeserializer.cs
- TrimSurroundingWhitespaceAttribute.cs
- ScrollItemProviderWrapper.cs
- NotFiniteNumberException.cs