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
- XslCompiledTransform.cs
- EntityRecordInfo.cs
- ContentValidator.cs
- PrintingPermission.cs
- SoapFault.cs
- PowerEase.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- ProcessManager.cs
- GroupDescription.cs
- VisualStyleElement.cs
- ExpressionEditorAttribute.cs
- Pointer.cs
- CollectionViewGroupRoot.cs
- ObjectReaderCompiler.cs
- JoinElimination.cs
- SBCSCodePageEncoding.cs
- OleDbRowUpdatingEvent.cs
- ProgressBarAutomationPeer.cs
- Unit.cs
- ExplicitDiscriminatorMap.cs
- ParseElementCollection.cs
- CategoryValueConverter.cs
- CollectionView.cs
- SystemIPAddressInformation.cs
- listitem.cs
- SqlConnectionString.cs
- UdpRetransmissionSettings.cs
- FamilyMapCollection.cs
- Filter.cs
- Compiler.cs
- OLEDB_Util.cs
- RequestTimeoutManager.cs
- EnumValAlphaComparer.cs
- Win32Exception.cs
- Int64Converter.cs
- InputGestureCollection.cs
- InlineCollection.cs
- ImageDrawing.cs
- HostedBindingBehavior.cs
- AdCreatedEventArgs.cs
- CompositeActivityCodeGenerator.cs
- CodeMethodInvokeExpression.cs
- CorrelationActionMessageFilter.cs
- ZipIOLocalFileHeader.cs
- XmlSerializableReader.cs
- KeyValueSerializer.cs
- BitmapEffect.cs
- WebPartCollection.cs
- ErrorProvider.cs
- RegexTree.cs
- DropDownHolder.cs
- XslAstAnalyzer.cs
- LayoutSettings.cs
- SqlFunctionAttribute.cs
- ListViewDeletedEventArgs.cs
- ItemDragEvent.cs
- AppSettingsSection.cs
- DataGridViewDataErrorEventArgs.cs
- ListBoxChrome.cs
- Keywords.cs
- ScriptComponentDescriptor.cs
- DataBindingExpressionBuilder.cs
- XmlILAnnotation.cs
- FrameworkReadOnlyPropertyMetadata.cs
- EncodingNLS.cs
- GlyphsSerializer.cs
- SQLInt64.cs
- MultiView.cs
- IndexedString.cs
- TemplateManager.cs
- TransportConfigurationTypeElementCollection.cs
- TextModifier.cs
- ReadOnlyDictionary.cs
- DataGridPageChangedEventArgs.cs
- HtmlInputImage.cs
- StyleModeStack.cs
- XamlHostingConfiguration.cs
- SqlWorkflowInstanceStore.cs
- ResourceIDHelper.cs
- IPCCacheManager.cs
- CursorConverter.cs
- ZipIOLocalFileDataDescriptor.cs
- EpmTargetTree.cs
- ServiceChannelFactory.cs
- Matrix3D.cs
- ObjectCloneHelper.cs
- _HeaderInfo.cs
- ExpressionPrinter.cs
- IUnknownConstantAttribute.cs
- IncrementalCompileAnalyzer.cs
- ProfileServiceManager.cs
- ConfigXmlWhitespace.cs
- ConsumerConnectionPointCollection.cs
- SurrogateSelector.cs
- HMACMD5.cs
- XmlNotation.cs
- StringUtil.cs
- BasicHttpMessageSecurityElement.cs
- ToolStripComboBox.cs
- EventInfo.cs