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
- MsmqOutputSessionChannel.cs
- WebPartManagerDesigner.cs
- AppSettingsSection.cs
- XmlSchemaAnnotated.cs
- KeyValueSerializer.cs
- CodeMemberField.cs
- SafeNativeMethods.cs
- TablePatternIdentifiers.cs
- TextRangeBase.cs
- QuotaExceededException.cs
- RouteValueDictionary.cs
- ExeConfigurationFileMap.cs
- OracleString.cs
- COM2TypeInfoProcessor.cs
- Subset.cs
- MetaTable.cs
- PtsPage.cs
- AccessorTable.cs
- Parameter.cs
- EmptyCollection.cs
- AnnotationResourceCollection.cs
- DWriteFactory.cs
- FixedSOMPageConstructor.cs
- TypeElement.cs
- PiiTraceSource.cs
- ipaddressinformationcollection.cs
- ArraySubsetEnumerator.cs
- MessageQueueCriteria.cs
- SystemMulticastIPAddressInformation.cs
- RawContentTypeMapper.cs
- ChooseAction.cs
- DiscardableAttribute.cs
- XmlText.cs
- InfoCardTrace.cs
- IImplicitResourceProvider.cs
- PageBreakRecord.cs
- SafeNativeMethodsMilCoreApi.cs
- TypedTableBaseExtensions.cs
- URI.cs
- DocumentGridContextMenu.cs
- MemberInfoSerializationHolder.cs
- FileEnumerator.cs
- oledbconnectionstring.cs
- FileCodeGroup.cs
- SendKeys.cs
- DoubleLinkListEnumerator.cs
- ZeroOpNode.cs
- ValidationEventArgs.cs
- Selection.cs
- TypefaceMap.cs
- DynamicEntity.cs
- ModifierKeysConverter.cs
- Base64Encoding.cs
- PageBreakRecord.cs
- InvalidateEvent.cs
- SoapInteropTypes.cs
- cookie.cs
- AssemblyAssociatedContentFileAttribute.cs
- CompiledQueryCacheEntry.cs
- DCSafeHandle.cs
- WebPartHelpVerb.cs
- ProtocolElementCollection.cs
- XmlAnyAttributeAttribute.cs
- SpellerStatusTable.cs
- SqlDataSourceCommandParser.cs
- CryptoKeySecurity.cs
- TimerElapsedEvenArgs.cs
- DataRelation.cs
- DocumentSchemaValidator.cs
- ApplicationTrust.cs
- BypassElementCollection.cs
- ReadContentAsBinaryHelper.cs
- StateItem.cs
- PropVariant.cs
- UserControlDesigner.cs
- RequestStatusBarUpdateEventArgs.cs
- PersonalizableAttribute.cs
- WebPartConnectionsCloseVerb.cs
- StringFormat.cs
- ComAdminInterfaces.cs
- Native.cs
- HttpApplication.cs
- LambdaCompiler.Statements.cs
- SerializationHelper.cs
- Polyline.cs
- FtpCachePolicyElement.cs
- SafeRightsManagementPubHandle.cs
- ThreadInterruptedException.cs
- DataSysAttribute.cs
- XmlSchemaSimpleContent.cs
- SingleConverter.cs
- ProjectedSlot.cs
- FileRecordSequenceCompletedAsyncResult.cs
- ShellProvider.cs
- UserInitiatedNavigationPermission.cs
- ApplicationDirectoryMembershipCondition.cs
- TraceSection.cs
- BehaviorDragDropEventArgs.cs
- MergePropertyDescriptor.cs
- SectionRecord.cs