# WhileBusy when loading a local image

**URL:** <https://forums.fusetools.com/t/whilebusy-when-loading-a-local-image/1223>\
**Category:** How-to Discussions\
**Created:** [September 1, 2016, 9:32am UTC](https://forums.fusetools.com/t/whilebusy-when-loading-a-local-image/1223 "2016-09-01T09:32:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaulin](https://avatars.discourse-cdn.com/v4/letter/z/d26b3c/32.png) [@zaulin](https://forums.fusetools.com/u/zaulin)\
**Post date:** [September 1, 2016, 9:32am UTC](https://forums.fusetools.com/t/whilebusy-when-loading-a-local-image/1223/1 "2016-09-01T09:32:35Z")

</div>

Hi,

when i select a picture from the camera roll it takes about 1 second to be displayed on the app. I would like to do “something” while that happens. I thought that would be done with whilebusy but it seems is not working with non url images, am i wrong?

```
<Image File="{image}" Width="80" Height="80" StretchMode="UniformToFill">
    <WhileBusy>
        <Change backgroundPic.Opacity="0"/>
    </WhileBusy>
</Image>
<Image ux:Name="backgroundPic" File="backPic.png" Width="80" Height="80" StretchMode="UniformToFill"/>

```

for example in this sample i would like the background picture to hide while the image is loading.

---

<div class="post-metadata">

**Author:** ![Edwin\_Reynoso](https://avatars.discourse-cdn.com/v4/letter/e/e99b99/32.png) [@Edwin\_Reynoso](https://forums.fusetools.com/u/Edwin_Reynoso)\
**Post date:** [September 1, 2016, 10:15am UTC](https://forums.fusetools.com/t/whilebusy-when-loading-a-local-image/1223/2 "2016-09-01T10:15:48Z")

</div>

Have not tested but try:

```auto
<Image File="{image}" Width="80" Height="80" StretchMode="UniformToFill">
    <WhileBusy>
        <Image ux:Name="backgroundPic" File="backPic.png" Width="80" Height="80" StretchMode="UniformToFill"/>
    </WhileBusy>
</Image>

```

or

```auto
<Panel>
  <Image File="{image}" Width="80" Height="80" StretchMode="UniformToFill" />
  <Image ux:Name="backgroundPic" File="backPic.png" Width="80" Height="80" StretchMode="UniformToFill"/>
  <WhileBusy>
    <Change backgroundPic.Opacity="0"/>
  </WhileBusy>
</Panel>

```
