I have a WPF Canvas
and there are 3 WPF user controls on it. All of them have a Z-index set, like 1, 2, or 3. One of the user controls contains a web browser control.
After this I add the Rectangle
WPF control to the Canvas
with a Z-index of 100.
The issue is that the user control which contains the web browser and has a Z-index of 2 is visible but the others aren't (because of the black rectangle). But it shouldn't work like that, the UserControl has a Z-index of 2!
Why does this happen, and how can I fix it?