語言

RibbonToggleButton.SmallImageSource 屬性

定義

當影像大小設為 Small時,取得或設定控制項上顯示的影像。

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

屬性值

要顯示在控制器上的影像。 註冊預設為 null。 欲了解更多影響價值的因素,請參閱 「相依物業價值優先順序」。

範例

以下範例說明如何將屬性設定 SmallImageSource 在 RibbonToggleButton。

<ribbon:RibbonToggleButton Label="Reminder"
                      Command="{Binding ReminderCommand}"
                      SmallImageSource="Images/Reminder16.png" 
                      LargeImageSource="Images/Reminder32.png"
                      KeyTip="R"/>

備註

將屬性設 ImageSize 在 ControlSizeDefinition 上,以控制 的 SmallImageSource可見性。

相依財產資訊

Item 價值觀
識別碼欄位 SmallImageSourceProperty
元資料屬性設為 true None

適用於

另請參閱