Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Image Source Binding not always updating image on screen (android)

$
0
0

I have three images in my android Resources\Drawable, the images are used to show the connection status to a device.
The image is held within a stacklayout. The image source is updated via a IValueConverter.
For some reason the image on screen doesn't not always update, sometimes the image disappeares. To check my code logic I added a label that uses the same converter and it always updates as expected (shows the new image source), but not the image. When I interact with the device (tap the screen), the image will update......
Does anyone know what's going on here?

`<StackLayout
      Spacing="5" Padding="5, 5, 5, 5" HeightRequest="40" >
      <Label Text="{Binding DeviceConnectionManager, Converter={StaticResource wifiConvert}}"/>
      <Image Source="{Binding DeviceConnectionManager, Converter={StaticResource wifiConvert}}" HorizontalOptions="Start"/>

</StackLayout>`

Thanks,
Philip


Viewing all articles
Browse latest Browse all 77050

Trending Articles