I have the following XAML:
<ContentPage.Content>
<xct:Expander IsExpanded="true">
<StackLayout>
<xct:Expander.Header>
<Label Text="{Binding Name}"/>
</xct:Expander.Header>
<xct:Expander.ContentTemplate>
<Label Text="{Binding Item.Text}"/>
<Button Text="doSomething" Command="{Binding command}"/>
</xct:Expander.ContentTemplate>
</StackLayout>
</xct:Expander>
</ContentPage.Content>
And I get this error when compiling:
attachable property "Header" can't be found on type "Expander"
I have already installed Xamarin.CommunityToolkit
package and added
xmlns:xct="http://xamarin.com/schemas/2020/toolkit"
to the namespace.
I have also cleaned and rebuilded the project several times. Nothing works.
Any idea?