select data from sqlite database and binding values to listbox item in windows phone 8 apps

后端 未结 2 1406
误落风尘
误落风尘 2021-01-22 05:39

I am trying to creating windows phone 8 project with database (sqlite) techniques

I have tried the following:

1) Download sqlite fie from server & saved it

2条回答
  •  长发绾君心
    2021-01-22 06:22

    I can't see any code where you are adding data to a ListBox. If you have data pulled from the database, add it to ItemsSource property that's all.

    scheduleListbox.ItemsSource = retrievedTasks;
    

    I do not understand why you use ItemsSource="{Binding}" on selectTeam ListPicker when you fill it in the constructor. And why do you use the same to scheduleListbox. See Binding overview

    If you youse empty binding syntax: {Binding}. The ListBox inherits the DataContext from a parent element. When the path is not specified, the default is to bind to the entire object.

提交回复
热议问题