windows 8 - How to build my own DataGrid for Win8 App Store? -


i have list of items want display in table-like control, win8 app store. lets object item contains barcode, price , amount (all double types). want present table different columns each prop of object. present table in layoutawarepage. ideas?

you can start here : how data grid ui collection of items?

mytoolkit - datagrid

usage of mytoolkit datagrid

<controls:datagrid x:name="dg">     <controls:datagrid.columns>         <controls:datagridtextcolumn width="200" binding="{binding firstname}"  />         <controls:datagridtextcolumn width="200" binding="{binding lastname}" />     </controls:datagrid.columns> </controls:datagrid> 
protected override void onnavigatedto(navigationeventargs e) {     observablecollection<viewmodel> people = new observablecollection<viewmodel>     {         new viewmodel("fname", "lname"),         new viewmodel("fname", "lname"),         new viewmodel("fname", "lname"),         new viewmodel("fname", "lname")     };      dg.itemssource = people; }  public class viewmodel {     public viewmodel(string firstname, string lastname)     {         firstname = firstname;         lastname = lastname;     }     public string firstname { get; set; }     public string lastname { get; set; } } 

Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -