Is it possible to accomplish the same thing with UX the way we handle javascript switch case like the following:
switch(id){
case "1":
case "2":
doSomething();
break;
case "3":
doSomethingElse();
break;
default:
doSleep();
}
This is because I have several ui groups based on an id like in the following:
<Match String="{id}">
<Case String="1">
<Panel>
<Text Value="Display UI for One" />
</Panel>
</Case>
<Case String="2">
<StackPanel>
<mob.IconAccount />
</StackPanel>
</Case>
<Case String="3">
<Panel>
<Text Value="Display UI for Three" />
</Panel>
</Case>
<Case String="4">
<DockPanel>
<mob.IconAccount />
<Text Value="{name}" />
</DockPanel>
</Case>
</Match>
Using IsDefault will not be enough as it only handles one group that share the same UI traits. What I am trying to avoid is having to duplicate the same UI over and over again under different cases. I have about 8 cases to handle.