Dear Js-Support,
We have lot of problems with your ComboBox (in Simulator and in Browser as well):
Background info: we have read all the related info at this forum as :
-no datatemplate possible, only one property by setting DisplayMemberPath : we are not happy, but acceptable.
-comboBox.ItemsSource = new List<Type> (Object) trick : does not work for 2dn time.
Our problems (your bug):
1./ when we try to refresh with ItemsSource several times with same items:
the first time : ok, as expected.
but 2nd/3rd/more times: the items in the ComboBox list gots some random duplicates and triplicates, and so on...
We tried everything, e.g. comboBox.ItemsSource = null; to clear items before refreshing with new ones: nothing works !!
2./ when we try fill comboBox.Items manually (a for cycle with comboBox.Items.Add(_someList[i]) ) : it works as expected, BUT:
not possible to clear all element (before next time we try to add ) !!
if comboBox.Items.Count != 0 and we try to clear the list:
comboBox.Items.Clear();
WE HAVE GOT HUGE EXCEPTION:
exc = {"Index must be within the bounds of the List.\r\nParameter name: index"}
StackTrace = " at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)\r\n at System.Collections.Generic.List`1.Insert(Int32 index, T item)\r\n at Windows.UI.Xaml.Controls.ItemsControl.ManageCollectionChanged(...
So, let us summarize where we are actually ?
-.ItemsSource = new List<Type> (Object) : does not work to refresh (works at very first time, but not after: items got random mixed/jagged somehow only some items duplicated/triplicated)!,
-.Items fill manually: works, but not possible to Clear() as we have got exception.
-any other solution does not work as well ( .ItemsSource = null, or fill with .ItemsSource = new List<Type> (Object) and Clear manually).
So, please show us at least one working solution how to refresh the items in comboBox ???
Should we remove every items manually ??, like: .Items.RemoveAt(0) ??
Thanks in advance,
Br,
Péter