-
-
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
feat: Also allows using string instead of {x:Type} in ControlTemplate.TargetType #11575
feat: Also allows using string instead of {x:Type} in ControlTemplate.TargetType #11575
Conversation
fea3fef
to
2b11e17
Compare
You can test this PR using the following package version. |
You can test this PR using the following package version. |
@billhenn Can you try this PR if it solve your problem? |
@workgroupengineering Yes, I can confirm this PR fixes my issue. Thank you. |
I've not had time to review this PR yet, but I suspect that we're hitting ordering issues with the transformers as iirc there should be a transformer which transforms |
If you suggest the area to see, I'll try to check. |
@workgroupengineering sorry I'm not really familiar enough with the XAML compiler internals to be able to point you to it, this was just from a vague memory of hitting something similar a while ago. Will probably need input from someone who knows this part of the code a bit better. |
I investigated, Lines 28 to 33 in 4552278
|
You can test this PR using the following package version. |
This PR has been floating out there for a while. Just curious as to the status since it would be nice to have the bug fix in place for standalone ControlTemplate usage. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Even though it's probably not the best solution, it does match other transformers and adds a test, so it can be refactored in the future.
feat: Also allows using string instead of {x:Type} in ControlTemplate.TargetType
What does the pull request do?
Allows using string instead of {x:Type} in ControlTemplate.TargetType
What is the current behavior?
Throw
Unable to resolve suitable regular or attached property
What is the updated/expected behavior with this PR?
How was the solution implemented (if it's not obvious)?
Checklist
Breaking changes
Obsoletions / Deprecations
Fixed issues
Fixes #11334