How to add different pageclasses to Pagecontrol, based on result from webservice

I am looking for a way to dynamic create pageclasses based on a result from a webservice. If pagetype is 0, then add welcomePage, if pagetype is 1 then add another page. Is it possible to do this with include or something similar? I would like to use a each loop.

Example on hardcoded markup I am trying to create based on result from webservice.

<PageControl ux:Name="pageControl" ActiveIndex="{activeIndex}">
		        <WelcomePage />

What you’re looking for is probably MatchKey which works together with Each.

It might be a bit low on docs right now, but you can find an additional example here