ATTENZIONE: Questo sito impiega diversi tipi di cookies. Alla pagina MAGGIORI INFORMAZIONI è possibile avere informazioni aggiuntive. Cliccando su ACCETTO o continuando a navigare sul sito acconsenti al loro utilizzo.
<aprile 2024>
lunmarmergiovensabdom
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345
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