I have a StackPanel
that has two Items: ToggleButton
and ListBox
. To make the listBox looks like it's a part of the toggle button -by hiding the sharp edges
I'm thinking to give it negative margin so it moves upward, but this presumes that it's positioned under the StackPanel which is not the case, and when I give it negative margin it covers the button.
So is there a way to control how items inside StackPanel
are stacked over each other, something like Z-Index in CSS?