Reputation: 1092
What I need to do is to stretch the control to fill entire Canvas. I think I have to use a Canvas (I don't want my control to be clipped when rendered outside the container - as far as I know all the other containers perform clipping - Grid, Border... - maybe there is another solution?)
If I put the control inside Canvas it works fine (I mean it is not clipped). However, it doesn't fill entire Canvas. I was trying to bind to the Canvas width and height - with no results.
Do you have any ideas or clues?
Thanks in advance!
Upvotes: 3
Views: 1694
Reputation: 189457
A control can escape the container such as a Border
or a Grid
by having negative margins. So perhaps you should return to using a Grid
and play around with placement using column and row definitions and using negative margins where you need them.
Upvotes: 2