-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polygon.Points has wrong nullability attributes #10986
Comments
Yes, it is by design as it seems from the API. Since it's a styled property. |
I want to add the adding in the second example is a little verbose when you can initialize a list with those points like this:
|
@maxkatz6 would this be an appropriate fix for this or am I misunderstanding? changed from which was throwing a warning saying it should use setcurrentvalue when setting it's own styled or attached properties |
@lhsrebel72 no, it shouldn't be changed. See #10370 (comment) As for this issue, it was resolved before, and that code doesn't throw anymore. |
Describe the bug
Adding points to a Shape (Polygon, Polyline,...) throw NullReferenceException:
To Reproduce
Expected behavior
My current workaround:
(Or do I have to do it like this?)
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: