Exportar (0) Imprimir
Expandir todo

MouseEventArgs.XButton1 (Propiedad)

Gets the current state of the first extended mouse button.

Espacio de nombres: System.Windows.Input
Ensamblado: PresentationCore (en presentationcore.dll)
Espacio de nombres XML:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public MouseButtonState XButton1 { get; }
/** @property */
public MouseButtonState get_XButton1 ()

public function get XButton1 () : MouseButtonState

Los miembros de esta clase no se utilizan habitualmente en XAML o no se pueden utilizar en XAML.

Valor de propiedad

The current state of the first extended mouse button, which is either Pressed or Released. There is no default value.

The Mouse class provides additional properties and methods for determining the state of the mouse.

The following example prints a message if the state of the XButton1 property is Pressed.

if (e.XButton1 == MouseButtonState.Pressed)
    MessageBox.Show("The XButton1 Mouse Button is pressed");

Microsoft .NET Framework 3.0 es compatible con Windows Vista, Microsoft Windows XP SP2 y Windows Server 2003 SP1.

.NET Framework

Compatible con: 3.0

Adiciones de comunidad

© 2015 Microsoft