1

I was trying to implement a code found on , but that doesn't work .

My code is : mediaStateTextBlock.Text = m.CurrentState.ToString();

It says MediaElement doesn't contain definition for CurrentState

Can anyone please tell me what is the problem ?

Update : Still problem is not solved .

error - 1 error - 2

Maifee Ul Asad
  • 3,992
  • 6
  • 38
  • 86

1 Answers1

2

Add reference to Windows.UI.Xaml.Controls.dll, Windows.dll DLLs

Nehorai Elbaz
  • 2,412
  • 8
  • 17
  • 1
    Please see , I have edited the post . I have also downloaded 'Windows 8.1 SDK' as I read in this [thread](https://stackoverflow.com/questions/44443661/the-type-or-namespace-name-windows-could-not-be-found) , but no luck . – Maifee Ul Asad Jan 21 '19 at 18:30
  • I had some problem in my previous setup, I re-installed windows for some reason and this thing worked, although it has been more than 1 month since than. I just saw this question without tick yesterday and came to tell you **thanks** – Maifee Ul Asad Sep 19 '19 at 16:48