У меня работает следующее:
Код: Выделить всё
SQLiteConnection Database = new SQLiteConnection(Constants.DatabasePath, Constants.Flags);
public class Location
{
public string LocationID { get; set; }
public string LocationName { get; set; }
}
List Locations = new List();
String loc = "1290";
Locations = Database.Query("Select * from Location where LocationID = "+loc).ToList();
// Event is a Picker
Event.ItemsSource = Locations;
Event.ItemDisplayBinding = new Binding("LocationName");
Подробнее здесь: https://stackoverflow.com/questions/786 ... -of-object