FocusManager.IsFocusScope Properti Terlampir
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Menentukan apakah elemen yang dilampirkan properti ini adalah cakupan fokus.
see GetIsFocusScope, and SetIsFocusScope
see GetIsFocusScope, and SetIsFocusScope
see GetIsFocusScope, and SetIsFocusScope
Contoh
Contoh berikut membuat StackPanel cakupan fokus.
<StackPanel Name="focusScope1"
FocusManager.IsFocusScope="True"
Height="200" Width="200">
<Button Name="button1" Height="50" Width="50"/>
<Button Name="button2" Height="50" Width="50"/>
</StackPanel>
Keterangan
Elemen cakupan fokus adalah elemen kontainer yang menjaga agar FocusManager.FocusedElement tetap terlacak dalam cakupannya. Secara default, Window kelas adalah cakupan fokus seperti kelas Menu, , ContextMenudan ToolBar . Elemen yang merupakan cakupan fokus telah IsFocusScope diatur ke true.
Untuk informasi selengkapnya tentang fokus, fokus keyboard, dan fokus logis, lihat Gambaran Umum Input.
Informasi Properti Dependensi
| Item | Nilai |
|---|---|
| Bidang pengidentifikasi | IsFocusScopeProperty |
Properti metadata diatur ke true |
Tidak |