x:Bind
not support the property generated by source generator
#14409
Labels
area/code-generation
Categorizes an issue or PR as relevant to code generation
area/xBind 🪢
Categorizes an issue or PR as relevant to x:Bind
difficulty/medium 🤔
Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI
kind/bug
Something isn't working
project/binding 🪢
Categorizes an issue or PR as relevant to the binding engine
Current behavior
I have generated the property via
IIncrementalGenerator
source generator like this:and bind it in the xaml file:
then build, it comes out:
Expected behavior
No response
How to reproduce it (as minimally and precisely as possible)
No response
Workaround
No response
Works on UWP/WinUI
Yes
Environment
No response
NuGet package version(s)
No response
Affected platforms
No response
IDE
Visual Studio 2022
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
What i have bound to the Text of TextBox is property
Code
, but the error points to the ViewModel type converting fail.The text was updated successfully, but these errors were encountered: