How to change the text inside a textblock after clicking a button c#

ASHS91 21 Reputation points
2021-06-22T14:12:56.727+00:00

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;
        }
    }
Developer technologies Windows Presentation Foundation
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.