views:

51

answers:

0

I am writing a simple application in SilverLight2, which needs to draw an ellipse inside a canvas element - the ellipse position, height and width are computed during runtime.

What I need to fix is the clipping of the ellipse. If it gets to big it is drawn partially outside the canvas, above other ui elements. I want the bounding box of the canvas to be also bounding box of the ellipse. I've made couple of tries with Clip property and rectangle geometries but with no success. Any ideas?