behaviors
behaviors copied to clipboard
InvokeCommandAction xaml designer error
Hello
I have the xaml below which compiles fine but shows a weird error on InvokeCommandAction when designing the xaml. This is happening in XF3.6
<behaviors:EventHandlerBehavior EventName="SlidedToIndex"> <behaviors:InvokeCommandAction Command="{Binding DaySelectedCommand}"/> </behaviors:EventHandlerBehavior>
With error: Property 'Actions' does not support values of type 'InvokeCommandAction'.
@davidbritch could you take a look to this problem? I have the same with XF4 thanks!!
@davidbritch I have the same problem here, with XF 3.6.0.34457. Any solution to this problem? Thank you very much. -m
I too have this problem.
In BehaviorPropertiesBase, changing ActionCollection by Collection<IAction> would resolve this.
Same problem is here.
Still a problem. @davidbritch can you take a look at @sdarveau's PR?
Was this every solved?
I tried implementing this package and on the following code:
<ContentPage.Behaviors>
<behaviors:EventHandlerBehavior EventName="Appearing">
<behaviors:InvokeCommandAction Command="{Binding PageAppearingCommand}" />
</behaviors:EventHandlerBehavior>
<behaviors:EventHandlerBehavior EventName="Disappearing">
<behaviors:InvokeCommandAction Command="{Binding PageDisappearingCommand}" />
</behaviors:EventHandlerBehavior>
</ContentPage.Behaviors>
I am getting this error:
Property 'Actions' does not support values of type 'InvokeCommandAction'.
I am also having this issue. Any solution available?
Was this every solved?
I tried implementing this package and on the following code:
<ContentPage.Behaviors> <behaviors:EventHandlerBehavior EventName="Appearing"> <behaviors:InvokeCommandAction Command="{Binding PageAppearingCommand}" /> </behaviors:EventHandlerBehavior> <behaviors:EventHandlerBehavior EventName="Disappearing"> <behaviors:InvokeCommandAction Command="{Binding PageDisappearingCommand}" /> </behaviors:EventHandlerBehavior> </ContentPage.Behaviors>
I am getting this error:
Property 'Actions' does not support values of type 'InvokeCommandAction'.
I'm having this problem, too. Did anyone find a solution, yet?
I reverted back to Visual Studio 2019 16.8.6 and it worked for me. However I don't know if that actually solved the issue but I had just updated to VS 2019 16.9.2 and things weren't working so I tried a lot of things including reinstall and the only solution I got was reverting back. There could be an easier fix but I didn't find one.
Has this been solved yet @davidbritch? It seems this is a pervasive issue.
I think it's time to use the Xamarin Community Toolkit solution
Since I've upgraded to Visual Studio 16.10.0 it seems to be working. My co worker also mentioned that running VS as admin worked for him.