Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeater view #62

Open
patrik-u opened this issue Sep 5, 2016 · 0 comments
Open

Repeater view #62

patrik-u opened this issue Sep 5, 2016 · 0 comments
Labels

Comments

@patrik-u
Copy link

patrik-u commented Sep 5, 2016

This is a view that repeats its content based on a ObservableList source. It does function in a special way in that it can be invisible to the parent view that only sees the repeated content. So you can do things like:

<Group>
    <Repeater Items="{Highscores}">
        <Label Text="{#Item.PlayerName} {#Item.Score}" />
    </Repeater>
</Group>

And the repeater will actually not be a child of the group but hide somewhere (in the root of the hierarchy) and when Highscores changes it updates the children of Group. It also keeps adds/removes/rearranges the content as the Highscores list changes. If the Group is removed the repeater self-destructs 😄.

What is nice about this is that the Group can do its thing and group the repeated elements, without the repeater view being in the way.

@patrik-u patrik-u added the task label Sep 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant