xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

Can't the polygon of forms dynamically add points? #14024

Open bbhxwl opened 3 years ago

bbhxwl commented 3 years ago

Can't the polygon of forms dynamically add points?

private void SfButton_Clicked(object sender, EventArgs e) {

        polygon.Points.Add(new Point(80, 0));
        polygon.Points.Add(new Point(100, 100));
        polygon.Points.Add(new Point(120, 200));
        polygon.Points.Add(new Point(140, 300));
        polygon.Points.Add(new Point(160, 400));
        polygon.Points.Add(new Point(180, 500));

    }
GalaxiaGuy commented 3 years ago

Do you have a reproduction project?

I tried it on iOS in the control gallery and it seemed to work fine.

bbhxwl commented 3 years ago

Do you have a reproduction project?

I tried it on iOS in the control gallery and it seemed to work fine.

I can't do the test for a long time. I can change skiasharp.

jsuarezruiz commented 3 years ago

I have tested it in different platforms using Xamarin.Forms 5.0 and can dynamically update the points (add, remove etc). Issue14024.zip update-polygon