With Silverlight, Panels do not clip their contents by default. See the following example:
Where we have a Grid containing another Grid which itself contains an ellipse, and a Canvas which contains an ellipse:...
Often this is not the desired effect (although it is actually quite a useful feature of Canvas; You can simply add a Canvas to your visual tree without explicitly or implicitly setting its Size and use it as a mechanism for absolute positioning its children).
Fortunately Silverlight provides a Clip property on UIElement, allowing you to provide the clipping geometry for the element:...
No comments yet, be the first one to post comment.