You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
Debug.Assert(list!=null,"ItemsSource data source is not an IList, cannot change it.");
39
+
if(list==null)
40
+
return;
41
+
try
42
+
{
43
+
items.Insert(0,defaultValue);
44
+
}
45
+
catch(Exceptionex)
46
+
{
47
+
#if DEBUG
48
+
throwex;
49
+
#else
50
+
VsOutputLogger.WriteLine(String.Format(CultureInfo.CurrentCulture,"Could not add default empty item to the bound ItemsSource data source - the collection does not allow insertion (or the type does not match). {0}",ex));
51
+
#endif
52
+
}
35
53
}
36
54
elseif(AssociatedObject.SelectedIndex==0)
37
55
{
38
56
dynamicitems=AssociatedObject.ItemsSource;
39
-
items.RemoveAt(0);
57
+
varlist=itemsasIList;
58
+
Debug.Assert(list!=null,"ItemsSource data source is not an IList, cannot change it.");
59
+
Debug.Assert(list.Count==0,"ItemsSource data source is empty, something went wrong.");
0 commit comments