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

Refresh ToolbarItem Icon

$
0
0

Hello,

Is there a way to refresh a ToolbarItem icon? My application has a ToolbarItem that represents some kind of status. This application will connect to a device and I would like to change the icon depending on the connection state. The Page contains a button that will trig this process. When the button is pressed, I look into the Page's ToolbarItems (IList) to find the corresponding item (I use the ToolbarItem's name to retrieve the item) and then I assign another icon to this item. But I notice that the icon is not refreshed, is there any possibility to achieve this?

I am working on Android and the Page is a NavigationPage.

Thank you


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>