For example: I have a standard single-cell mesh and a control inside it (say, a button). When I move a button inside a cell, it is displayed, and if I move outside, it is not displayed, well, or, accordingly, it is partially displayed. And now it is displayed incorrectly - when I move this button, it goes outside the cell and overlaps other elements. How can I avoid this?
In Silverlight, all UIElements have a Clip property, use something like this:
<Grid Width="200" Height="100"> <Grid.Clip> <RectangleGeometry Rect="0, 0, 200, 100"/> </Grid.Clip> </Grid>
To make it easier to work with it, you can write a behavior, read more here.
Try using z-order. It all depends on what element you added before. You can also manually assign the z-index of each item.