_loop.Duration = TimeSpan.FromMilliseconds(100d); _loop.Completed += new EventHandler(_loop_Completed);

_loop.Begin(); }

void _loop_Completed(object sender, EventArgs e)

{ progressBar.Value = _count; lblPercent.Text = _count.ToString() + "%"

;

if (_count >100) _count = 0; else _count++; _loop.Begin();
}
}
}
6、RadioButton.xaml
<UserControl x:Class="Silverlight20.Control.RadioButton"
xmlns="doc.guandang.net; xmlns:x="doc.guandang.net;
<StackPanel HorizontalAlignment="Left">
<!--
GroupName - RadioButton控件所属组的组名
Checked - 被选中后所触发的事件
Click - 被单击后所触发的事件
-->
<RadioButton GroupName="groupName" Content="红色的RadioButton"
Background="Red" Margin="5"/>
<!--
IsEnabled - RadioButton是否有效
-->
<RadioButton GroupName="groupName" Content="无效的RadioButton"
IsEnabled="False" Margin="5"/>
w 页码,1/13(W) webabcd - 专注于asp.net, html5, silverlight ASP.NET 从现在开始 一切都不晚 博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: ...
扩展GridView控件(5) - 固定指定 行、指定列(30529) 6. [翻译].net 2.0(c#)下简单的FTP 应用程序(29680) 7. 稳扎稳打 Silverlight 2.0 系列文 章索引...
w 页码,1/12(W) webabcd - 专注于asp.net, html5, silverlight ASP.NET 从现在开始 一切都不晚 博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: ...
w 页码,1/12(W) webabcd - 专注于asp.net, html5, silverlight ASP.NET 从现在开始 一切都不晚 博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: ...
热门文档