EllipseGeometry is not rendering in Silverlight

Posted by Mark Nelson on Stack Overflow See other posts from Stack Overflow or by Mark Nelson
Published on 2012-10-06T05:29:25Z Indexed on 2012/10/06 9:37 UTC
Read the original article Hit count: 255

I'm trying to draw a circle in WP7 Silverlight using EllipseGeometry instead of Ellipse. The sample XAML in MSDN does not display anything on the canvas in Visual Studio. If I run the app, it does display in the emulator.

<Canvas> 
    <Path Fill="Gold" Stroke="Black" StrokeThickness="1">
        <Path.Data>
            <EllipseGeometry Center="50,50" RadiusX="50" RadiusY="50" />
        </Path.Data>
    </Path> 
</Canvas>

Any ideas what is happening?

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about windows-phone-7