So here's the problem:

```
<window>
    <border>
        <grid>
            <border>

            </border>
        </grid>
    </border>
</window

```

Now all the borders have a dropshadow around them. Means my window is a bit larger and transparent, but has a border in it to get this fancy shadow around it.

But as i have multiple shadows, they overlap at some point and then it looks all weird :(

Is there the possibility that i can make the outer border cut its content? So that the inner content cant overlap the border?

I don't know if its clear, so here's a screenshot:

Look at the window's red titlebar's edges to the right and to the left:

![](https://i.stack.imgur.com/uYaTP.jpg)