0
votes

I've created a Xamarin.Forms project and then I've added a "Forms Xaml Page" called Main.xaml. After that I've tried to choose a Title to the ContentPage. But I cannot find the Title property in ContentPage. Visual Studio 2015 doesn't show this option to me (see picture bellow):

Where's the Title property in ContentPage?

Also, I've put a StackLayout inside the ContentPage, but I cannot put a Button inside this StackLayout. I can put the Button inside the ContentPage, but not inside the StackLayout. Why that happens (see picture bellow)?

Why is not possible to find a Button inside the StackLayout?

I think I can access Title from codebehind, but not from XAML.

1
Intellisense is screwed up. Try setting Title and running it, ignoring the Intellisense error. It should build and run.Jason
It runs. It worked. But I would like that my Visual Studio 2015 could help me in XAML. It is not good to make a xaml without the IDE help.Raul Figueira
there are MANY other questions on SO that address fixing the Intellisense issueJason
I have some warnings: "The $(TargetFrameworkVersion) for Xamarin.Forms.Platform.dll (v7.0) is greater than the $(TargetFrameworkVersion) for your project (v6.0). You need to increase the $(TargetFrameworkVersion) for your project." and Also: "Warning IDE0006 Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled."Raul Figueira

1 Answers

0
votes

This worked for me (answer from jonalza):

"Right click on XAML file -> click on "Open with..." option -> Select "XAML Desinger" in the list -> click on "Set as Default" button" enter link description here

EDIT: As in your picture your line: <?xml version="1.0" encoding="utf-8" ?> appears in red and blue, and not only in blue, as usual, also check the answer from Brendan Zagaeski...