Skip to content

Instantly share code, notes, and snippets.

@JoanM
Created December 20, 2016 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoanM/86beb09a2b7172c481e8b0f68927bf80 to your computer and use it in GitHub Desktop.
Save JoanM/86beb09a2b7172c481e8b0f68927bf80 to your computer and use it in GitHub Desktop.
Update text of button after await
public void OnButtonClicked(object sender, RoutedEventArgs e)
{
var bynderContents = await DoCurlAsync();
myTextBlock.Text = bynderContents;
}
@sroe
Copy link

sroe commented Jul 16, 2019

This wouldn't compile because async keyword is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment