If I am using scatter view that contains Library Controls. The user could drag element from the library container to scatter view. After that the user could remove the image.
I created style that contain surface button and image within view box as drag template.
The problem is with the click function of the surface button? what should i write to remove the image.
Do you want to remove the whole ScatterViewItem or just the image and keep the button? In general you remove ScatterViewItems by finding the Visual Ancestor with this method:
then you can remove the SVI from the items collection: ancestor.items.remove(descendent);