Here we are using a FilePicker to open a file and a MediaElement to play the same.
Step 1: Open a blank app and add a MediaElement and a TextBlock either from the toolbox or by copying the following XAML code into your grid:
Step 2: Add the following namespaces to your project, which is needed in further C# code.
Step 3: Copy and paste the following code to the cs pag, which will be called on button click event.
Step 4: Run your application and test yourself.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: