none
WPF EllipseGeometry/Ellipse with bigger radius is not working RRS feed

  • Question

  • I have a scenario to create a circle with radius having bigger value (say 100,000,000), i will scale down to screen size and visualize.

    After that with the help of zoom option, scaling will be increased and radius will be increased similarly. At one stage, radius value will be 100,000,000. 

    Issue here is, stroke line is coming separate and fill color going outside. Screenshot and code shared below,

    

    <Grid>
            <Canvas>
                <Path
                    Fill="LightGreen"
                    Stroke="Black"
                    StrokeThickness="2">
                    <Path.Data>
                        <EllipseGeometry
                            Center="-70929579,70490894"
                            RadiusX="100000000"
                            RadiusY="100000000" />
                    </Path.Data>
                </Path>
                <!--<Ellipse
                    Name="ellipse"
                    Canvas.Left="-170929579"
                    Canvas.Top="-29509106"
                    Width="200000000"
                    Height="200000000"
                    Fill="LightCoral"
                    Stroke="Blue"
                    StrokeThickness="1" />-->
            </Canvas>
    </Grid>

    Friday, February 14, 2020 9:56 AM

Answers

All replies

  • I'd try asking for help over here.

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wpf

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Friday, February 14, 2020 12:58 PM
    Moderator
  • Question moved to right forum which given by Dave Patrick.
    Friday, February 14, 2020 1:15 PM
  • Sounds good, you're welcome.

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Friday, February 14, 2020 1:16 PM
    Moderator