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
- MessageBuffer.cs
- ControlHelper.cs
- SapiGrammar.cs
- HtmlInputText.cs
- FormViewPagerRow.cs
- TcpServerChannel.cs
- DataServices.cs
- Switch.cs
- BaseTreeIterator.cs
- RemoteWebConfigurationHostServer.cs
- ObjectListCommandCollection.cs
- WebPartUtil.cs
- DownloadProgressEventArgs.cs
- CodeSubDirectoriesCollection.cs
- RuntimeHelpers.cs
- MimeTypeMapper.cs
- ChannelManager.cs
- PropertyPushdownHelper.cs
- LeftCellWrapper.cs
- TreeNodeCollectionEditor.cs
- _LocalDataStoreMgr.cs
- NamespaceDisplayAutomationPeer.cs
- Parsers.cs
- DataGridViewHeaderCell.cs
- JournalEntryStack.cs
- FreezableOperations.cs
- Configuration.cs
- TableAdapterManagerGenerator.cs
- ClientSettingsStore.cs
- MarginsConverter.cs
- MailAddress.cs
- DataGridTable.cs
- MessagePropertyDescription.cs
- ForeignKeyConstraint.cs
- PolicyVersion.cs
- ConfigViewGenerator.cs
- PackWebRequest.cs
- ExpressionConverter.cs
- RemotingConfigParser.cs
- SqlReferenceCollection.cs
- ProxyHelper.cs
- _TimerThread.cs
- CultureSpecificCharacterBufferRange.cs
- EventLogReader.cs
- MetafileHeader.cs
- TreeNodeSelectionProcessor.cs
- SystemUnicastIPAddressInformation.cs
- XmlSchemaSimpleTypeRestriction.cs
- XPathNavigatorReader.cs
- EventLogSession.cs
- PriorityBindingExpression.cs
- DataServiceProcessingPipeline.cs
- BitmapScalingModeValidation.cs
- xmlglyphRunInfo.cs
- FirstMatchCodeGroup.cs
- XmlRawWriter.cs
- Stackframe.cs
- RightsManagementResourceHelper.cs
- httpstaticobjectscollection.cs
- DPTypeDescriptorContext.cs
- Pair.cs
- TypeDependencyAttribute.cs
- SimpleHandlerBuildProvider.cs
- LinqDataSourceView.cs
- DescriptionAttribute.cs
- KeyValuePair.cs
- ToolStripMenuItem.cs
- IconConverter.cs
- HttpWebRequestElement.cs
- TypeDependencyAttribute.cs
- DecimalAnimationBase.cs
- CustomAttributeSerializer.cs
- TdsParameterSetter.cs
- XmlTypeMapping.cs
- XmlnsCompatibleWithAttribute.cs
- StreamResourceInfo.cs
- WindowsProgressbar.cs
- TableParaClient.cs
- TransformConverter.cs
- ToolStripItem.cs
- CompiledRegexRunner.cs
- PageContentAsyncResult.cs
- XmlDomTextWriter.cs
- EntityDataSourceWizardForm.cs
- coordinatorscratchpad.cs
- LowerCaseStringConverter.cs
- GlyphingCache.cs
- ClockGroup.cs
- ListBoxChrome.cs
- ServiceMemoryGates.cs
- URLIdentityPermission.cs
- FormsAuthenticationModule.cs
- SafeNativeMethodsCLR.cs
- DesignerResources.cs
- InternalsVisibleToAttribute.cs
- RelationshipEndCollection.cs
- XmlNullResolver.cs
- CompareValidator.cs
- WindowsScrollBarBits.cs
- ThemeInfoAttribute.cs