ToolTipService.IsEnabled Attached Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets whether a tooltip appears.
see GetIsEnabled, and SetIsEnabled
see GetIsEnabled, and SetIsEnabled
see GetIsEnabled, and SetIsEnabled
Examples
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);
ToolTipService.SetIsEnabled(ellipse2, True)
Remarks
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.
Dependency Property Information
Identifier field | IsEnabledProperty |
Metadata properties set to true |
None |
Applies to
See also
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.