Share via


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。 有关什么可以影响值的详细信息,请参阅 Dependency Property Value Precedence(依赖项属性值优先级)

示例

以下示例演示如何在 上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

适用于

另请参阅