Expander.ExpandDirection Properti
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.
Mendapatkan atau mengatur arah di Expander mana jendela konten terbuka.
public:
property System::Windows::Controls::ExpandDirection ExpandDirection { System::Windows::Controls::ExpandDirection get(); void set(System::Windows::Controls::ExpandDirection value); };
[System.ComponentModel.Bindable(true)]
public System.Windows.Controls.ExpandDirection ExpandDirection { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.ExpandDirection : System.Windows.Controls.ExpandDirection with get, set
Public Property ExpandDirection As ExpandDirection
Nilai Properti
Salah ExpandDirection satu nilai yang menentukan arah mana jendela konten terbuka. Defaultnya adalah Down.
- Atribut
Contoh
Contoh berikut menunjukkan cara mengatur ExpandDirection properti.
myExpanderOpensUp.ExpandDirection = ExpandDirection.Up;
myExpanderOpensUp.ExpandDirection = ExpandDirection.Up
<Expander Name ="myExpanderOpensUp" ExpandDirection="Up"
Header ="expanderTitle" Content="expanderContent"/>
Keterangan
Informasi Properti Dependensi
| Item | Nilai |
|---|---|
| Bidang pengidentifikasi | ExpandDirectionProperty |
Properti metadata diatur ke true |
BindsTwoWayByDefault |