-
Feb 12th, 2015, 01:31 PM
#1
Thread Starter
Frenzied Member
Best way to generate table?
Hi!
We are debating which is is the best way in XAML (for windows phone 8.1) to generate a simple grid with x times y cells, where each cell should be clickable and have it's own datatemplate. What should the container Control for this table be?
One popular idea is to use a listbox with a datatemplate consisting of a stackpanel for each row and each stackpanel holds multiple user Controls represesenting each cell. If the table was a calendar, reprensenting a month view, each dataitem should represent one week, and each stackpanel should hold 7 user Controls representing each day...
Are there any better ideas? It should support MVVM.
/H
-
Jan 30th, 2017, 03:47 AM
#2
Banned
Re: Best way to generate table?
Hi,
Actually, I'm a beginner to this. I have searched for your query and got sample code for creating table. I do not have a clear idea whether you are looking for the same or not. Though, I think that both the links msdn.microsoft.com/en-us/library/ms750416(v=vs.110).aspx and wpf-tutorial.com/panels/grid-rows-and-columns might be helpful.
Last edited by si_the_geek; Jan 30th, 2017 at 08:07 AM.
Reason: removed advertising
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|