BitmapImage.ImageOpened Event
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Occurs when the image source is downloaded and decoded with no failure. You can use this event to determine the size of an image before rendering it.
Namespace: System.Windows.Media.Imaging
Assembly: System.Windows (in System.Windows.dll)
Syntax
Public Event ImageOpened As EventHandler(Of RoutedEventArgs)
public event EventHandler<RoutedEventArgs> ImageOpened
Remarks
If the image decoding fails for any reason, this event does not fire. Once this event fires, the PixelHeight and PixelWidth properties are guaranteed to be valid.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone