Issue with TaskResultConverter when using MVVM toolkit with WinUI3 (AsyncRelayCommand) #4492
Unanswered
omar-awwad
asked this question in
Questions & Help
Replies: 1 comment 4 replies
-
I think I get to know the source of this error.
this line was the source of the error, any explanation for that? is this an issue or did I miss something |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a new WinUI 3 project to try the MVVM toolkit (AsyncRelayCommand sample) ,
I used the same code as in the documentation but I get this error
I think it is related to TaskResultConverter when used in the binding
<Run Text="{x:Bind MyViewModel.DownloadTextCommand.ExecutionTask, Converter={StaticResource TaskResultConverter}, Mode=OneWay}"/>
, when i remove the converter attribute ; no error occurs but get this message when click the button :I used the following package in the Page XAML
xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters"
while the MVVM sample app code use the
xmlns:converters="using:Microsoft.Toolkit.Uwp.UI.Converters"
when trying to install Microsoft.Toolkit.Uwp.UI I get this error :
Error NU1202 Package Microsoft.Toolkit.Uwp.UI 7.1.2 is not compatible with net6.0-windows10.0.19041 (.NETCoreApp,Version=v6.0) / win10-x86. Package Microsoft.Toolkit.Uwp.UI 7.1.2 supports: uap10.0.17763 (UAP,Version=v10.0.17763)
I get confused with which version to use,
here is my project config
any help?
Beta Was this translation helpful? Give feedback.
All reactions