have just started trying to build my first wp7 app, and am learning c# and xaml from scratch. Ive made good progress but am having trouble with the silverlight toolkit listpicker.
I databound a list picker using the following template
bound to this: List concunitsource = new List();
concunitsource.Add(new Units() { Molar = "pM", Factor = -12});
concunitsource.Add(new Units() { Molar = "nM", Factor = -9, Grams = "ng"});
concunitsource.Add(new Units() { Molar = "µM", Factor = -6, Grams = "µg", Litres = "µL" });
concunitsource.Add(new Units() { Molar = "mM", Factor = -3, Grams = "mg", Litres = "mL" });
concunitsource.Add(new Units() { Molar = "M", Factor = 0, Grams = "g", Litres = "L" });
the listpicker binds but i get two small blank but selectable entries at the top (presumably space for pico and nano litres) i left these out as they would not get used by the user. is there anyway to prevent this, and just show the 3 that i want?
many thanks for your time
Asked in Java - 105 days ago
Tags: Help : Databound Listpicker Blank Entries
Report abuse