This documentation is archived and is not being maintained.

ToolTipService.IsEnabled Attached Property

Gets or sets whether a tooltip appears.

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in PresentationFramework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

See ToolTipService.GetIsEnabled, ToolTipService.SetIsEnabled
See ToolTipService.GetIsEnabled, ToolTipService.SetIsEnabled
See ToolTipService.GetIsEnabled, ToolTipService.SetIsEnabled
<object ToolTipService.IsEnabled="bool" .../>

Property Value

true if the tooltip appears when the user pauses the mouse pointer over the object that defines the tooltip; otherwise, false. The default value is true.

Identifier field

IsEnabledProperty

Metadata properties set to true

None

To determine whether a tooltip is currently visible, use the IsOpen property.

For information about how to get or set this property in code, see the GetIsEnabled and SetIsEnabled methods.

The following example shows how to set the IsEnabled property.

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

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Show: