Change the "=" to a "+=" is the simplest to implement:
for (int 1=0; i<10; i++)
{
textBlock1.Text="Number is:" +i.ToString();
}
Becomes
for (int 1=0; i<10; i++)
{
textBlock1.Text+="Number is:" +i.ToString();
}
But a better solution would be to use a StringBuilder:
StringBuilder sb = new StringBuilder();
for (int 1=0; i<10; i++)
{
sb.AppendFormat("Number is: {0}\n", i);
}
textBlock1.text = sb.ToString();