开发者

How do you clear a dropdown list box in silverlight

开发者 https://www.devze.com 2023-03-14 10:55 出处:网络
I am using an AUTOCOMPLETEBOX defined in XAML. I load it by having its ItemSource point to private List<string> lstUserNames;

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

精彩评论

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

关注公众号