Having trouble getting help?
Contact Support
Contact Support
AutoSizing in .NET MAUI ComboBox (SfComboBox)
AutoSizing can be enabled in the SfComboBox control so that the control will extend its layout based on the input content.
The EnableAutoSize property is used to enable the auto sizing in the SfComboBox control. To enable the API, set the SelectionMode as Multiple and TokensWrapMode as Wrap. The default value of EnableAutoSize is false.
<editors:SfComboBox x:Name="comboBox"
WidthRequest="350"
ItemsSource="{Binding SocialMedias}"
SelectionMode="Multiple"
MaxDropDownHeight="250"
DisplayMemberPath="Name"
TextMemberPath="Name"
Placeholder="Enter Media"
TokensWrapMode="Wrap"
EnableAutoSize="True" />