[C++/WinRT] Two way binding from String to IInspectable not compiling #4787
Labels
area-Binding
area-XamlCompiler
bug
Something isn't working
product-winui3
WinUI 3 issues
team-Markup
Issue for the Markup team
Describe the bug
Binding a string two way to a control where the property is actually an IInspectable and not an hstring doesn't seem to compile.
Steps to reproduce the bug
Steps to reproduce the behavior:
Expected behavior
Two way binding for string should work
Version Info
WinUI 3 - Project Reunion 0.5: 0.5.0
Windows app type:
Additional context
The generated code seems to call winrt::to_hstring for bind back however winrt::to_hstring doesn't take an IInspectable. It should use unbox_value to get the boxed hstring value for the object.
The text was updated successfully, but these errors were encountered: