ToolTipService.ShowOnDisabled 附加屬性

定義

取得或設定是否顯示未啟用物件的工具提示。

see GetShowOnDisabled, and SetShowOnDisabled
see GetShowOnDisabled, and SetShowOnDisabled
see GetShowOnDisabled, and SetShowOnDisabled

範例

下列範例會示範如何設定 ShowOnDisabled 屬性。

<Button IsEnabled="false" ToolTipService.ShowOnDisabled="True" 
      Content="Disabled Button">
  <Button.ToolTip>
    <ToolTip>
      <TextBlock>
        ToolTipService.ShowOnDisabled = True
      </TextBlock>
    </ToolTip>
  </Button.ToolTip>
</Button>

備註

這個屬性是附加屬性。 如需如何在程式碼中取得或設定此屬性值的資訊,請參閱 GetShowOnDisabledSetShowOnDisabled 方法。

相依性屬性資訊

識別碼欄位 ShowOnDisabledProperty
中繼資料屬性設定為 true

適用於

另請參閱