C# - problem with accessing buttons

Hi All,

need help with plugin development (C#, visual studio, plugin for Smart Client). In example below I can change “CONTENT” for bbt:

private void bbt_Click(object sender, RoutedEventArgs e)

{

  var bbt = sender as Button;

  bbt.Content = "TEST";

}

bbt.Content = “TEST”;

but how can I change content for other buttons, defined in my code? For example, another button name is “action1”?

action1.Content = “TEST”;

It looks like I need to add some prefix before referring to “action1”, because otherwise it’s not visible and generates:

CS0103 The name ‘action1’ does not exist in the current context

There might be a same question with another thread, let me continue this one at following link;

https://developer.milestonesys.com/s/question/0D53X000063aFJbSAM/activeelementsoverlay-sample-code-new-buttons-interface