标签:ar sp for on art 时间 new br text
public MainPage()
{
this.InitializeComponent();
this.timer = new DispatcherTimer();//新建委托时间实例
timer.Interval = new TimeSpan(0, 0, 0, 0, 200);//设置计时的刻度
timer.Tick += OnTimerTick;//监视增加计时间事件
timer.Start();//计时开始
}
void OnTimerTick(object sender, object e)
{
Data.Value += 0.2m;
this.txtValue.Text = string.Format("{0}s", Data.Value);
}
DispatcherTimer timer;
标签:ar sp for on art 时间 new br text
原文地址:http://www.cnblogs.com/NEIL-X/p/4156368.html