Search code examples
c#xamlasynchronouswindows-phoneasync-await

I got this error with "await" in C# Windows phone 8.1


I'm building a music app and I want to access an SD card. I get an error with await though.


Solution

  • You need to make the method async in order to use the await keyword within it:

    private async void ListView_ContainerContentChanging(...)