Master Page and List error RRS feed

  • Question

  • User386247 posted

    Hi Team,

    Im creating a XamarinForms app, and now im trying to add a side navigation menu for the start page but when im trying to preview it an error pops up saying that "Master and Detail must be set before using a MasterDetailPage".

    Also on the C# class in which i work the options for the menu im getting an error saying "Argument 1 cannot conver from App.Models.ListMenu to Xamarin.Forms.Menu" And apparently there are some Libraries related to netstandard that could not be found, i already deleted my Bin and Obj folders and i have everything up to date.

    Can you guys please help ?


    Monday, October 12, 2020 3:30 AM

All replies

  • User369978 posted

    The first error

    You forget to initialize MasterDetailPage.Detail in Xaml , refer to the following official sample



    The second error

    The type is not compatible , why you want to add a ListMenu object into Menu List ? Does ListMenu inherit from Menu ?

    Monday, October 12, 2020 5:44 AM