Skip to content

Commit a483c2f

Browse files
committed
Add a check for DesignMode for TileControl
1 parent 9811f25 commit a483c2f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Microsoft.Toolkit.Uwp.UI.Controls/TileControl/TileControl.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,11 @@ private static async void OnImageSourceChanged(DependencyObject d, DependencyPro
387387
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
388388
private async Task<bool> LoadImageBrush(Uri uri)
389389
{
390+
if (DesignMode.DesignModeEnabled)
391+
{
392+
return false;
393+
}
394+
390395
var strategy = Strategy;
391396

392397
if (strategy == UIStrategy.Composition)

0 commit comments

Comments
 (0)