|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Apr 2009
Città: Aci Catena (CT)
Messaggi: 1021
|
[WPF] DispatcherTimer e Label con countdown
Ciao,
sto utilizzando un DispatcherTimer nel mio UserControl: Codice:
DispatcherTimer dispatcherTimer = new DispatcherTimer();
dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick);
dispatcherTimer.Interval = new TimeSpan(0, 0, 60);
dispatcherTimer.Tick += timer_Tick;
dispatcherTimer.Start();
private void dispatcherTimer_Tick(object sender, EventArgs e)
{
CommandManager.InvalidateRequerySuggested();
myOtherUserControl uc = VisualTreeHelpers.FindChild<myOtherUserControl>(this);
uc.SearchByTimer();
//uc.timerLabel.Text = label_to_do_refresh!
}
Come dovrei procedere? Grazie. |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 17:30.



















