Xamarin no bindable property or event found for Content

willb00xwillb00x Member

I have to update an old xamarin project but i recive this error in all che xaml pages:

No property, bindable property, or event found for 'Content', or mismatching type between value and property
how can i solve this errors?

One of the pages that doesn't work:

<?xml version="1.0" encoding="utf-8" ?>

USO UNO STACKLAYOUT E .MARGIN PER FARE UN MARGIN IN BASE ALLA PIATTAFORMA COSA DA NON ANDARE SOTTO LA BARRA IN IOS-->
<StackLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">

    <StackLayout.Margin>
        <OnPlatform x:TypeArguments="Thickness">
            <On Platform="iOS" Value="0,20,0,0" />
            <On Platform="Android, WinPhone, UWP" Value="0,0,0,0" />
        </OnPlatform>
    </StackLayout.Margin>

        <Grid x:Name="GridLayout" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
            <Grid.RowDefinitions>
                <RowDefinition Height="8*" />
                <RowDefinition Height="92*" />
            </Grid.RowDefinitions>

            <AbsoluteLayout x:Name="btnApriMenu"
                        Grid.Row="0" 
                        Grid.Column="0"
                        BackgroundColor="White" >

                <OnPlatform x:TypeArguments="View">
                    <OnPlatform.iOS>
                        <ffimageloading:CachedImage AbsoluteLayout.LayoutBounds="0.5,0.5,-1,-1"
                                                AbsoluteLayout.LayoutFlags="PositionProportional"
                                                DownsampleToViewSize="True"
                                                Source="logo_mipel"/>


                    </OnPlatform.iOS>
                    <OnPlatform.Android>
                        <ffimageloading:CachedImage AbsoluteLayout.LayoutBounds="0.5,0.5,-1,-1"
                                                AbsoluteLayout.LayoutFlags="PositionProportional"
                                                Source="logo_mipel"/>


                    </OnPlatform.Android>
                </OnPlatform>


                <OnPlatform x:TypeArguments="View">
                    <OnPlatform.iOS>
                        <ffimageloading:CachedImage AbsoluteLayout.LayoutBounds="0.0,0.5,-1,-1"
                                                AbsoluteLayout.LayoutFlags="PositionProportional"
                                                Margin="15,15,15,15"
                                                Source="menu_sandwitch"/>

                    </OnPlatform.iOS>
                    <OnPlatform.Android>
                        <ffimageloading:CachedImage Source="menu_sandwitch"
                                                HeightRequest="30"
                                                Margin="15,0,0,0"
                                                AbsoluteLayout.LayoutBounds="0.0,0.5,-1,-1"
                                                AbsoluteLayout.LayoutFlags="PositionProportional"/>

                    </OnPlatform.Android>
                </OnPlatform>
            </AbsoluteLayout>


            <WebView x:Name="webView"
                 Grid.Row="1" 
                 Grid.Column="0"
                 HorizontalOptions="FillAndExpand"
                 VerticalOptions="FillAndExpand"
                 BackgroundColor="White"/>




        </Grid>
</StackLayout>


cs:

using Xamarin.Forms;
using Xamarin.Forms.Xaml;

namespace Mipel.pagine
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class News : ContentPage{

    public News ()
    {
        NavigationPage.SetHasNavigationBar(this, false);
        InitializeComponent();


        var tapGestureRecognizerImageMenu = new TapGestureRecognizer();
        tapGestureRecognizerImageMenu.Tapped += (s, e) => {
            Mipel.App.MasterDetail.IsPresented = true;
        };
        btnApriMenu.GestureRecognizers.Add(tapGestureRecognizerImageMenu);

        if (Mipel.classi.Lingue.isItaliano())
        {
            webView.Source = "-";
        }
        else
        {
            webView.Source = "---";
        }



    }
}

}
All my pages get that error. if i create a new page it does't... this project was created 8 months ago then reopen 3 days ago and show all thise error

Sign In or Register to comment.