2,854 questions
How to change the text inside a textblock after clicking a button c#
ASHS91
21
Reputation points
I have a button that once clicked should change the contents of my TextBlock.
This is the code for my button:
private void activatell_Click(object sender, RoutedEventArgs e)
{
activeclick = activeclick + 1;
boolactive = true;
//TextBlock change here
if (activeclick == 2)
{
activatell.IsEnabled = false;
}
}