George Mihăilă
George Mihăilă

Reputation: 31

Is there any way to update a label in C# without using a timer?

I am trying to make a label update automatically, but since in Windows Phone 8.1 Silverlight I can't use a timer, I have to do it in a different way.

Upvotes: 0

Views: 99

Answers (2)

DLL_Whisperer
DLL_Whisperer

Reputation: 827

use the Task or Threading something like this

private async Task ChangeLabel()
{
   while(true)
   {
      await Task.Delay(100)
      label1.Text = "lorem impus";
   }
}

Upvotes: 1

Weyland Yutani
Weyland Yutani

Reputation: 4960

Yes, here is a in depth example

label.Text = "Your text here";

Upvotes: 0

Related Questions