IInputElement Interfaccia
Definizione
Stabilisce gli eventi comuni nonché le proprietà e i metodi correlati agli eventi per l’elaborazione dell'input di base mediante elementi di Windows Presentation Foundation (WPF).Establishes the common events and also the event-related properties and methods for basic input processing by Windows Presentation Foundation (WPF) elements.
public interface class IInputElement
public interface IInputElement
type IInputElement = interface
Public Interface IInputElement
- Derivato
Commenti
Importante
Sebbene questa interfaccia sia pubblica, non può essere implementata negli scenari di creazione di applicazioni o Framework.Although this interface is public, it is not intended to be implemented in application or framework-building scenarios. Questa interfaccia è pubblica a causa dei requisiti di ereditarietà per la connessione WPFWPF di core al WPFWPF Framework.This interface is public because of the inheritance requirements for connecting the WPFWPF core to the WPFWPF framework. È anche possibile usare questa interfaccia come meccanismo di cast per applicare che gli eventi e le proprietà di input provengano da un oggetto FrameworkElement o FrameworkContentElement , che può essere gestito nello stesso modello di input.You can also use this interface as a casting mechanism to enforce that the input events and properties will come from either a FrameworkElement or FrameworkContentElement, which can be handled in the same input model. Per ulteriori informazioni, vedere Cenni preliminarisull' architettura WPF e panoramica sugli elementi di base.For more information, see WPF Architecture and also see Base Elements Overview.
Proprietà
Focusable |
Ottiene o imposta un valore che indica se l'elemento può essere impostato come attivo.Gets or sets a value that indicates whether focus can be set to this element. |
IsEnabled |
Ottiene un valore che indica se questo elemento è abilitato in interfaccia utenteuser interface (UI).Gets a value that indicates whether this element is enabled in the interfaccia utenteuser interface (UI). |
IsKeyboardFocused |
Ottiene un valore che indica se l'elemento ha lo stato attivo della tastiera.Gets a value that indicates whether this element has keyboard focus. |
IsKeyboardFocusWithin |
Ottiene un valore che indica se lo stato attivo della tastiera si trova all'interno dei limiti dell'elemento o all'interno dei limiti di qualsiasi elemento visivo figlio.Gets a value that indicates whether keyboard focus is anywhere inside the element bounds, including if keyboard focus is inside the bounds of any visual child elements. |
IsMouseCaptured |
Ottiene un valore che indica se il mouse viene rilevato su questo elemento.Gets a value that indicates whether the mouse is captured to this element. |
IsMouseDirectlyOver |
Ottiene un valore che indica se il puntatore del mouse è sopra questo elemento in senso stretto in base all'hit test.Gets a value that indicates whether the mouse pointer is over this element in the strictest hit testing sense. |
IsMouseOver |
Ottiene un valore che indica se il puntatore del mouse si trova sopra questo elemento (inclusi gli elementi figlio visivi entro i limiti di questo elemento).Gets a value that indicates whether the mouse pointer is located over this element (including visual children elements that are inside its bounds). |
IsStylusCaptured |
Ottiene un valore che indica se lo stilo viene rilevato su questo elemento.Gets a value that indicates whether the stylus is captured to this element. |
IsStylusDirectlyOver |
Ottiene un valore che indica se lo stilo è sopra questo elemento in senso stretto in base all'hit test.Gets a value that indicates whether the stylus is over this element in the strictest hit testing sense. |
IsStylusOver |
Ottiene un valore che indica se lo stilo si trova sopra questo elemento (o sopra gli elementi figlio visivi entro i limiti di questo elemento).Gets a value that indicates whether the stylus is located over this element (or over visual child elements that are inside its bounds). |
Metodi
AddHandler(RoutedEvent, Delegate) |
Aggiunge un gestore eventi indirizzati per un evento indirizzato specifico a un elemento.Adds a routed event handler for a specific routed event to an element. |
CaptureMouse() |
Tenta di forzare l’acquisizione del mouse in questo elemento.Attempts to force capture of the mouse to this element. |
CaptureStylus() |
Tenta di forzare l’acquisizione dello stilo in questo elemento.Attempts to force capture of the stylus to this element. |
Focus() |
Tenta di concentrarsi la tastiera su questo elemento.Attempts to focus the keyboard on this element. |
RaiseEvent(RoutedEventArgs) |
Genera l'evento indirizzato specificato dalla proprietà RoutedEvent all’interno del RoutedEventArgs fornito.Raises the routed event that is specified by the RoutedEvent property within the provided RoutedEventArgs. |
ReleaseMouseCapture() |
Rilascia l'acquisizione del mouse, se questo elemento mantiene l'acquisizione.Releases the mouse capture, if this element holds the capture. |
ReleaseStylusCapture() |
Rilascia l'acquisizione dello stilo, se questo elemento mantiene l'acquisizione.Releases the stylus capture, if this element holds the capture. |
RemoveHandler(RoutedEvent, Delegate) |
Rimuove tutte le istanze del gestore dell'evento indirizzato specificato da questo elemento.Removes all instances of the specified routed event handler from this element. |
Eventi
GotKeyboardFocus |
Si verifica quando lo stato attivo della tastiera si trova sull'elemento.Occurs when the keyboard is focused on this element. |
GotMouseCapture |
Si verifica quando l'elemento acquisisce lo stato mouse capture.Occurs when the element captures the mouse. |
GotStylusCapture |
Si verifica quando l'elemento rileva lo stilo.Occurs when the element captures the stylus. |
KeyDown |
Si verifica alla pressione di un tasto quando lo stato attivo della tastiera si trova sull'elemento.Occurs when a key is pressed while the keyboard is focused on this element. |
KeyUp |
Si verifica al rilascio di un tasto quando lo stato attivo della tastiera si trova sull'elemento.Occurs when a key is released while the keyboard is focused on this element. |
LostKeyboardFocus |
Si verifica quando lo stato attivo della tastiera non si trova più sull'elemento.Occurs when the keyboard is no longer focused on this element. |
LostMouseCapture |
Si verifica quando l'elemento perde lo stato mouse capture.Occurs when this element loses mouse capture. |
LostStylusCapture |
Si verifica quando l'elemento non rileva più lo stilo.Occurs when this element loses stylus capture. |
MouseEnter |
Si verifica quando il puntatore del mouse viene spostato all'interno dei limiti dell'elemento.Occurs when the mouse pointer enters the bounds of this element. |
MouseLeave |
Si verifica quando il puntatore del mouse viene spostato all'esterno dei limiti dell'elemento.Occurs when the mouse pointer leaves the bounds of this element. |
MouseLeftButtonDown |
Si verifica alla pressione del pulsante sinistro del mouse quando il puntatore è posizionato sull'elemento.Occurs when the left mouse button is pressed while the mouse pointer is over the element. |
MouseLeftButtonUp |
Si verifica al rilascio del pulsante sinistro del mouse quando il puntatore è posizionato sull'elemento.Occurs when the left mouse button is released while the mouse pointer is over the element. |
MouseMove |
Si verifica in seguito allo spostamento del mouse quando il puntatore è posizionato sull'elemento.Occurs when the mouse pointer moves while the mouse pointer is over the element. |
MouseRightButtonDown |
Si verifica alla pressione del pulsante destro del mouse quando il puntatore è posizionato sull'elemento.Occurs when the right mouse button is pressed while the mouse pointer is over the element. |
MouseRightButtonUp |
Si verifica al rilascio del pulsante destro del mouse quando il puntatore è posizionato sull'elemento.Occurs when the right mouse button is released while the mouse pointer is over the element. |
MouseWheel |
Si verifica quando la rotella del mouse si sposta mentre il puntatore è sopra questo elemento.Occurs when the mouse wheel moves while the mouse pointer is over this element. |
PreviewGotKeyboardFocus |
Si verifica quando lo stato attivo della tastiera si trova sull'elemento.Occurs when the keyboard is focused on this element. |
PreviewKeyDown |
Si verifica alla pressione di un tasto quando lo stato attivo della tastiera si trova sull'elemento.Occurs when a key is pressed while the keyboard is focused on this element. |
PreviewKeyUp |
Si verifica al rilascio di un tasto quando lo stato attivo della tastiera si trova sull'elemento.Occurs when a key is released while the keyboard is focused on this element. |
PreviewLostKeyboardFocus |
Si verifica quando lo stato attivo della tastiera non si trova più sull'elemento.Occurs when the keyboard is no longer focused on this element. |
PreviewMouseLeftButtonDown |
Si verifica alla pressione del pulsante sinistro del mouse quando il puntatore è posizionato sull'elemento.Occurs when the left mouse button is pressed while the mouse pointer is over the element. |
PreviewMouseLeftButtonUp |
Si verifica al rilascio del pulsante sinistro del mouse quando il puntatore è posizionato sull'elemento.Occurs when the left mouse button is released while the mouse pointer is over the element. |
PreviewMouseMove |
Si verifica in seguito allo spostamento del mouse quando il puntatore è posizionato sull'elemento.Occurs when the mouse pointer moves while the mouse pointer is over the element. |
PreviewMouseRightButtonDown |
Si verifica alla pressione del pulsante destro del mouse quando il puntatore è posizionato sull'elemento.Occurs when the right mouse button is pressed while the mouse pointer is over the element. |
PreviewMouseRightButtonUp |
Si verifica al rilascio del pulsante destro del mouse quando il puntatore è posizionato sull'elemento.Occurs when the right mouse button is released while the mouse pointer is over the element. |
PreviewMouseWheel |
Si verifica quando la rotella del mouse si sposta mentre il puntatore è sopra questo elemento.Occurs when the mouse wheel moves while the mouse pointer is over this element. |
PreviewStylusButtonDown |
Si verifica quando il pulsante dello stilo viene premuto verso il basso mentre lo stilo è sopra questo elemento.Occurs when the stylus button is pressed down while the stylus is over this element. |
PreviewStylusButtonUp |
Si verifica quando il pulsante dello stilo viene rilasciato mentre lo stilo è sopra questo elemento.Occurs when the stylus button is released while the stylus is over this element. |
PreviewStylusDown |
Si verifica in seguito al tocco del digitalizzatore quando lo stilo è posizionato sull'elemento.Occurs when the stylus touches the digitizer while over this element. |
PreviewStylusInAirMove |
Si verifica quando lo stilo viene spostato su un elemento, ma senza toccare il digitalizzatore.Occurs when the stylus moves over an element, but without touching the digitizer. |
PreviewStylusInRange |
Si verifica quando lo stilo è sufficientemente vicino al digitalizzatore per poter essere rilevato.Occurs when the stylus is close enough to the digitizer to be detected. |
PreviewStylusMove |
Si verifica in seguito allo spostamento dello stilo quando questo è posizionato sull'elemento.Occurs when the stylus moves while the stylus is over the element. |
PreviewStylusOutOfRange |
Si verifica quando lo stilo è troppo lontano dal digitalizzatore per poter essere rilevato.Occurs when the stylus is too far from the digitizer to be detected. |
PreviewStylusSystemGesture |
Si verifica quando uno di questi numerosi movimenti dello stilo viene rilevato, ad esempio, Tap o Drag.Occurs when one of several stylus gestures are detected, for example, Tap or Drag. |
PreviewStylusUp |
Si verifica quando lo stilo viene sollevato dal digitalizzatore mentre è posizionato sull'elemento.Occurs when the stylus is raised off the digitizer while over this element. |
PreviewTextInput |
Si verifica in seguito all'input di testo per l'elemento in modo indipendente dalla periferica.Occurs when this element gets text in a device-independent manner. |
StylusButtonDown |
Si verifica quando il pulsante dello stilo viene premuto mentre lo stilo è sopra questo elemento.Occurs when the stylus button is pressed while the stylus is over this element. |
StylusButtonUp |
Si verifica quando il pulsante dello stilo viene rilasciato mentre lo stilo è sopra questo elemento.Occurs when the stylus button is released while the stylus is over this element. |
StylusDown |
Si verifica in seguito al tocco del digitalizzatore quando lo stilo è posizionato sull'elemento.Occurs when the stylus touches the digitizer while over this element. |
StylusEnter |
Si verifica quando il cursore dello stilo viene spostato all'interno dei limiti dell'elemento.Occurs when the stylus cursor enters the bounds of the element. |
StylusInAirMove |
Si verifica quando lo stilo viene spostato su un elemento, ma senza toccare il digitalizzatore.Occurs when the stylus moves over an element, but without touching the digitizer. |
StylusInRange |
Si verifica quando lo stilo è sufficientemente vicino al digitalizzatore per poter essere rilevato.Occurs when the stylus is close enough to the digitizer to be detected. |
StylusLeave |
Si verifica quando il cursore dello stilo viene spostato all'esterno dei limiti dell'elemento.Occurs when the stylus cursor leaves the bounds of the element. |
StylusMove |
Si verifica quando il cursore dello stilo viene spostato sull'elemento.Occurs when the stylus cursor moves over the element. |
StylusOutOfRange |
Si verifica quando lo stilo è troppo lontano dal digitalizzatore per poter essere rilevato.Occurs when the stylus is too far from the digitizer to be detected. |
StylusSystemGesture |
Si verifica quando uno di questi numerosi movimenti dello stilo viene rilevato, ad esempio, Tap o Drag.Occurs when one of several stylus gestures are detected, for example, Tap or Drag. |
StylusUp |
Si verifica quando lo stilo viene sollevato dal digitalizzatore mentre è posizionato sull'elemento.Occurs when the stylus is raised off the digitizer while over this element. |
TextInput |
Si verifica in seguito all'input di testo per l'elemento in modo indipendente dalla periferica.Occurs when this element gets text in a device-independent manner. |