ToolTipService.IsEnabled 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.
Mendapatkan atau mengatur apakah tipsalat muncul.
see GetIsEnabled, and SetIsEnabled
see GetIsEnabled, and SetIsEnabled
see GetIsEnabled, and SetIsEnabled
Contoh
Contoh berikut menunjukkan cara mengatur IsEnabled properti .
<Ellipse Height="25" Width="50"
Fill="Gray"
HorizontalAlignment="Left"
ToolTipService.InitialShowDelay="1000"
ToolTipService.ShowDuration="7000"
ToolTipService.BetweenShowDelay="2000"
ToolTipService.Placement="Right"
ToolTipService.PlacementRectangle="50,0,0,0"
ToolTipService.HorizontalOffset="10"
ToolTipService.VerticalOffset="20"
ToolTipService.HasDropShadow="false"
ToolTipService.ShowOnDisabled="true"
ToolTipService.IsEnabled="true"
ToolTipOpening="whenToolTipOpens"
ToolTipClosing="whenToolTipCloses"
>
<Ellipse.ToolTip>
<BulletDecorator>
<BulletDecorator.Bullet>
<Ellipse Height="10" Width="20" Fill="Blue"/>
</BulletDecorator.Bullet>
<TextBlock>Uses the ToolTipService class</TextBlock>
</BulletDecorator>
</Ellipse.ToolTip>
</Ellipse>
ToolTipService.SetIsEnabled(ellipse2, true);
ToolTipService.SetIsEnabled(ellipse2, True)
Keterangan
Untuk menentukan apakah tipsalat saat ini terlihat, gunakan IsOpen properti .
Untuk informasi tentang cara mendapatkan atau mengatur properti ini dalam kode, lihat GetIsEnabled metode dan SetIsEnabled .
Informasi Properti Dependensi
Bidang pengidentifikasi | IsEnabledProperty |
Properti metadata diatur ke true |
Tidak ada |
Berlaku untuk
Lihat juga
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.