I am using a AutoCompleteBox in my Silverlight app but I can't work out how to get the number of options listed by the AutoCompleteBox because I can't cast the control to AutoCompleteBox because it can't be converted to a WebAii FrameworkElement.
Any ideas? My code looks something like this.
Any ideas? My code looks something like this.
var autoCompleteBox = app.FindName(testUtil.AutoCompleteBox);
autoCompleteBox.User.TypeText("f", 50);
autoCompleteBox.Refresh();
var list = (List<
String
>) autoCompleteBox.As<
AutoCompleteBox
>().ItemsSource;
Assert.That(list.Count, Is.EqualTo(2));