private void PrepareData() { /** * section { * cell Subtitle { * text= event.contact * details= "Contact" * action= PersonDetails(PersonByName(event.contact)) * } * } */ GroupingLayer <string, string> section1 = new GroupingLayer <string, string>("Contact", new List <string>() { Event.Contact }); /** * section { * cell Subtitle foreach event.speakers as s { * text= s.name * details= s.role * action= PersonDetails(PersonByName(s.name)) * } * } */ GroupingLayer <string, Contact> section2 = new GroupingLayer <string, Contact>("Speakers", Event.Speakers); Deployment.Current.Dispatcher.BeginInvoke(() => { var prepareSections = new List <IEnumerable>(); prepareSections.Add(section1); prepareSections.Add(section2); Sections = prepareSections; }); }
private void PrepareData() { /** * section { * cell Value2 { * text= "mail" * details= person.mail * action= ("mailto:" person.mail) * } * cell Value2 { * text= "phone" * details= person.phone * action= ("tel:" person.phone) * } * } */ GroupingLayer <string, Contact> section1 = new GroupingLayer <string, Contact>("Contact", new List <Contact>() { Contact }); Deployment.Current.Dispatcher.BeginInvoke(() => { var prepareSections = new List <IEnumerable>(); prepareSections.Add(section1); Sections = prepareSections; }); }
private void PrepareData() { /** section { cell Subtitle { text= event.contact details= "Contact" action= PersonDetails(PersonByName(event.contact)) } } */ GroupingLayer<string, string> section1 = new GroupingLayer<string, string>("Contact", new List<string>() {Event.Contact }); /** section { cell Subtitle foreach event.speakers as s { text= s.name details= s.role action= PersonDetails(PersonByName(s.name)) } } */ GroupingLayer<string, Contact> section2 = new GroupingLayer<string, Contact>("Speakers", Event.Speakers); Deployment.Current.Dispatcher.BeginInvoke(() => { var prepareSections = new List<IEnumerable>(); prepareSections.Add(section1); prepareSections.Add(section2); Sections = prepareSections; }); }
private void PrepareData() { /** section { cell Value2 { text= "mail" details= person.mail action= ("mailto:" person.mail) } cell Value2 { text= "phone" details= person.phone action= ("tel:" person.phone) } } */ GroupingLayer<string, Contact> section1 = new GroupingLayer<string, Contact>("Contact", new List<Contact>() { Contact }); Deployment.Current.Dispatcher.BeginInvoke(() => { var prepareSections = new List<IEnumerable>(); prepareSections.Add(section1); Sections = prepareSections; }); }