0

How can I make my button auto clicked as the page loads into my application, then calls the event that it supposed to execute? Here's my code in my xaml file for button.

<Button Text="Click Me!" x:Name="scanButton" HorizontalOptions="Center" VerticalOptions="CenterAndExpand" />

1 Answers1

0

Make a method of the task you want to perform on button click and call that method when the page appears, you should use the Lifecycle events to perform this, see this answer for the events

M Daim Khan
  • 349
  • 2
  • 14