RibbonComboBox.SelectionBoxWidth Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the width of the text box that displays the selected item in the combo box.
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
Property Value
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.
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>
Remarks
The SelectionBoxWidth property does not include the widths of the image and label that are associated with the combo box.
Dependency Property Information
Identifier field | SelectionBoxWidthProperty |
Metadata properties set to true |
None |
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈