I want to create my own control derived from ListBoxItem, in my control there should exist a polygon which will be displayed. The polygon should contain 3 points, so a triangle. This triangle should then be displayed. Since the triangle should exist in ListBoxItem, I have no idea how to display it. And above all, I want several ListBoxItems to be contained in one ListBox, in order to create a 2D field.
How exactly do I make this work, because I'm not that experienced in creating custom controls and would really need your help.