ToolTipService.HasDropShadow Propriété attachée

Définition

Obtient ou définit le fait que l'info-bulle s'affiche avec un effet d'ombre portée.

see GetHasDropShadow, and SetHasDropShadow
see GetHasDropShadow, and SetHasDropShadow
see GetHasDropShadow, and SetHasDropShadow

Exemples

L’exemple suivant montre comment définir la HasDropShadow propriété jointe de la ToolTipService classe.

<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

Le style par défaut d’un contrôle d’info-bulle ajoute un effet d’ombre portée. Si vous ne définissez pas explicitement la propriété, la HasDropShadow valeur de la propriété est false jusqu’à la première fois que l’info-bulle est affichée. Le style d’info-bulle par défaut est appliqué lorsqu’une info-bulle s’affiche et que le style définit la HasDropShadow propriété sur true.

Si l’info-bulle est un System.Windows.Controls.ToolTip objet et que la ToolTip.HasDropShadow propriété et la ToolTipService.HasDropShadow propriété sont spécifiées, la valeur de la ToolTipService.HasDropShadow propriété est utilisée.

Pour plus d’informations sur la façon d’obtenir ou de définir cette propriété dans le code, consultez les GetHasDropShadow méthodes et SetHasDropShadow .

Informations sur les propriétés de dépendance

Champ Identificateur HasDropShadowProperty
Propriétés de métadonnées définies sur true Aucun

S’applique à

Voir aussi