RibbonMenuButton.ToolTipImageSource 屬性

定義

取得或設定顯示在這個控制項工具提中的影像。

public:
 property System::Windows::Media::ImageSource ^ ToolTipImageSource { System::Windows::Media::ImageSource ^ get(); void set(System::Windows::Media::ImageSource ^ value); };
public System.Windows.Media.ImageSource ToolTipImageSource { get; set; }
member this.ToolTipImageSource : System.Windows.Media.ImageSource with get, set
Public Property ToolTipImageSource As ImageSource

屬性值

ImageSource

要顯示在工具提示中的影像。 已註冊的預設值是 null。 如需可能會影響該值的相關詳細資訊,請參閱 相依性屬性值優先順序

範例

下列範例顯示用來建立增強工具提示的標記。

增強型工具提示
增強型工具提示

<ribbon:RibbonMenuButton Label="Ribbon Control"
                SmallImageSource="Images/Lightbulb16.png" 
                LargeImageSource="Images/Lightbulb32.png"
                KeyTip="N"
                ToolTipTitle="Command Name (Ctrl+N)" 
                ToolTipDescription="All ribbon commands should have enhanced tooltips to give the command name, shortcut key, description, and optional supplemental information."
                ToolTipImageSource="Images/Suggestion32.png"
                ToolTipFooterTitle="Press F1 for Help" 
                ToolTipFooterDescription="When practical, completely describe the command using a concise description. Link to Help only if further explanation is really necessary."
                ToolTipFooterImageSource="Images/Help16.png" />

備註

警告

每個功能區控制項都會 FrameworkElement.ToolTip 繼承 屬性。 FrameworkElement.ToolTip如果設定屬性,將不會顯示功能區增強的工具提示;將會改為顯示標準工具提示。

相依性屬性資訊

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

適用於

另請參閱