I am working on a WPF project which is having multiple pages, and I have to pass multi-variable data b/w pages. Now the technique I am using to pass data is; I have created a model class for those variable as given below;
public class CAR
{
public string MODEL;
public string BRAND;
public string COLOR;
}
And when I navigate to the next page i pass the above model class object to page as given below;
{
CAR cr1 = new CAR();
//Assign values to cr1
Page2 pg = new Page2(cr1);
NavigationService.Navigate(pg);
}
Now my question is, am I following the standard way of passing data b/w pages? or there is some other proper way to pass multi-variable data. kindly guide me