How to use the method that is in the click of the button, to execute in the constructor

Bruno Silva 26 Reputation points

I'll explain the scenario and what I need to make it easier to understand..

I have an application that on the screen has a button with a click method... but I wanted this method or click button to be executed in the constructor when compiling the screen *by the code behind

A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,288 questions
{count} votes