Skip to content
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

Prioritize the assembly where the projected type is to look up the helper type #877

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

manodasanW
Copy link
Member

There is 2 versions of the ICustomProperty type (one in WinRT.Runtime, one in WinUI). The first is internal while the other is public. If someone tries to cast using the public one, they can run into issues where IDIC will fail to cast as it tries to use the helper type from the internal one. This change priorities looking at the helper type in the same assembly as the projected type which avoids this issue hitting.

Fixes #856

@manodasanW manodasanW requested a review from Scottj1s June 15, 2021 20:04
@manodasanW manodasanW merged commit 750ac74 into master Jun 16, 2021
@manodasanW manodasanW deleted the manodasanw/fixidicforcustomproperty branch June 16, 2021 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid cast from 'WinRT.IInspectable' to 'Microsoft.UI.Xaml.Data.ICustomProperty'.
2 participants