Exportar (0) Imprimir
Expandir todo

Stylus.StylusLeave (Evento asociado)

Occurs when the stylus cursor leaves the bounds of an element.

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

See Stylus.AddStylusLeaveHandler, Stylus.RemoveStylusLeaveHandler
See Stylus.AddStylusLeaveHandler, Stylus.RemoveStylusLeaveHandler
See Stylus.AddStylusLeaveHandler, Stylus.RemoveStylusLeaveHandler
<object Stylus.StylusLeave="StylusEventHandler" .../>

The following example demonstrates how to change the color of a Button when the stylus cursor enters and leaves its bounds. This example assumes that there is a Button called button1 and that the StylusEnter and StylusLeave events are connected to the event handlers.

Brush originalColor;

void button1_StylusLeave(object sender, StylusEventArgs e)
{
    button1.Background = originalColor;
}

void button1_StylusEnter(object sender, StylusEventArgs e)
{
    originalColor = button1.Background; 
    button1.Background = Brushes.Gray;
}

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

Adiciones de comunidad

AGREGAR
Mostrar:
© 2014 Microsoft