Image.ImageOpened Event

July 28, 2014

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.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public event EventHandler<RoutedEventArgs> ImageOpened
<Image ImageOpened="eventhandler"/>

If the image-decode 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:
© 2014 Microsoft