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
- PropertyGeneratedEventArgs.cs
- UnescapedXmlDiagnosticData.cs
- ThreadExceptionDialog.cs
- OdbcUtils.cs
- SchemaElementLookUpTable.cs
- WindowsFormsHelpers.cs
- UInt64.cs
- XslCompiledTransform.cs
- DataSourceCacheDurationConverter.cs
- XmlNodeList.cs
- TypeElement.cs
- ParentQuery.cs
- BamlTreeMap.cs
- Vector3DIndependentAnimationStorage.cs
- PagesChangedEventArgs.cs
- DataGrid.cs
- RightsManagementPermission.cs
- PrinterUnitConvert.cs
- ProfilePropertySettings.cs
- MulticastIPAddressInformationCollection.cs
- ChangeDirector.cs
- EventLogReader.cs
- RandomNumberGenerator.cs
- ObjectContext.cs
- PixelFormats.cs
- NativeMethods.cs
- EventTask.cs
- Certificate.cs
- ProcessProtocolHandler.cs
- TableItemStyle.cs
- PrefixHandle.cs
- RoutedUICommand.cs
- StaticSiteMapProvider.cs
- WsdlEndpointConversionContext.cs
- HttpCachePolicyElement.cs
- DataMisalignedException.cs
- XmlTextReader.cs
- UrlAuthorizationModule.cs
- MasterPageCodeDomTreeGenerator.cs
- MenuEventArgs.cs
- Canvas.cs
- RawTextInputReport.cs
- RC2CryptoServiceProvider.cs
- TableStyle.cs
- StringPropertyBuilder.cs
- ListBindingConverter.cs
- SqlCacheDependencyDatabase.cs
- PaintEvent.cs
- tabpagecollectioneditor.cs
- Imaging.cs
- MdImport.cs
- Triplet.cs
- AuthenticationModuleElement.cs
- ObjectDataSourceDisposingEventArgs.cs
- DataBoundControl.cs
- WpfKnownMember.cs
- SafeRegistryHandle.cs
- ComponentEditorPage.cs
- BitmapSource.cs
- RootProjectionNode.cs
- InstanceDataCollectionCollection.cs
- BookmarkInfo.cs
- ServerValidateEventArgs.cs
- DetailsViewPagerRow.cs
- dsa.cs
- XmlEntityReference.cs
- Stackframe.cs
- DeflateEmulationStream.cs
- RankException.cs
- ConnectionPoint.cs
- XamlSerializationHelper.cs
- wmiutil.cs
- AssemblyAttributesGoHere.cs
- HtmlInputImage.cs
- GridViewSortEventArgs.cs
- Win32MouseDevice.cs
- OrderedDictionaryStateHelper.cs
- CodeExpressionStatement.cs
- ExternalFile.cs
- PropertyEntry.cs
- RectangleGeometry.cs
- XmlSerializerFactory.cs
- XmlArrayAttribute.cs
- UnsafeNativeMethods.cs
- Lease.cs
- odbcmetadatafactory.cs
- DSACryptoServiceProvider.cs
- FormViewPagerRow.cs
- CheckBoxList.cs
- QueryStringParameter.cs
- BlurBitmapEffect.cs
- DataTableExtensions.cs
- MimeMultiPart.cs
- BooleanConverter.cs
- SiteOfOriginPart.cs
- XmlHierarchicalDataSourceView.cs
- ProgressBarRenderer.cs
- DeobfuscatingStream.cs
- DirectoryRedirect.cs
- TemplateBindingExpressionConverter.cs