Silverlight:
delegate void DelegateSetValue(Button btn, string value);
private void TheTime()
{
DelegateSetValue d = new DelegateSetValue(SetValue);
btnSearch.Dispatcher.BeginInvoke(d, btnSearch, "忙--");
Thread.Sleep(1000);
btnSearch.Dispatcher.BeginInvoke(d, btnSearch, "搜索");
}
private void SetValue(Button btn, string value)
{
btn.Content = value;
}
转载于:https://www.cnblogs.com/vicon/archive/2008/10/15/1312004.html