RibbonMenuButton.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

プロパティ値

ImageSource

コントロールに表示するイメージ。 登録済みの既定値は null です。 この値に影響する可能性があるものの詳細については、「依存関係プロパティ値の優先順位」を参照してください。

次の例は、3 つの項目を含むメニュー ボタンを作成するマークアップを示しています。

<ribbon:RibbonMenuButton Label="Color 1" 
                         SmallImageSource="Images/RightArrowShort_Green16.png" 
                         LargeImageSource="Images/RightArrowShort_Green32.png" >
    <ribbon:RibbonGallery SelectedValue="Green"
                          SelectedValuePath="Content"
                          MaxColumnCount="1">
        <ribbon:RibbonGalleryCategory>
            <ribbon:RibbonGalleryItem Content="Green" Foreground="Green" />
            <ribbon:RibbonGalleryItem Content="Blue" Foreground="Blue" />
            <ribbon:RibbonGalleryItem Content="Orange" Foreground="Orange" />
        </ribbon:RibbonGalleryCategory>
    </ribbon:RibbonGallery>
</ribbon:RibbonMenuButton>

注釈

の可視性をImageSizeControlSizeDefinition制御するプロパティを設定しますSmallImageSource

依存プロパティ情報

識別子フィールド SmallImageSourceProperty
に設定されたメタデータ プロパティ true なし

適用対象

こちらもご覧ください