The AutoSizeMode helps you to adjust the size of the MultiSelectionComboBox according to your requirement, when its selection mode is set to VisualItem. There are three types of AutoSizeMode.
The AutoSizeModes.None allows you to specify the default size of the MultiSelectionComboBox.
The AutoSizeModes.Vertical allows you to adjust the size with respect to height, based on the items of the MultiSelectionComboBox.
The AutoSizeModes.Horizontal allows you to adjust the size with respect to width, based on the items of the MultiSelectionComboBox.
The following code example demonstrates the same.
Note: The default value of the AutoSizeMode is Vertical and the DisplayMode should be specified as DisplayMode.VisualItem.
Figure 1: MultiSelectionComboBox specified with AutoSizeMode as None
Figure 2: MultiSelectionComboBox specified with AutoSizeMode as Vertical
Figure 3: MultiSelectionComboBox specified with AutoSizeMode as Horizontal
This page will automatically be redirected to the sign-in page in 10 seconds.