|
Este artículo proviene de un motor de traducción automática. Mueva el puntero sobre las frases del artículo para ver el texto original. Más información.
|
Traducción
Original
|
MouseWheelEventArgs (Clase)
System.EventArgs
System.Windows.RoutedEventArgs
System.Windows.Input.InputEventArgs
System.Windows.Input.MouseEventArgs
System.Windows.Input.MouseWheelEventArgs
Espacio de nombres: System.Windows.Input
Ensamblado: PresentationCore (en PresentationCore.dll)
El tipo MouseWheelEventArgs expone los siguientes miembros.
| Nombre | Descripción | |
|---|---|---|
![]() | MouseWheelEventArgs |
| Nombre | Descripción | |
|---|---|---|
![]() | Delta | |
![]() | Device | |
![]() | Handled | |
![]() | LeftButton | |
![]() | MiddleButton | |
![]() | MouseDevice | |
![]() | OriginalSource | |
![]() | RightButton | |
![]() | RoutedEvent | |
![]() | Source | |
![]() | StylusDevice | |
![]() | Timestamp | |
![]() | XButton1 | |
![]() | XButton2 |
| Nombre | Descripción | |
|---|---|---|
![]() | Equals(Object) | |
![]() | Finalize | |
![]() | GetHashCode | |
![]() | GetPosition | |
![]() | GetType | |
![]() | InvokeEventHandler | |
![]() | MemberwiseClone | |
![]() | OnSetSource | |
![]() | ToString |
Mouse.MouseWheel (evento adjunto) Mouse.PreviewMouseWheel (evento adjunto)
// Moves the TextBox named box when the mouse wheel is rotated. // The TextBox is on a Canvas named MainCanvas. private void MouseWheelHandler(object sender, MouseWheelEventArgs e) { // If the mouse wheel delta is positive, move the box up. if (e.Delta > 0) { if (Canvas.GetTop(box) >= 1) { Canvas.SetTop(box, Canvas.GetTop(box) - 1); } } // If the mouse wheel delta is negative, move the box down. if (e.Delta < 0) { if ((Canvas.GetTop(box) + box.Height) <= (MainCanvas.Height)) { Canvas.SetTop(box, Canvas.GetTop(box) + 1); } } }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (no se admite el rol Server Core), Windows Server 2008 R2 (se admite el rol Server Core con SP1 o versiones posteriores; no se admite Itanium)
.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.
