Xamarin.forms not listed in add new item

215 views Asked by At

I would like to add a "ContentView" (for making an equivalent to "User Control" in Win Form) in my Xamarin Project (VS2019) but as I try to "Add new Item" I have no templates for Xamarin.Forms. I have installed all necessary packages and extensions.

Do I miss something? or do I make any mistake?

Thank you all for your support

Screenshot

2

There are 2 answers

0
Wilson Vargas On

I think you have created a Xamarin.Android project. You need create is a Xamarin.Forms project to add a ContentView. The structure of Xamarin.Forms project is this:

enter image description here

So you must add a ContentView to the marked .Net Standard project.

0
nevermore On

What you created is a Xamarin.Android not a Xamarin.forms Project. There are detailed explanations in the document and you can check about how to create those projects.

ContentView is a control in Xamarin.forms, so you should create a Xamarin.forms project and add it there.