RibbonTextBox.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。 如需可能會影響該值的相關詳細資訊,請參閱 相依性屬性值優先順序

範例

下列範例示範如何在 上 RibbonTextBox 設定 SmallImageSource 屬性。

<ribbon:RibbonTextBox Label="1" Text="Green"
                 Command="{Binding ColorCommand}"
                 SmallImageSource="Images/RightArrowShort_Green16.png" 
                 LargeImageSource="Images/RightArrowShort_Green32.png" 
                 KeyTip="C" />

備註

設定 ImageSize 上的 ControlSizeDefinition 屬性,以控制 的 SmallImageSource 可見度。

相依性屬性資訊

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

適用於

另請參閱