ToolTipService.IsEnabled 添付プロパティ

定義

ツールヒントを表示するかどうかを取得または設定します。

see GetIsEnabled, and SetIsEnabled
see GetIsEnabled, and SetIsEnabled
see GetIsEnabled, and SetIsEnabled

IsEnabled プロパティを設定する方法を次の例に示します。

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

注釈

ツールヒントが現在表示されているかどうかを確認するには、 プロパティを IsOpen 使用します。

コードでこのプロパティを取得または設定する方法については、 メソッドと SetIsEnabled メソッドをGetIsEnabled参照してください。

依存プロパティ情報

識別子フィールド IsEnabledProperty
に設定されたメタデータ プロパティ true なし

適用対象

こちらもご覧ください