Skip to content

Question: SectionListItem #66

@camilopedroso

Description

@camilopedroso

Hi guys,

I'm trying to add SectionListItems programmatically, but, I'm struggling to add the DataTemplate with the ResponsiveGridView.

      foreach (IGrouping<string, MockUp> group in model.FakeItems)
      {
        string header = group.Key;
        List<MockUp> items = group.ToList();
        SectionList sectionList = SectionsListControl;
        sectionList.Sections.Add(new SectionListItem()
        {
          Name = header,
          Title = header,
          Margin = new Thickness(12, 12, 0, 0)
        });

        SectionListItem section = sectionList.Sections.Find(x => x.Name == header);
        // the code below works
        section.Title = $"{header} > something else";

        // how can I dinammically load the DataTemplate?
      }

Thanks,
Camilo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions