Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BitmapImage.ImageOpened Event

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)

public event EventHandler<RoutedEventArgs> ImageOpened

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft