WPF new item goes behind everything

77 views Asked by At

I have a window and I aligned and set everything but now I want to add some Line-s or LineGeometry-es to this window. If I don't drag and drop something from the toolbox just declare it in code or xaml my lines created behind the grid or everything inspite of where I do it. When I slide my left gridline the new line appears like the gridlines cover it. If I recreate the gridlines everything is messed up and I don't want to start over the window

1

There are 1 answers

0
Wax On

I opened a copy of my project and inserted the code and there, it works fine inspite of they are copies of each other. (I don't get it why)