Skip to content

[MVUX][ListView] How to: Nested ListFeed / ListState + FeedView with ListView? #2871

Open

Description

@DevTKSS

What would you like to be added:

I would like to know if and how we can get and define Nested FeedLists using Templates and ListFeed + ListState
AND it should also tell how to use the ItemTemplateSelector for selecting the template depending on the datamodel.

Why is this needed:

  1. only finding has been so far for c# markup apps:
    https://platform.uno/docs/articles/external/uno.extensions/doc/Learn/Markup/Templates.html#datatemplateselector
  2. And in the Uno.UI Performance Docs here:
    https://platform.uno/docs/articles/Uno-UI-Performance.html#unoui---performance
    but this page also seems to tell us, that we should not use it? so, its not possible?
  3. Got a user request on my Tutorials for this: > How can you create a representation of a list in, for example, a ListView – e.g., a list contains different objects, and these objects also have their own lists and data types. Based on the data type, the objects should then be displayed either as checklists, radio buttons, or text boxes.

For which Platform:

  • iOS
  • Android
  • WebAssembly
  • WebAssembly Renderers for Xamarin.Forms
  • Windows
  • Desktop

Anything else we need to know?

We would love to know of any friction, apart from knowledge, that prevented you from sending in a pull-request

Well, you are indeed funny asking this! Maybe because of missing advises in our docs? Transfering the c# markup to xaml did not work for me for this...

Activity

  1. added
    kind/contributor-experience
    kind/documentation
    triage/untriaged
    on Jul 29, 2025
  2. kazo0 commented on Jul 30, 2025

    @kazo0
    Contributor

    @DevTKSS Are you picturing something like this?

    Image

    Are you imagining that there is a parent FeedView and within each of the main ListView's Items, a separate FeedView that would be used to display the child ListFeeds?

    Or is this more a question of how to have this sort of behaviour regardless of it using an MVUX app?

    It might be helpful at first if we have a small sample with just basic ListViews that we could then adapt to use MVUX

    Pinging @dr1rrb if he has any guidance on nesting Feeds and Lists

  3. DevTKSS commented on Jul 30, 2025

    @DevTKSS
    ContributorAuthor

    @kazo0
    Hm I have a rough idea of what's meant but to make sure, I asked him to check up here and maybe give a better View.

    What I would have in mind is:

    • Mvux Presentation 👍
    • Xaml Markup
    • How To: sage of TemplateSelector for this scenario (which is where he told he will look more into today)

    I would assume a structure of presentation like this:

    - FeedView
      - ListView
        - (Data/Control-)Template for DataType1
          - RadioButton
          - TextBlock
          - Image (or whatever content else)
          - !Nested Controls and structure using ListFeed or ListState!
        - (Data/Control-)Template for DataType2
          - CheckBox
          - TextBlock
          - Image (or whatever content else)
          - !Nested Controls and structure using ListFeed or ListState!
    

    Maybe imagine the structure similar like the RouteMap+Views we have for Navigation Extensions in mvux 💡
    There you have ViewMap or DataViewMap as templates and the RouteMap as provider of the structure itself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/contributor-experiencekind/documentationtriage/untriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions