ToolTipService.HasDropShadow Propiedad adjunta

Definición

Obtiene o establece si la información sobre herramientas muestra un efecto de sombra paralela.

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

Ejemplos

En el ejemplo siguiente se muestra cómo establecer la HasDropShadow propiedad adjunta de la ToolTipService clase .

<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>

Comentarios

El estilo predeterminado de un control de información sobre herramientas agrega un efecto de sombra paralela. Si no establece explícitamente la HasDropShadow propiedad, el valor de la propiedad es false hasta la primera vez que se muestra la información sobre herramientas. El estilo de información sobre herramientas predeterminado se aplica cuando se muestra una información sobre herramientas y el estilo establece la HasDropShadow propiedad trueen .

Si la información sobre herramientas es un System.Windows.Controls.ToolTip objeto y se especifican la ToolTip.HasDropShadow propiedad y la ToolTipService.HasDropShadow propiedad , se utiliza el valor de la ToolTipService.HasDropShadow propiedad .

Para obtener información sobre cómo obtener o establecer esta propiedad en el código, vea los GetHasDropShadow métodos y SetHasDropShadow .

Información sobre propiedades de dependencia

Campo identificador HasDropShadowProperty
Propiedades de metadatos establecidas en true Ninguno

Se aplica a

Consulte también