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

Bruno Silva 26 Reputation points
2022-08-17T20:03:50.167+00:00

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

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