I'm migrating my WinPhone8.1 project to UWP and I found some incompatibility of the behaviors in the xaml. It seems that I need to install Microsoft.Xaml.Behaviors.Uwp.Managed and Microsoft.Xaml.Behaviors.Uwp.Native. However, after installation, I got compilation error like this:An assembly with the same simple name 'Microsoft.Xaml.Interactivity' has already been imported. Try removing one of the references... I think xaml.interactivity is provided by the framework and I cann't see it in the references in solution explorer. I'm wondering if any one can give some idea on this. Here is a screenshot of the references excluding my own dlls.
Code snippet
<interactivity:Interaction.Behaviors> <core:EventTriggerBehavior EventName="ItemClick"> <core:InvokeCommandAction Command="{Binding ViewSomeCommand}" InputConverter="{StaticResource ItemClickedToSomeConverter}" /> </core:EventTriggerBehavior> </interactivity:Interaction.Behaviors>
2 Answers
Answers 1
Only install Microsoft.Xaml.Behaviors.Uwp.Managed will solve the problem
0 comments:
Post a Comment