Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 939 Bytes

imagebrush_imageopened.md

File metadata and controls

26 lines (18 loc) · 939 Bytes
-api-id -api-type
E:Microsoft.UI.Xaml.Media.ImageBrush.ImageOpened
winrt event

Microsoft.UI.Xaml.Media.ImageBrush.ImageOpened

-description

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.

-xaml-syntax

<ImageBrush ImageOpened="eventhandler"/>

-remarks

For the scenario of checking the size of an image before rendering, that info isn't part of the ImageOpened event data. Instead, the fact that the event fired is the notification that the PixelHeight and PixelWidth values of the image source (ImageSource value) are available.

-examples

-see-also