Zmień zawartość przycisku w WPF
Mam:
private void button1_MouseEnter(object sender, EventArgs e)
{
for (int i = 0; i > 2; i++)
{
button1.Content = Convert.ToString(i);
System.Threading.Thread.Sleep(1000);
}
tekst.Text = "Mouse Enter";
}
Kiedy wchodzęButton
Widzę tylkoMouse Enter
, aleContent
naButton
nie zmieniaj. Czemu? Co mogę zrobić źle?