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

Invalid cast from 'WinRT.IInspectable' to 'Microsoft.UI.Xaml.Data.ICustomProperty'. #856

Closed
bkudiess opened this issue May 28, 2021 · 0 comments · Fixed by #877
Closed
Assignees
Labels
bug Something isn't working fixed Issue has been fixed in an upcoming or existing release
Milestone

Comments

@bkudiess
Copy link

Link to repro project:
https://github.com/bkudiess/ICustomPropertyRepro

ProjectReunion 0.8-preview throws the following:

var selectionModel = new SelectionModel();
selectionModel.Source = Enumerable.Range(0, 10).ToList();

selectionModel.Select(3);

var icpp = (ICustomPropertyProvider)selectionModel;
var selectedItemProperty = icpp.GetCustomProperty("SelectedItem"); // System.InvalidCastException: Invalid cast from 'WinRT.IInspectable' to 'Microsoft.UI.Xaml.Data.ICustomProperty'.
@bkudiess bkudiess added the bug Something isn't working label May 28, 2021
@angelazhangmsft angelazhangmsft added this to the Release 1.2.7 milestone Jun 3, 2021
@manodasanW manodasanW self-assigned this Jun 4, 2021
@angelazhangmsft angelazhangmsft added the fixed Issue has been fixed in an upcoming or existing release label Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed Issue has been fixed in an upcoming or existing release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants