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

Question: SectionListItem #66

Open
camilopedroso opened this issue Dec 29, 2018 · 0 comments
Open

Question: SectionListItem #66

camilopedroso opened this issue Dec 29, 2018 · 0 comments

Comments

@camilopedroso
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant