Hello,
You need to get these data to a collection such as List
or ObservableCollection
from the database in your project, then you can bind it in in your ViewModel.
For example. if you use Sqlite Database, you need to get data from database to List like this document: Data manipulation methods, after that, you can get this List in your ViewModel and bind it to your CollectionView. Here is document about about Data binding and MVVM, you can refer to it.
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.