Get all music files from device using .NET MAUI

1 Answer 330 Views
General Discussions ListView Path
Warren
Top achievements
Rank 1
Warren asked on 05 Sep 2023, 07:41 AM

I am creating a music player app so what i want to automatically load all songs from phone or windows computer and display them in a listView so that I can use them to play from selecting them.

I am kind of a beginner :)

Thanks

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 05 Sep 2023, 08:35 AM | edited on 05 Sep 2023, 09:18 AM

Hello Warren,

How to access files from device in your app is a custom logic implementation. I have found this link that could be of help: https://learn.microsoft.com/en-us/answers/questions/1039170/music-player-in-maui 
You can also submit questions in Microsoft Q&A, StackOverflow etc. This question is not related to Telerik controls. 

Regarding to this question: How to populate the Telerik ListView with Data: The control has ItemsSource property. So you can add the data in a collection and then bind this collection to the ItemsSource. Here is a getting started example: https://docs.telerik.com/devtools/maui/controls/listview/getting-started 

More details about Data Binding can be found in Microsoft Documentation: https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/data-binding/ 

Regards,
Didi
Progress Telerik

A brand new .NET MAUI course was just added to the Virtual Classroom. The training course is developed to help you get started with the Telerik UI for .NET MAUI components and features. It aims to put you in the shoes of an engineer who adds new features to an existing application. You can check it out at https://learn.telerik.com
Tags
General Discussions ListView Path
Asked by
Warren
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or