Cannot assign property "Actions"
See original GitHub issueHi,
I’ve been using Behaviors without a problem until Xamarin.Forms v3.0. When I updated to Xamarin Forms v3.0, I got the below exception
Cannot assign property “Actions”: Property does not exist, or is not assignable, or mismatching type between value and property
MyView.xaml
<ContentPage.Behaviors>
<behaviors:EventHandlerBehavior EventName="Appearing">
<behaviors:InvokeCommandAction Command="{Binding PageAppearingCommand}" />
</behaviors:EventHandlerBehavior>
</ContentPage.Behaviors>
MyViewModel.cs
public ICommand PageAppearingCommand => new Command(async () =>
{
await PageAppearingAsync();
});
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Cannot assign to property: 'actions' is a get-only property
I am making my first app and here is my biggest problem. I would like to make a notification in which i can...
Read more >TypeError: can't assign to property "x" on "y": not an object
The JavaScript strict mode exception "can't assign to property" occurs when attempting to create a property on primitive value such as a symbol ......
Read more >Cannot assign to property: "Example" is a get-only property
I'm working on an exercise app and have been running into the error "Cannot assign to property: "weightArray" is a get-only property".
Read more >SOLVED: Cannot assign to property because the value ...
In the code snippet below I am trying to assign a value from the array activityDays to a variable and then use that...
Read more >How to fix “Cannot assign to property: 'self' is immutable”
SwiftUI's views should be structs, which means they are immutable by default. If this were our own code we could mark methods using...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A temporary fix, to unblock people, is to explicitly declare an
ActionCollection
around the actions:In the meantime, I’ll work on fixing this.
This is now fixed, but I’m taking the opportunity to add a couple of extra bits of new functionality, so it’ll be the end of the week before updated source code/NuGet is pushed live.