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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DiagnosticSection.cs
- EventSourceCreationData.cs
- StylusPointProperty.cs
- TextTreeObjectNode.cs
- MatrixTransform.cs
- CodeCommentStatementCollection.cs
- TextFragmentEngine.cs
- SystemWebExtensionsSectionGroup.cs
- XmlDownloadManager.cs
- AnnotationComponentManager.cs
- _OverlappedAsyncResult.cs
- StorageEntityTypeMapping.cs
- SHA384.cs
- Metafile.cs
- ButtonChrome.cs
- UnitySerializationHolder.cs
- ReadingWritingEntityEventArgs.cs
- PathStreamGeometryContext.cs
- ActivityBindForm.cs
- RestClientProxyHandler.cs
- SafeCancelMibChangeNotify.cs
- ChildrenQuery.cs
- CompilationPass2Task.cs
- CacheEntry.cs
- grammarelement.cs
- HelpKeywordAttribute.cs
- odbcmetadatafactory.cs
- DelegatingMessage.cs
- LinkedList.cs
- GatewayIPAddressInformationCollection.cs
- _emptywebproxy.cs
- Converter.cs
- ClassicBorderDecorator.cs
- UiaCoreApi.cs
- SystemIcons.cs
- _UriTypeConverter.cs
- SQLDecimalStorage.cs
- DoubleUtil.cs
- SubclassTypeValidatorAttribute.cs
- FixedPageAutomationPeer.cs
- DecimalAnimation.cs
- NativeMethods.cs
- FusionWrap.cs
- ClientScriptManager.cs
- ParsedRoute.cs
- ToolStripPanelCell.cs
- CodeCatchClauseCollection.cs
- SafeCryptoHandles.cs
- ProcessModelInfo.cs
- EncodingInfo.cs
- XmlSerializerAssemblyAttribute.cs
- RedistVersionInfo.cs
- GeneratedView.cs
- ApplicationInfo.cs
- StreamUpgradeInitiator.cs
- DataObjectMethodAttribute.cs
- CfgArc.cs
- PixelFormats.cs
- WorkflowMarkupSerializationException.cs
- HostedTransportConfigurationBase.cs
- HtmlContainerControl.cs
- HttpRuntime.cs
- FilteredDataSetHelper.cs
- TransformerInfoCollection.cs
- PersistenceTypeAttribute.cs
- Vector3DCollectionConverter.cs
- AssertSection.cs
- UIElementPropertyUndoUnit.cs
- SqlAliasesReferenced.cs
- ToolStripCustomTypeDescriptor.cs
- HtmlAnchor.cs
- formatstringdialog.cs
- Frame.cs
- InvalidFilterCriteriaException.cs
- XmlTextReaderImplHelpers.cs
- StaticFileHandler.cs
- ValidatingPropertiesEventArgs.cs
- BitmapData.cs
- ContentType.cs
- Latin1Encoding.cs
- RoutedEvent.cs
- UnsafeNativeMethods.cs
- PatternMatchRules.cs
- XPathChildIterator.cs
- Timeline.cs
- TypeConverterValueSerializer.cs
- ScaleTransform.cs
- Splitter.cs
- PtsCache.cs
- EditingCommands.cs
- ReturnValue.cs
- DataSourceCacheDurationConverter.cs
- IdentifierService.cs
- IisHelper.cs
- DataKeyArray.cs
- ToolStripDesignerUtils.cs
- TableHeaderCell.cs
- SoapHeaders.cs
- DrawingBrush.cs
- IdentityReference.cs