I'm trying to clear the selected items from the SfComboBox controls (used for multi selection) and I tried doing it by clearing the SelectedIndices property from ViewModel like this.
attribute.SelectedIndices?.Clear();
This is how the XAML of the SfComboBox is:
SelectedIndices="{Binding SelectedIndices, Mode=TwoWay}"
SelectedIndices property updates with all the indices of the selection from the combo box control but clearing it doesn't clear the UI (SfComboBox) only the values get clears. I also tried setting the SelectedIndices propery to null like this
attribute.SelectedIndices = null;
but it also did not work.
How can I clear these values and update the UI from the ViewModel in MVVM way?