jraustin1
Posts: 1
Joined: Tue Aug 21, 2018 1:48 pm

How Do I Instantiate Multiple Pages?

Tue Aug 21, 2018 2:04 pm

How can I create instances of a page where a page represents a measurement device (ie multimeter, thermometer, scope, etc) in IoT?
For example, in C# for Windows 10 (not IoT), I would do something like the following:
formMultimeter My1stMultimeter = new formMultimeter (ID1, "0-10 VDC");
formMultimeter My2ndMultimeter = new formMultimeter (ID2, "0-120 VAC");
formScope My1stScope = new formScope(ID3, "100 Mhz");

float msr1 = My1stMultimeter.Measure();
float msr2 = My2ndMultimeter.MeasureRMS();
float msr3 = My1stScope.MsrFreq(chnB);

In IoT, it seems I can only navigate to a page using this.Frame.Navigate(typeOf(MultimeterPg)) and the page unloads when I navigate back to main page. How can I keep the 2nd, 3rd, etc page loaded?

Return to “Windows 10 for IoT”