Skip to content

Commit 5a1d4f7

Browse files
committed
Fix async void issues
1 parent 44e39a4 commit 5a1d4f7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/MarkdownTextBlock/samples/MarkdownTextBlockImageProviderSample.xaml.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ public MarkdownTextBlockImageProviderSample()
3434
this.Loaded += OnLoaded;
3535
}
3636

37-
private void OnLoaded(object sender, RoutedEventArgs e)
37+
private async void OnLoaded(object sender, RoutedEventArgs e)
3838
{
39-
ApplyConfiguration();
39+
await ApplyConfigurationAsync();
4040
}
4141

42-
private void ApplyButton_Click(object sender, RoutedEventArgs e)
42+
private async void ApplyButton_Click(object sender, RoutedEventArgs e)
4343
{
44-
ApplyConfiguration();
44+
await ApplyConfigurationAsync();
4545
}
4646

47-
private async void ApplyConfiguration()
47+
private async Task ApplyConfigurationAsync()
4848
{
4949
var providerWidth = ProviderWidthBox.Value;
5050
var providerHeight = ProviderHeightBox.Value;

0 commit comments

Comments
 (0)