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
- XmlSchemaNotation.cs
- Geometry3D.cs
- TrackingQueryElement.cs
- Trace.cs
- LiteralControl.cs
- BoundColumn.cs
- RectConverter.cs
- iisPickupDirectory.cs
- StylusPointProperty.cs
- CompiledAction.cs
- ping.cs
- _UriTypeConverter.cs
- FormDesigner.cs
- BindingManagerDataErrorEventArgs.cs
- Expression.cs
- HashMembershipCondition.cs
- ParseNumbers.cs
- ZipIORawDataFileBlock.cs
- ServiceReference.cs
- PartManifestEntry.cs
- ResXResourceSet.cs
- ThrowHelper.cs
- DbTransaction.cs
- ConfigPathUtility.cs
- DrawListViewSubItemEventArgs.cs
- hresults.cs
- BindingSourceDesigner.cs
- BindToObject.cs
- FigureParagraph.cs
- SmiConnection.cs
- DispatchChannelSink.cs
- SortDescription.cs
- ConnectionStringsSection.cs
- SaveFileDialog.cs
- PersistenceProvider.cs
- SoapAttributeOverrides.cs
- MiniMapControl.xaml.cs
- KeyInstance.cs
- DoubleUtil.cs
- RegexCompilationInfo.cs
- ConvertersCollection.cs
- SecurityUtils.cs
- DiffuseMaterial.cs
- UInt32Converter.cs
- WebControl.cs
- EtwTrace.cs
- ITreeGenerator.cs
- SignHashRequest.cs
- ResourceAssociationTypeEnd.cs
- EmissiveMaterial.cs
- WebPartConnectionsCloseVerb.cs
- IntSecurity.cs
- ResXResourceWriter.cs
- GeneralTransform.cs
- ReadOnlyNameValueCollection.cs
- WrappingXamlSchemaContext.cs
- IncomingWebResponseContext.cs
- WebPartConnectVerb.cs
- CodeNamespace.cs
- WebPartChrome.cs
- SaveWorkflowCommand.cs
- FormsAuthenticationConfiguration.cs
- CanonicalXml.cs
- PeerNameRegistration.cs
- ExpressionSelection.cs
- XmlExpressionDumper.cs
- ConnectorRouter.cs
- ItemCollectionEditor.cs
- XmlStreamStore.cs
- Catch.cs
- embossbitmapeffect.cs
- PageTheme.cs
- StringArrayConverter.cs
- ConsoleTraceListener.cs
- XPathMessageFilterElementCollection.cs
- TextStore.cs
- WebHeaderCollection.cs
- MetaDataInfo.cs
- DataGridParentRows.cs
- Context.cs
- ExecutionContext.cs
- DesignerCommandSet.cs
- WinEventWrap.cs
- ViewCellSlot.cs
- WebErrorHandler.cs
- FileEnumerator.cs
- MDIControlStrip.cs
- MsdtcClusterUtils.cs
- PrivilegedConfigurationManager.cs
- ResourceManagerWrapper.cs
- CompareInfo.cs
- DesignerActionListCollection.cs
- HtmlInputPassword.cs
- TextPatternIdentifiers.cs
- BmpBitmapEncoder.cs
- EntityFrameworkVersions.cs
- OciEnlistContext.cs
- Renderer.cs
- ProjectionCamera.cs
- EntityDataSourceEntityTypeFilterItem.cs