GUITableModelItemSource Property |
Namespace: Livit.Learn.Model.GUI
Using ItemSource and ItemTemplate will dynamically create a series of objects based on those defined in ItemTemplate. Each of these individual objects will have the DataContext of their corresponding element in the ItemSource collection.
This allows the creation of a Table with a number of child objects that will automatically refresh as the user progresses in the simulation.
<Table Id="MissionsChecklist" ItemSource="{Binding ActiveQuests.Missions.UnlockedList}"> <ItemTemplate> <Label Name="Completed" Text="{Binding Title}" /> </ItemTemplate> </Table>
<Table Id="MissionsChecklist" ItemSource="{Binding ActiveQuests.Missions.UnlockedList}"> <ItemTemplate> <Label Name="Completed" Text="Enter the Lab" /> <Label Name="Completed" Text="Prepare Sample" /> <Label Name="Completed" Text="Process Sample" /> </ItemTemplate> </Table>