Hi,
am using SfComboBox to select multiple options. I need to show all the selected items without a need to scroll up/down or swipe left/right. Is there a way how to achieve that?
Am using the code below here HeightRequest is caluclated in the viewmodel based on items count but it's far from perfect as it highly depends on screen size, pixel density etc. Also if there is a very long item, it does not wrap and the close button (on the right) is hidden and cannot be used.
Attaching some sample screenshots.
thanks
Jiri
<sfcom:SfComboBox x:Name="cmbLabels"
IsEnabled="{Binding IsBusy, Converter={StaticResource negateBoolean}}"
HeightRequest="{Binding LabelsHeight}"
IsEditableMode="false"
TokensWrapMode="Wrap"
IsSelectedItemsVisibleInDropDown="false"
MultiSelectMode="Token"
SelectionChanged="cmbLabels_Changed">
<sfcom:SfComboBox.TokenSettings>
<sfcom:TokenSettings FontSize="15"
BackgroundColor="#66ccff"
TextColor="White"
SelectedBackgroundColor="#ffffe0"
DeleteButtonColor="Navy"
IsCloseButtonVisible="true"
CornerRadius="10">
</sfcom:TokenSettings>
</sfcom:SfComboBox.TokenSettings>
</sfcom:SfComboBox>