I’m trying to add a trash can for deleting items from my inventory. However, I don’t want items to automatically be deleted. Instead, I want a button to appear below the trash can whenever an item is in the trash. Every image in my inventory is part of a uniform grid panel. Is there a way for me to keep the trash image alligned with every other image, while also having a button right below it?
Menu Anchor might be what you’re looking for.
You could add the Menu Anchor below the trash image and add the button as a popup in the menu anchor.
I see how it could be useful for making a button appear and disappear, but I don’t understand how I could use it to make the button appear below my trash can image without altering the alignment of the trash can in the uniform grid.
Make every image in the bottom row be a widget, that contains both an image, and optionally a trash can. Then align those images to the top of the row container.