Condividi tramite


ICoreWindowKeyboardInput.IsKeyboardInputEnabled Proprietà

Definizione

Nota

IsKeyboardInputEnabled può essere modificato o non disponibile per le versioni dopo Windows Phone 8.1 GDR2.

Ottiene o imposta se la tastiera tocco viene visualizzata all'utente per l'input di testo.

public:
 property bool IsKeyboardInputEnabled { bool get(); void set(bool value); };
bool IsKeyboardInputEnabled();

void IsKeyboardInputEnabled(bool value);
public bool IsKeyboardInputEnabled { get; set; }
var boolean = iCoreWindowKeyboardInput.isKeyboardInputEnabled;
iCoreWindowKeyboardInput.isKeyboardInputEnabled = boolean;
Public Property IsKeyboardInputEnabled As Boolean

Valore della proprietà

Boolean

bool

True se la tastiera tocco è abilitata. In caso contrario, false.

Commenti

Se si verificano tutte le condizioni seguenti, il valore della proprietà IsKeyboardInputEnabled potrebbe non essere accurato:

    1. Si usa il buffer predefinito. Ad esempio, non si fornisce la propria tastieraInputBuffer.
    1. Aprire a livello di codice la tastiera tocco impostando IsKeyboardInputEnabled su true.
    1. L'utente preme il pulsante indietro, che chiude la tastiera tocco.
    1. Si legge IsKeyboardInputEnabled e si prevede che il valore sia false (dal momento che la tastiera tocco è stata chiusa), ma il valore è true. Per questo scenario sono disponibili più soluzioni alternative:
  • Non usare il buffer predefinito.

  • Non usare IsKeyboardInputEnabled.

  • Ascoltare l'evento Nascondi e impostare IsKeyboardInputEnabled su false.

  • Utilizzare la proprietà OccludedRect per verificare se la tastiera tocco è aperta.

Si applica a