RibbonComboBox.SelectionBoxWidth プロパティ

定義

選択した項目をコンボ ボックスに表示するテキスト ボックスの幅を取得または設定します。

public:
 property double SelectionBoxWidth { double get(); void set(double value); };
public double SelectionBoxWidth { get; set; }
member this.SelectionBoxWidth : double with get, set
Public Property SelectionBoxWidth As Double

プロパティ値

コンボ ボックスで選択した項目を表示するテキスト ボックスの幅。 登録済みの既定値は 0.0 です。 値に影響を与える可能性がある内容の詳細については、「 依存関係プロパティの値の優先順位」を参照してください。

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

<ribbon:RibbonComboBox Label="1" 
                  SmallImageSource="Images/RightArrowShort_Green16.png"
                  SelectionBoxWidth="62"
                  VerticalAlignment="Center" 
                  IsEditable="True" >
    <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:RibbonComboBox>

注釈

SelectionBoxWidth プロパティには、コンボ ボックスに関連付けられているイメージとラベルの幅は含まれません。

依存関係プロパティ情報

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

適用対象