Bagikan melalui


ToolTipService.ShowDuration Properti Terlampir

Definisi

Mendapatkan atau mengatur jumlah waktu tipsalat tetap terlihat.

see GetShowDuration, and SetShowDuration
see GetShowDuration, and SetShowDuration
see GetShowDuration, and SetShowDuration

Pengecualian

Nilai InitialShowDelay properti kurang dari nol (0).

Contoh

Contoh berikut menunjukkan cara mengatur ShowDuration properti untuk tipsalat.

<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.SetShowDuration(ellipse1, 7000);
ToolTipService.SetShowDuration(ellipse1, 7000)

Keterangan

Properti ini menentukan waktu tipsalat tetap terlihat saat pengguna menjeda penunjuk mouse di atas objek yang menentukan tipsalat. Jika pengguna memindahkan penunjuk mouse dari objek, tipsalat akan ditutup.

Properti ini adalah properti terlampir. Untuk informasi tentang cara mendapatkan atau mengatur nilai properti ini dalam kode, lihat GetShowDuration metode dan SetShowDuration .

Informasi Properti Dependensi

Item Nilai
Bidang pengidentifikasi ShowDurationProperty
Properti metadata diatur ke true Tidak

Berlaku untuk

Lihat juga