FocusManager.IsFocusScope Properti Terlampir

Definisi

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

Berlaku untuk