-
-
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
fix polygon/polyline load fail points within the template #12651
fix polygon/polyline load fail points within the template #12651
Conversation
@dotnet-policy-service agree |
Thank you! But this PR introduces another bug. Probably, the better fix is to call |
I agree, your idea is better. |
Optimization fixed code
…ub.com:a526684540/Avalonia into fix-polygon-polyline-unload-points-in-template
You can test this PR using the following package version. |
Note: This may fix #11560. That issue was originally noticed in a template. It wasn't tracked down fully since it was faster to work-around the issue with a Path. |
What does the pull request do?
use polygon in button's template,polygon invisible
i want fix polygon/polyline Unable to load points within the template.
What is the current behavior?
What is the updated/expected behavior with this PR?
polygon/polyline can load points within the template.
How was the solution implemented (if it's not obvious)?
Within the polygon constructor, “Points=new Points()”,BindingPriority is LocalValue;
When in the Template,loading points from xaml,BindingPriority is Template,so loading faild,the property points always the "new Points()";
Breaking changes
Obsoletions / Deprecations
Fixed issues