I want to know which method is first called by default when a xaml page is loaded in windows phone app and how can I change the method which has to be called first on load?
To automatically perform an action on page load, use this in your page constructor:-
public MainPage()
{
InitializeComponent();
Loaded += (s, e) =>
{
//write logic here
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With