Welcome to Xamarin Guy Show Blog

Keep updated for latest and Greatest Posts from Xamarin guy

Asp.netcoreMVC with Xamarin Forms [Core #1]

This is my first article regarding xamarin forms with Asp.net core mvc so lets start :

File > New > Project > Web >  Asp.net core web application >give it name as (Myxamarintest)>WebapplicationMVC>

Step2:

Add nuget packages :

Step3 :

create a new Page as MyPage which will look like this :

 

it’s code behind will look like this :

Now we have to configure startup.cs

Add this line of code to the given class :

Now at last Inside HomeController.cs set your page as starting page :

That’s All Output :

 

 

Leave a Reply

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.