Cookie Consent by Free Privacy Policy Generator
Privacy
Polipone
<settembre 2024>
lunmarmergiovensabdom
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456
Immagini

Navigazione

CHIUDERE UN'APP (WINDOWS PHONE)

Application.Current.Exit();

 

NAVIGARE VERSO UN'ALTRA FINESTRA

this.Frame.Navigate(typeof(myPage));

 

PASSAGGIO DI PARAMETRI AD UN'ALTRA FINESTRA

// let's assume that you have a simple class:
public class PassedData
{
  
public string Name { get; set; }
  
public int Value { get; set; }
}

// then you navigate like this:
Frame.Navigate(typeof(Page1), new PassedData { Name = "my name", Value = 10 });

// and in target Page you retrive the information:
protected override void OnNavigatedTo(NavigationEventArgs e)
{
   
PassedData data = e.Parameter as PassedData;
}

 

Notifiche