We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I had a code like this:
[TestMethod] public void Test() { var logs = new List<string>(); var image = new Image(); var bitmapImage = new BitmapImage(new Uri("ms-appx:///Assets/test_image_100_150.png")); bitmapImage.ImageFailed += BitmapImage_ImageFailed; bitmapImage.DownloadProgress += BitmapImage_DownloadProgress; bitmapImage.ImageOpened += BitmapImage_ImageOpened; image.ImageFailed += Image_ImageFailed; image.ImageOpened += Image_ImageOpened; var imageOpened = false; void BitmapImage_ImageFailed(object sender, ExceptionRoutedEventArgs e) => logs.Add("BitmapImage_ImageFailed"); void BitmapImage_DownloadProgress(object sender, DownloadProgressEventArgs e) => logs.Add("BitmapImage_DownloadProgress"); void BitmapImage_ImageOpened(object sender, RoutedEventArgs e) => logs.Add("BitmapImage_ImageOpened"); void Image_ImageFailed(object sender, ExceptionRoutedEventArgs e) => logs.Add("Image_ImageFailed"); void Image_ImageOpened(object sender, RoutedEventArgs e) { logs.Add("Image_ImageOpened"); imageOpened = true; } $$ TestServices.WindowHelper.WaitFor(() => imageOpened); }
Invoke await completion in place of $$.
await
$$
Image_ImageOpened will be async instead of Test
Image_ImageOpened
async
Test
The text was updated successfully, but these errors were encountered:
genlu
Successfully merging a pull request may close this issue.
I had a code like this:
Invoke
await
completion in place of$$
.Image_ImageOpened
will beasync
instead ofTest
The text was updated successfully, but these errors were encountered: