ContentElement.PreviewMouseDown ContentElement.PreviewMouseDown ContentElement.PreviewMouseDown ContentElement.PreviewMouseDown Event

Definición

Se produce al presionar cualquier botón del mouse mientras el puntero se encuentra sobre este elemento.Occurs when any mouse button is pressed while the pointer is over this element.

public:
 event System::Windows::Input::MouseButtonEventHandler ^ PreviewMouseDown;
public event System.Windows.Input.MouseButtonEventHandler PreviewMouseDown;
member this.PreviewMouseDown : System.Windows.Input.MouseButtonEventHandler 
Public Custom Event PreviewMouseDown As MouseButtonEventHandler 

Comentarios

Este evento crea un alias para el Mouse.PreviewMouseDown adjunta eventos para esta clase, por lo que PreviewMouseDown forma parte lista los miembros de la clase cuando ContentElement se hereda como elemento base.This event creates an alias for the Mouse.PreviewMouseDown attached event for this class, so that PreviewMouseDown is part of the class members list when ContentElement is inherited as a base element. Controladores de eventos que están asociados a la PreviewMouseDown se adjuntan eventos subyacente Mouse.PreviewMouseDown evento adjunto y reciben la misma instancia de datos de evento.Event handlers that are attached to the PreviewMouseDown event are attached to the underlying Mouse.PreviewMouseDown attached event and receive the same event data instance.

El PreviewMouseDown evento se genera a menudo junto a cualquiera PreviewMouseLeftButtonDown o PreviewMouseRightButtonDown, que corresponde a una pulsación de uno de los dos botones del mouse estándar.The PreviewMouseDown event is often raised together with either PreviewMouseLeftButtonDown or PreviewMouseRightButtonDown, which correspond to a press of one of the two standard mouse buttons. PreviewMouseLeftButtonDown y PreviewMouseRightButtonDown también son eventos enrutados, pero son eventos enrutados directos y se genera el evento específicos de los botones adecuado cuando el Mouse.PreviewMouseDown evento llega a este elemento a lo largo de la ruta del evento.PreviewMouseLeftButtonDown and PreviewMouseRightButtonDown are also routed events, but they are direct routed events, and the appropriate button-specific event is raised when the Mouse.PreviewMouseDown event reaches this element along the event route. Vea la sección Comentarios para PreviewMouseLeftButtonDown o PreviewMouseRightButtonDown.See Remarks for PreviewMouseLeftButtonDown or PreviewMouseRightButtonDown.

Información sobre eventos enrutadosRouted Event Information

Campo de identificadorIdentifier field PreviewMouseDownEvent
Estrategia de enrutamientoRouting strategy TúnelTunneling
delegadoDelegate MouseButtonEventHandler
  • El evento de propagación correspondiente es MouseDown.The corresponding bubbling event is MouseDown.

  • Invalidar OnPreviewMouseDown para implementar el control de clases para este evento en clases derivadas.Override OnPreviewMouseDown to implement class handling for this event in derived classes.

Se aplica a