Bagikan melalui


SearchBox.FocusOnKeyboardInputProperty Properti

Definisi

Mengidentifikasi properti dependensi FocusOnKeyboardInput .

public:
 static property DependencyProperty ^ FocusOnKeyboardInputProperty { DependencyProperty ^ get(); };
static DependencyProperty FocusOnKeyboardInputProperty();
public static DependencyProperty FocusOnKeyboardInputProperty { get; }
var dependencyProperty = SearchBox.focusOnKeyboardInputProperty;
Public Shared ReadOnly Property FocusOnKeyboardInputProperty As DependencyProperty

Nilai Properti

Pengidentifikasi untuk properti dependensi FocusOnKeyboardInput .

Keterangan

Catatan

Saat FocusOnKeyboardInput diatur ke true, ada masalah yang terkadang menyebabkan pengguna melihat karakter duplikat di kontrol SearchBox saat menggunakan keyboard sentuh. Anda dapat mengatasi masalah ini dengan mengikuti langkah-langkah berikut: 1. Daftar untuk peristiwa PrepareForFocusOnKeyboardInput dan gunakan penanganan aktivitas untuk mengatur FocusOnKeyboardInput ke false. 2. Daftar untuk peristiwa LostFocus dan gunakan penanganan aktivitas untuk mengatur FocusOnKeyboardInput kembali ke true.

Berlaku untuk