ToolTipService.InitialShowDelay Propriété attachée
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient ou définit la durée avant l’ouverture d’une info-bulle.
see GetInitialShowDelay, and SetInitialShowDelay
see GetInitialShowDelay, and SetInitialShowDelay
see GetInitialShowDelay, and SetInitialShowDelay
Exceptions
La valeur de la InitialShowDelay propriété est inférieure à zéro (0).
Exemples
L’exemple suivant montre comment définir les ToolTipService propriétés de minutage.
<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>
Remarques
En règle générale, lorsqu’un utilisateur déplace le pointeur de la souris sur un objet qui a une info-bulle, il y a un délai avant l’affichage de l’info-bulle. Ce délai est égal à la valeur de la InitialShowDelay propriété. Toutefois, une fois qu’une info-bulle est affichée, il y a une période pendant laquelle une autre info-bulle peut être affichée sans attendre que le InitialShowDelay temps passe. Vous spécifiez cette période à l’aide de la BetweenShowDelay propriété. Lorsque l’utilisateur déplace la souris dans ce délai d’un élément qui a une info-bulle visible vers un autre élément qui a une info-bulle qui a une info-bulle, la valeur de la InitialShowDelay propriété pour la deuxième info-bulle n’est pas appliquée et la deuxième info-bulle apparaît immédiatement.
Pour plus d’informations sur la façon d’obtenir ou de définir cette propriété dans le code, consultez les méthodes et SetInitialShowDelay les GetInitialShowDelay méthodes.
Informations sur les propriétés de dépendance
| Élément | Valeur |
|---|---|
| Champ d’identificateur | InitialShowDelayProperty |
Propriétés de métadonnées définies sur true |
Aucun |