Negative Margin?
-
Well, negative margin does work, but not the way I want it to do this.. With a negative margin, a control can even be displayed anywhere out of its parent! I want the control to be cut off at the border of its parent.. How can you do this?
-
Well, negative margin does work, but not the way I want it to do this.. With a negative margin, a control can even be displayed anywhere out of its parent! I want the control to be cut off at the border of its parent.. How can you do this?
Control.ClipToBounds() looks like a good place to start.
-
Well, negative margin does work, but not the way I want it to do this.. With a negative margin, a control can even be displayed anywhere out of its parent! I want the control to be cut off at the border of its parent.. How can you do this?
Use this : ClipToBounds="True" Example :
<Rectangle Fill="#FF999999" Stroke="#FF000000" Margin="225,185,166,169" ClipToBounds="True"/>