behaviors icon indicating copy to clipboard operation
behaviors copied to clipboard

InvokeCommandAction xaml designer error

Open Simba-Mupfunya opened this issue 5 years ago • 13 comments

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'.

Simba-Mupfunya avatar Mar 19 '19 09:03 Simba-Mupfunya

@davidbritch could you take a look to this problem? I have the same with XF4 thanks!!

acaliaro avatar Jun 13 '19 08:06 acaliaro

@davidbritch I have the same problem here, with XF 3.6.0.34457. Any solution to this problem? Thank you very much. -m

mrutter avatar Jun 26 '19 21:06 mrutter

I too have this problem.

danjrauch avatar Feb 29 '20 16:02 danjrauch

In BehaviorPropertiesBase, changing ActionCollection by Collection<IAction> would resolve this.

sdarveau avatar Mar 09 '20 19:03 sdarveau

Same problem is here.

kerberosargos avatar Jun 12 '20 13:06 kerberosargos

Still a problem. @davidbritch can you take a look at @sdarveau's PR?

chr0m1ng avatar Jul 20 '20 04:07 chr0m1ng

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'.

DanielHJA avatar Oct 22 '20 10:10 DanielHJA

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'.

dan-SLT avatar Feb 23 '21 14:02 dan-SLT

I'm having this problem, too. Did anyone find a solution, yet?

MarcK95 avatar Mar 19 '21 12:03 MarcK95

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.

dan-SLT avatar Mar 19 '21 12:03 dan-SLT

Has this been solved yet @davidbritch? It seems this is a pervasive issue.

dtkutzke avatar Jun 14 '21 00:06 dtkutzke

I think it's time to use the Xamarin Community Toolkit solution

acaliaro avatar Jun 14 '21 09:06 acaliaro

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.

dan-SLT avatar Jun 14 '21 12:06 dan-SLT