navigate between pages in xaml code example
Example: navigate to another page with an object uwp c#
public class RestaurantParams
{
public RestaurantParams(){}
public string Name { get; set; }
public string Text { get; set; }
}
var parameters = new RestaurantParams();
parameters.Name = "Lorem ipsum";
parameters.Text = "Dolor sit amet.";
Frame.Navigate(typeof(PageTwo), parameters);
protected override void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
var parameters = (RestaurantParams)e.Parameter;
}