We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcd9b26 commit dfaf623Copy full SHA for dfaf623
Microsoft.Toolkit.Uwp.UI.Controls.Core/ImageEx/ImageExBase.Source.cs
@@ -88,6 +88,11 @@ private void AttachSource(ImageSource source)
88
{
89
VisualStateManager.GoToState(this, UnloadedState, true);
90
}
91
+ else if (source is BitmapSource bitmap && bitmap.PixelHeight > 0 && bitmap.PixelWidth > 0)
92
+ {
93
+ VisualStateManager.GoToState(this, LoadedState, true);
94
+ ImageExOpened?.Invoke(this, new ImageExOpenedEventArgs());
95
+ }
96
97
98
private async void SetSource(object source)
0 commit comments