"Xamarin.Forms.Xaml.XamlParseException occurred" error

logeshpalani98logeshpalani98 ✭✭✭USMember ✭✭✭

Xamarin.Forms.Xaml.XamlParseException occurred
HResult=0x80131500
Message=Position 9:37. No method OnSignUpButtonClicked found on type Navigation.MainPage
Source=
StackTrace:
at Xamarin.Forms.Xaml.ApplyPropertiesVisitor.SetPropertyValue(Object xamlelement, XmlName propertyName, Object value, Object rootElement, INode node, HydratationContext context, IXmlLineInfo lineInfo)
at Xamarin.Forms.Xaml.ApplyPropertiesVisitor.Visit(ValueNode node, INode parentNode)
at Xamarin.Forms.Xaml.ValueNode.Accept(IXamlNodeVisitor visitor, INode parentNode)
at Xamarin.Forms.Xaml.ElementNode.Accept(IXamlNodeVisitor visitor, INode parentNode)
at Xamarin.Forms.Xaml.RootNode.Accept(IXamlNodeVisitor visitor, INode parentNode)
at Xamarin.Forms.Xaml.XamlLoader.Visit(RootNode rootnode, HydratationContext visitorContext)
at Xamarin.Forms.Xaml.XamlLoader.Load(Object view, String xaml)
at Xamarin.Forms.Xaml.XamlLoader.Load(Object view, Type callingType)
at Xamarin.Forms.Xaml.Extensions.LoadFromXaml[TXaml](TXaml view, Type callingType)
at Navigation.MainPage.InitializeComponent() in C:\Users\Mic 18\Documents\Visual Studio 2017\Projects\Navigation\Navigation\Navigation\obj\Debug\Navigation.MainPage.xaml.g.cs:line 29
at Navigation.MainPage..ctor() in C:\Users\Mic 18\Documents\Visual Studio 2017\Projects\Navigation\Navigation\Navigation\MainPage.xaml.cs:line 14
at Navigation.SignUpPage.d__1.MoveNext() in C:\Users\Mic 18\Documents\Visual Studio 2017\Projects\Navigation\Navigation\Navigation\SignUpPage.xaml.cs:line 39

this error page screenshot given below

Tagged:

Best Answer

  • logeshpalani98logeshpalani98 ✭✭✭ US ✭✭✭
    Accepted Answer

    r
    am coded correctly but this error was occur how to solve this

Answers

  • SebastianKruseSebastianKruse ✭✭✭ USMember ✭✭✭

    Read the error...

    "No method OnSignUpButtonClicked found on type Navigation.MainPage"

    on your screenshot you are on the SignUpPage not on the MainPage. Also I would recommand to use MVVM.

  • VenkataSwamyVenkataSwamy ✭✭✭ INMember ✭✭✭

    Hiii @Logesh.Palani

    You have to write OnSignUpButtonClicked clicked event in SignUpPage .xaml.cs

    private void OnSignUpButtonClicked (Object sender,EventArgs e)
    {

        }
    

    As @SebastianKruse said have to use MVVM pattern

  • logeshpalani98logeshpalani98 ✭✭✭ USMember ✭✭✭
    Accepted Answer

    r
    am coded correctly but this error was occur how to solve this

Sign In or Register to comment.