Hello,
Welcome to our Microsoft Q&A platform!
Cannot access a disposed object. Object name: 'PrimaryToolbarItem'.
Hi, I tested the code in a Shell project on iOS platform and faced the same issue. The Embedded works fine for the normal image in the contentPage, but it will crash for the ToolbarItem
. You could report this issue to the product team on github for a solution.
If you want to place the images to shared project and load it, you could use ImageSource.FromFile()
instead.
toolbar_item.IconImageSource = ImageSource.FromFile("test.png");
Best Regards,
Jarvan Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.