Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SrgsItemList.cs
- NeutralResourcesLanguageAttribute.cs
- PropertyValue.cs
- XmlSubtreeReader.cs
- ArgIterator.cs
- DataGridRowsPresenter.cs
- SemaphoreFullException.cs
- CryptoApi.cs
- ClientScriptManagerWrapper.cs
- Action.cs
- CurrentTimeZone.cs
- LicenseManager.cs
- MailWebEventProvider.cs
- ObjectDataSourceSelectingEventArgs.cs
- IWorkflowDebuggerService.cs
- ThreadExceptionDialog.cs
- CategoryValueConverter.cs
- BinaryReader.cs
- SerializationTrace.cs
- DataGridViewCellCancelEventArgs.cs
- ApplicationManager.cs
- DescendantOverDescendantQuery.cs
- SuppressIldasmAttribute.cs
- SelectionHighlightInfo.cs
- Constants.cs
- DataPagerFieldCollection.cs
- Size.cs
- IItemProperties.cs
- DataGridCellClipboardEventArgs.cs
- SystemKeyConverter.cs
- AspNetCacheProfileAttribute.cs
- ApplicationException.cs
- EDesignUtil.cs
- QilIterator.cs
- WindowsSysHeader.cs
- MetadataArtifactLoaderFile.cs
- AccessDataSourceWizardForm.cs
- DynamicResourceExtension.cs
- BindingContext.cs
- PriorityBinding.cs
- SubstitutionResponseElement.cs
- CrossAppDomainChannel.cs
- SymLanguageVendor.cs
- PrintPreviewControl.cs
- PositiveTimeSpanValidator.cs
- GregorianCalendar.cs
- HttpCapabilitiesEvaluator.cs
- ProgramNode.cs
- NativeCppClassAttribute.cs
- SqlConnectionPoolGroupProviderInfo.cs
- LocationUpdates.cs
- DecimalStorage.cs
- Visitors.cs
- unsafeIndexingFilterStream.cs
- ConfigurationConverterBase.cs
- ZipIOCentralDirectoryFileHeader.cs
- MenuItemBindingCollection.cs
- MessageBox.cs
- GridViewCancelEditEventArgs.cs
- X509WindowsSecurityToken.cs
- FixedSOMPage.cs
- PipelineModuleStepContainer.cs
- WindowsGrip.cs
- ApplicationInfo.cs
- FontEditor.cs
- ContentTypeSettingClientMessageFormatter.cs
- RealizedColumnsBlock.cs
- XmlAnyAttributeAttribute.cs
- CodeCatchClauseCollection.cs
- ClockGroup.cs
- FieldAccessException.cs
- TreeNodeBinding.cs
- OLEDB_Util.cs
- ObjectPersistData.cs
- ResourceCategoryAttribute.cs
- ScrollBar.cs
- EventHandlersDesigner.cs
- BuildResultCache.cs
- GeometryModel3D.cs
- ScanQueryOperator.cs
- Debug.cs
- DrawingAttributeSerializer.cs
- BinaryNode.cs
- CharacterMetricsDictionary.cs
- AsymmetricKeyExchangeDeformatter.cs
- ClientSettingsSection.cs
- XomlCompilerError.cs
- DataGridViewElement.cs
- ContainerParaClient.cs
- XhtmlConformanceSection.cs
- ScopelessEnumAttribute.cs
- ResourceReader.cs
- TogglePattern.cs
- DecimalAverageAggregationOperator.cs
- CodeVariableReferenceExpression.cs
- SolidColorBrush.cs
- XPathAncestorIterator.cs
- PopupControlService.cs
- FontDriver.cs
- ConfigurationValues.cs