RibbonComboBox.SelectionBoxWidth Property
Gets or sets the width of the text box that displays the selected item in the combo box.
Namespace: Microsoft.Windows.Controls.Ribbon
Assembly: RibbonControlsLibrary (in RibbonControlsLibrary.dll)
Syntax
'Declaration
Public Property SelectionBoxWidth As Double
public double SelectionBoxWidth { get; set; }
public:
property double SelectionBoxWidth {
double get ();
void set (double value);
}
member SelectionBoxWidth : float with get, set
function get SelectionBoxWidth () : double
function set SelectionBoxWidth (value : double)
Property Value
Type: System.Double
The width of the text box that displays the selected item in the combo box. The registered default is 0.0. For more information about what can influence the value, see Dependency Property Value Precedence.
Dependency Property Information
Identifier field |
|
Metadata properties set to true |
None |
Remarks
The SelectionBoxWidth property does not include the widths of the image and label that are associated with the combo box.
Examples
The following example shows the markup to create a combo box with three available items.
<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>
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.