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
- FunctionQuery.cs
- Transform.cs
- HandlerMappingMemo.cs
- StrokeCollectionConverter.cs
- SolidColorBrush.cs
- _BasicClient.cs
- DataBindingCollection.cs
- basecomparevalidator.cs
- UserUseLicenseDictionaryLoader.cs
- ToolTipAutomationPeer.cs
- COMException.cs
- StringKeyFrameCollection.cs
- SocketStream.cs
- BufferedMessageData.cs
- templategroup.cs
- AsyncOperation.cs
- Win32.cs
- GeometryGroup.cs
- DataStreams.cs
- WindowsFormsSynchronizationContext.cs
- _LocalDataStore.cs
- SigningCredentials.cs
- TraceContextRecord.cs
- HttpProxyCredentialType.cs
- SubpageParaClient.cs
- TextSpanModifier.cs
- NameValuePermission.cs
- DataFieldEditor.cs
- RequestQueryProcessor.cs
- ApplicationId.cs
- XmlSchemaObjectTable.cs
- ArgumentOutOfRangeException.cs
- oledbconnectionstring.cs
- HttpProtocolImporter.cs
- ProcessInputEventArgs.cs
- ListItemConverter.cs
- UTF8Encoding.cs
- TemplateInstanceAttribute.cs
- MetadataItem.cs
- WSSecureConversationFeb2005.cs
- DispatcherTimer.cs
- DesignerForm.cs
- PropertyPushdownHelper.cs
- RtfToXamlReader.cs
- ProfileGroupSettings.cs
- typedescriptorpermissionattribute.cs
- UserPreference.cs
- DbConnectionPoolIdentity.cs
- XmlILOptimizerVisitor.cs
- CurrentChangingEventManager.cs
- ListCollectionView.cs
- XmlDocument.cs
- SymbolUsageManager.cs
- ComponentResourceManager.cs
- ClrProviderManifest.cs
- diagnosticsswitches.cs
- FontSizeConverter.cs
- _SingleItemRequestCache.cs
- MergeLocalizationDirectives.cs
- SiteMap.cs
- DictionaryBase.cs
- TableCellsCollectionEditor.cs
- XmlResolver.cs
- Stylesheet.cs
- HMACSHA1.cs
- FixedSOMTable.cs
- SmiSettersStream.cs
- DefaultValueAttribute.cs
- DocumentApplicationJournalEntry.cs
- MouseBinding.cs
- DocumentSequenceHighlightLayer.cs
- WsdlBuildProvider.cs
- UIElement.cs
- Column.cs
- AtomContentProperty.cs
- InputScopeNameConverter.cs
- DataGridItemAutomationPeer.cs
- BindingListCollectionView.cs
- Send.cs
- SafeTimerHandle.cs
- PathGeometry.cs
- ForEachAction.cs
- SqlWriter.cs
- HMACMD5.cs
- InvalidFilterCriteriaException.cs
- RuntimeCompatibilityAttribute.cs
- HtmlInputControl.cs
- SourceLineInfo.cs
- ChannelTraceRecord.cs
- PrimitiveSchema.cs
- MD5.cs
- AndCondition.cs
- VirtualPathProvider.cs
- CodeTypeDelegate.cs
- Cloud.cs
- WmlTextBoxAdapter.cs
- ButtonChrome.cs
- ResourceIDHelper.cs
- Stylesheet.cs
- AesManaged.cs