Hello,
Welcome to our Microsoft Q&A platform!
You can use image.IsVisible
to control the image appear or disappear like following code.
private void Button_Clicked(object sender, EventArgs e)
{
// MainGrid.Children.Remove(image);
// MainGrid.Children.Add(image);
//test it click the button will hide or show the image.
image.IsVisible = !image.IsVisible;
}
I test it in Android, UWP, iOS, All of them are worked.
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.