I want to know which method is called by default first when the xaml page loads in a Windows Phone application and how can I change the method that should be called first at boot?
To directly answer your question: Initialization is the event you are looking for.
For more information, Google is your friend:
Application Life Cycle - http://msdn.microsoft.com/en-us/windowsphonetrainingcourse_applicationlifetimewp7lab_topic2.aspx
Controls and other objects must comply with the event lifecycle standard:
http://msdn.microsoft.com/en-us/library/ms754221.aspx
To automatically perform an action when a page loads, use this in your page constructor: -
public MainPage() { InitializeComponent(); Loaded += (s, e) => { //write logic here } }
You can also install the Loaded handler via xaml:
Loaded
.xaml:
<Page ... Loaded="OnPageLoaded">
.xaml.cs:
private void OnPageLoaded(object sender, RoutedEventArgs e) { ... }
Source: https://habr.com/ru/post/951688/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/951683/how-to-tune-egit-for-large-repositories&usg=ALkJrhilpulM1uKVczyi0VZaeM90rDJctQFind Duplicates in Ruby Crunches - arraysChange the status of the action bar menu depending on the fragment - androidNSLayoutConstraints code to center the view and maintain its aspect ratio - iosTypeError: expected string or buffer in Google App Engine Python - jsonhow to set global constant variables in python - variablesHow to list directories and files of tftp windows server from command line? - windowsHow to use getWindowManager () with another java file - androidJava Android - crop image in ImageView - javaJquery vs .find () context selector - jqueryAll Articles