开发者

How do you clear a dropdown list box in silverlight

I am using an AUTOCOMPLETEBOX defined in XAML. I load it by having its ItemSource point to

private List<string> lstUserNames;

then, after this list is loaded I just assign the autocompletebox to the list:

UserNameComboBox.ItemsSource = lstUserNames; 

so how do I clear out the AUTOCOMPLETEBOX if I want 开发者_JAVA技巧to reuse it?

I see nothing here that helps http://msdn.microsoft.com/en-us/library/system.windows.controls.autocompletebox(v=vs.95).aspx


Set the ItemsSource to null to clear it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜